Link Analytics (classic) with Tag Manager

Analytics classic

While standard Piwik PRO tracking code is very powerful and automatically records most of the actions that your website visitors perform, there are times when you want to send additional data to the analytics. Here’s where Piwik PRO tag manager comes to the rescue. Our virtual pageview and custom events tags will help you immediately set up additional tracking.

Virtual page view

Many modern websites are made as a Single Page Applications (SPA). Standard Piwik PRO Javascript tracking code won’t be able to track the movement of visitors on such pages as data is normally sent to Piwik PRO on page reload, which rarely happens in SPA. That’s why it’s a good idea to set up some virtual pageviews whenever content on your website is modified by the actions of visitors. Piwik PRO Tag Manager has you completely covered in this matter. All you need to do is choose the Virtual Pageview tag from the predefined tags list, by clicking the plus icon under the “Tags” tab in your PPTM.

Next, you’ll need to fill some information that you’ll want to be stored in Piwik PRO:

and configure a trigger that will activate the PageView. The “Click” trigger that is firing whenever the correct click ID is clicked works pretty well in such situation but feel free to experiment with other triggers as well:

And that’s it! just hit the save button, repeat for your other pages and press publish to start tracking page views.

You can check the results in your Pages or Page titles reports:

Additionally, you can fire up the transitions for said page to see that the traffic leading to it was sent from the right referrer.

Custom events

Custom Events are very similar to virtual pageviews, the setup looks almost the same as above but instead of providing URL’s and Page Title, you provide the custom data grouped as Category, Action, Name and Value.

What you will store in those fields is up to you. The other difference is that while Virtual Pageviews will be displayed in Piwik in the Actions/Pages report, the Custom Events will be stored in the Actions/Events menu.

Was this article helpful?

of people found this helpful

Technical Support

If you have any questions, drop us a line at

We’re happy to help!