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:
- 0:00 Why Matomo?
- 0:43 Install the plugin
- 1:09 Basic activation and tracking
- 4:06 Keeping your database size under control
- 6:27 Test that it’s working
- 6:44 Manually triggering the archive function
- 8:59 Tracking phone and email clicks
- 13:18 Setting up goals
- 17:33 Email reports
- 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>