Best practices for working with Tag Manager

To start off your journey with Piwik PRO 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.

Add the first tag

Thanks to Tag Manager you can easily implement tags to your website. Please note that the tag won’t fire without the assigned trigger.

For more, read Create a tag.

About triggers

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.

For more, read Create a trigger.

Add correct triggers

Every trigger in Tag Manager 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 Tag Manager can also be used as a triggering condition.

Find out more about the specific types of triggers in the following articles:

Set up the custom event 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.

Set up the virtual pageview tag the right way

Virtual Page Views send a page hit to your 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.

Set up a 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.

Fire tags in an 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.

For more, read How to fire tags in a specific order.

Was this article helpful?

of people found this helpful

Technical Support

If you have any questions, drop us a line at support_SPC@piwik_SPC.pro.

We’re happy to help!