Piwik PRO tag

After adding a new website or app to Piwik PRO, you will see the Piwik PRO tag in Tag Manager. This tag is responsible for collecting data from your website or app and you can’t delete it. You can adjust the tag to track specific data, but be careful with any changes you make because they may affect the whole tracking.

To make changes in the Piwik PRO tag, follow these steps:

  1. Go to Menu > Tag Manager.
  2. Navigate to Tags.
  3. From the left-hand list, choose the Piwik PRO tag.
  4. In Piwik PRO Analytics setup, adjust elements that you need.
  5. Here’s a list of elements that can be adjusted in Piwik PRO Analytics setup:

    • Enable link tracking: It’s turned on by default. It tracks downloads and outlinks in Analytics.
    • Enable content tracking: It’s turned off by default. When you turn it on, Piwik PRO will track pop-ups set in a custom pop-up tag, contextual ads set in a custom content tag, and all other elements defined as content.
    • Enable cross domain tracking: It’s turned off by default. It lets you to track a visitor across domains and subdomains.
    • Accurately measure the time spent on each page: This option lets you measure the exact time spent by the visitor on each page. By default, the time spent on a page is counted as the difference between the moment a visitor started viewing one page and the moment when a visitor started viewing another page. Because of how the mechanism works, Piwik PRO will not count the time spent on the last page. With this option, you can turn on a heartbeat which will be sending a ping every 15 seconds (or other selected number) to tell Piwik PRO that the visitor is still on that page. This way it will count the time spent on that page. Just keep in mind that setting the ping number below 15 seconds may slow down the website.
    • Set user ID: This option lets you add your own identifier for a visitor. For more, read how to set up a user ID.
    • Set cookie domain: It’s turned off by default. It’s used to define across which domains the user should be tracked in cross-domain tracking.
    • Disable cookies: It’s turned off by default. You can use it to disable cookies. We are not recommending to turn it on as it may influence tracking. For more, read how to disable cookies for vistiors.
    • Set secure cookie: Sets a secure-cookie flag on all first-party cookies. Use it only for websites with an HTTPS protocol so that all tracking cookies are sent over a secure connection. Please don’t use it for sites with other protocols.
    • Set visitor cookie timeout: Sets the timeout for a _pk_id.* cookie. It is used to store a few details about the visitor, such as a unique visitor ID.
    • Set referral cookie timeout: No longer supported.
    • Set session cookie timeout: Sets timeout for a _pk_ses.* cookie. It’s a short-lived cookie used to store session data.
    • Track JS errors manually: Lets you track uncaught JavaScript errors.
    • Don’t track page views: Lets you to disable the _paq.trackPageView tracking method used in the Piwik PRO tracking code. Instead, you can track page views using a custom tag.
  6. In Piwik PRO configuration information, you’ll find fixed elements such as a domain and website ID.
  7. Piwik PRO configuration information.
  8. In Custom variables, you can start tracking a variable added in Analytics (Menu > Analytics settings > Custom variables).
  9. Custom variables in Piwik PRO tag.

    Tip: Read about custom variables in Analytics

  10. In Custom dimensions, you can start tracking a dimension added in Analytics (new) (Menu > Analytics (new) > Settings > Custom dimensions) or Analytics (classic) (Menu > Analytics settings > Custom dimensions).
  11. Custom dimensions in Piwik PRO tag.

    Tip: Read how to create a custom dimension.

  12. In Advanced tag settings, set the tag type. By default, it’s set to be displayed to visitors who consent to Analytics, but you can change it to a different type.
  13. By default, the Respect visitor privacy is turned off. Turn it on if you want to respect visitors who set a do-not-track option in their browser or when you use an opt-out form on your website.
  14. In Flight dates, you can set the time during which you want to run the tag. For this tag, we recommend not to set flight dates because it will affect data collection.
  15. In Tag triggers, click + New trigger or + Existing trigger to set up a trigger for your tag. For this tag, we recommend to leave the trigger as is because any change will affect data collection.
  16. When you’re done, click Save for the trigger and click Save for the tag.
  17. Test your tag in debug mode.
  18. When you’re happy how the tag works, click Publish.
Was this article helpful?

Technical Support

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

We’re happy to help!