Piwik Pro Tag Manager Implementation

Cookie control SDK implementation in Piwik Pro Tag Manager

Anna Madsen avatar
Written by Anna Madsen
Updated over a week ago

The cookie control SDK is enabled via the custom trigger, events, and tags functions in Piwik PRO Tag Manager (PPTM). Events are fired by our script injected on your website with all the logic necessary to handle banners and widgets, so there is no need to implement our solution in the source code.

For easy set-up, follow these steps:

Disable Piwik PRO Consent Manager for the tag

Make sure that every tag that will require Cookie Information consent will be set as ‘No consent is required'.

This may seem counterintuitive but this simply prevents the Piwik PRO Consent Manager from interfering with the Cookie Information consenting mechanisms.

Create triggers for the cookie categories

You will need to create a trigger for each of the following categories:

  • cookie_cat_functional

  • cookie_cat_statistic

  • cookie_cat_marketing

Inside your Piwik PRO Analytics Suite, follow these steps to create a trigger.

  • Go to "Menu" -> "Tag Manager"

  • Choose "Triggers" on the navigation bar

  • In the bottom left corner of the screen, choose "Add a trigger"

  • Name your trigger

  • For the event type, choose the following type: "Data layer event"

  • In the "Data Layer Event Settings", the value should be the cookie types that are listed above eg. cookie_cat_functional.

  • The event conditions should stay on "Fire on all events"





  • Once you have saved the trigger, repeat for the other two.

Attach the trigger to the tag

The third step is to attach one of the new triggers to every tag that requires certain cookie consent.
To do that: Open the tag, scroll to the very bottom and under "Tag triggers" click "Choose existing trigger"

Select the correct Cookie Information trigger from the list and hit the "OK" button to finish the process.

That’s it, you can enjoy consented tag firing from now on.

Related articles:

Did this answer your question?