Best practices for working with Tag Manager
February 22, 2018
To start off your journey with Piwik PRO Marketing Suite on the right foot you may want to do everything step-by-step and make sure that all the things you are taking care of are being done correctly. You can just go through this article and check every point one after another.
1. First Tag implementation
Thanks to Piwik PRO Marketing Suite Tag Manager you can easily implement tags to your website. Please note that the tag won’t fire without the assigned trigger.
The whole process of adding the first tag is explained right here.
2. Triggers usage
A trigger specifies how and when a tag should fire. One trigger can be assigned to multiple tags within the same website. It can make your work much more efficient.
Find out more about the triggers.
3. Assigning the correct triggers
Every trigger in PPTM can either fire whenever it’s able to (its main condition is met) or it can have additional conditions (or set of conditions) added that have to be met before triggering a tag. The conditions can be chosen from the dropdown list, some of them are trigger-specific and the rest is common for all triggers. Every variable set in PPTM can also be used as a triggering condition.
Find out more about the specific types of triggers in the following articles:
4. Setting up the Custom Events Tag the right way
Event Tracking can record user movement around your webpage and interaction with specific events like file downloads, even when a new page view is not generated. You can also measure clicks on non-clickable elements of your website, track rich media like video and audio players, review form performance on your landing and contact page and many many more.
To see how to set up the Custom Events Tag properly, take a look at our step-by-step instruction.
5. Setting up the Virtual Pageviews Tag the right way
Virtual Page Views send a page hit to your Piwik instance without reloading the page. It means that you can use this feature when placing a contact form on your website, track downloads or clicks which don’t cause page reloading. It’s very useful for tracking Single Page Applications (SPA).
To see the step-by-step set up of the PP Virtual Pageviews Tag take a look at our instruction.
6. Implementing UserID
UserID may help you recognize visitors, even across multiple devices. Piwik PRO Tag Manager provides an automatic set up of UserID, you only need to create a variable that will be holding the userID value. The value can be anything you like but it’s important for it to be unique to avoid confusing visitors.
To see how to implement UserID step-by-step, take a look at our article.
7. Tags order
Tags prioritization is important from the programming point of view. You can move tags through the list and fully manage their order. It’s pretty useful since you can decide which tags should be fired earlier than the others. To do that you just need to segregate tags by priority and move them through the whole list in the order you want them to be.