How do I set up event tracking in Matomo?

Use _paq.push(["trackEvent", category, action, name, value]) in your JavaScript to track custom events. For example, tracking a button click: _paq.push(["trackEvent", "CTA", "Click", "Sign Up Button"]).

With Matomo Tag Manager, you can set up event tracking without code by creating tags with click triggers. Events appear in Matomo under Behaviour > Events.

Have some questions? We have your solution.