How to Install Matomo for WordPress

Since updating to GA4, Google Analytics has become more complicated and less user friendly for your typical small-medium sized business. 

Great if you’re a corporate, but for everyone else? Not so much.

So if you’re running a WordPress website you can get a really good alternative that you can install yourself. Easily. It’s called Matomo and today I’ll show you how to set it up.

In this video:

  1. 0:00 Why Matomo?
  2. 0:43 Install the plugin
  3. 1:09 Basic activation and tracking
  4. 4:06 Keeping your database size under control
  5. 6:27 Test that it’s working
  6. 6:44 Manually triggering the archive function 
  7. 8:59 Tracking phone and email clicks
  8. 13:18 Setting up goals
  9. 17:33 Email reports
  10. 19:01 Bonus tip: Customising your dashboard

Here’s the code you need to track email and phone clicks:

<script>
jQuery(document).ready(function($) {
    $("a[href^='tel:']").on("click", function (e) {
        _paq.push(['trackEvent', 'Contact', 'phone', this.href]);
    });
    $("a[href^='mailto:']").on("click", function (e) {
        _paq.push(['trackEvent', 'Contact', 'email', this.href]);
    })
})
</script>
Scroll to Top