2 minutes

Matomo Tag Manager masterclass: track every click yourself

Every new button you want to track should not mean a new ticket for your developers. In this masterclass, Ralph from the Matomo team shows how Matomo Tag Manager lets you set up and change your tracking yourself, from the basics to two real use cases you can copy on your own site.

Do you ask a developer every time you want to track a new button, form or product? With Matomo Tag Manager, your developer installs it once. After that, you add, change and test your tracking yourself.

In this masterclass, Ralph from the Matomo team shows you how, with a live demo on a sample online shop:

  • The simple logic behind every setup: how, when and what
  • How to track all your product clicks with one tag
  • How to track logins and other information your visitors do not type
  • How to test your changes before they go live

Good for: marketers and analysts who already use Matomo and want more control over their tracking.

Helpful to know: the basics of CSS selectors.
Available on: Matomo Cloud and On-Premise.

Key takeaways from the Matomo Tag Manager masterclass

1. Add new tracking yourself

Your developer installs the Matomo Tag Manager container on your site once. After that, you create and update your tracking from Matomo: new buttons, new forms, new events. Fewer tickets, faster answers to your questions.

2. Understand any setup with three questions

Every tracking setup answers three questions:

  • How? The variable: the settings and values your tracking uses.
  • When? The trigger: the moment tracking happens, like a page view or a click.
  • What? The tag: what you track, like a page view or an event.

Once you think this way, any container becomes easy to read, and easy to explain to your team.

3. Track every product with one setup

Have 10, 100 or 1,000 products? You do not need 1,000 tags. If your « Add to cart » buttons look the same on every page, one trigger and one tag can track them all, with the right product name and SKU. You see which products people act on, and your setup stays clean as your catalogue grows.

4. Track what your visitors do not type

Some useful information comes from your website, not from a click: did the login succeed? What type of customer is this? With the data layer, your site shares this information with Matomo (your developer adds one line of code), and you decide in Matomo what to track. For example, you can see how often logins fail and spot a problem early.

5. Test before you publish

Preview mode shows exactly what will be tracked before anything goes live. Configure, preview, check, then publish. And if a new version causes a problem, you can go back to the previous one.

💡 Good to know

After you publish, returning visitors can keep the previous version in their browser for a while (up to 8 days on Matomo Cloud; on On-Premise it depends on your server). Learn more

Go deeper

📚 Get the most out of Matomo with our documentation

• Getting started with Matomo Tag Manager
• Triggers and Variables
• Preview and debug a container
• Data layer (for your developer)

Avatar de Alex Carmona