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.
By default, there are 4 basic cookie types:
cookie_cat_necessary - Cannot be deselected by the user
Those will also serve as triggers and event names.
1) Disable Piwik PRO Consent Manager for the tag
Make sure that every tag, in PPTM, that will require Cookie Information consent will be set as ‘Does Not Require Consent’
This may seem counterintuitive but this simply prevents the Piwik PRO Consent Manager from interfering with the Cookie Information consenting mechanisms.
2) Create a trigger for every cookie category
Inside of your Piwik PRO Analytics Suite, open the Tag Manager
and go to the Triggers menu.
Create a new trigger by pressing the +Create new trigger button in the bottom-left side of the screen.
Name your trigger,
select the Event type, and paste the cookie type name into the Data Layer Event Settings.
Hit the save button
And now repeat the process for every other type of Cookie Information cookies.
3) Attach the trigger to the tag
All that’s left to do now is to attach one of our new triggers to every tag that requires certain cookie consent. To do that, open the tag, scroll to the very bottom and click +Existing trigger To add a trigger
Select the trigger from the list and hit the save button to finish the process.
That’s it, you can enjoy consented tag firing from now on.