Cookie Information Integration
Cookie Information works well together with Piwik PRO Tag Manager, allowing you to fire tags basing on the consents collected by Cookie Information.
The Cookie Control SDK is enabled via the custom trigger, events, and tags in Tag Manager.
To make integration between Cookie Information and Piwik PRO work you need to do the following:
- Disable Consent Manager for the tag.
- Create a trigger for every cookie category.
- Attach the trigger to the tag.
Let’s see how to handle each of these steps.
Before you start
Before you begin you need to know that by default, there are four basic cookie types, which also serve as as trigger and event names:
- Cookie_cat_necessary (can’t be turned off by the user)
Disable Consent Manager for the tag
Make sure that every tag, in Tag Manager, that will require Cookie Information consent is set as Does not require consent. This may seem counterintuitive but this simply prevents Consent Manager from interfering with the Cookie Information consenting mechanisms.
Create a trigger for every cookie category
To create a trigger, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Triggers.
- Click + Create new trigger button.
- Name the trigger.
- Select the event type.
- Input the cookie type name to the Data Layer Event Settings.
- When done, click Save.
And now repeat the process for every other type of Cookie Information cookies.
Attach the trigger to the tag
All that’s left to do now is to attach one of the triggers to every tag that requires certain cookie consent.
To attach triggers to a tag, follow these steps:
- Pick a tag.
- Scroll to the very bottom and click + Existing trigger.
- Select the trigger from the list and click OK.
That’s it. From now on, you can enjoy consented tag firing.