Cookie Information tag

Tag Manager

Consent Manager

Available from 18.12.0

A Cookie Information tag lets you use Cookie Information and Piwik PRO together. The tag maps cookie categories from Cookie Information to consent types in Piwik PRO. This lets you trigger tags based on consents collected via a Cookie Information banner as well as create consent-based audiences in Customer Data Platform. Plus, you get to check consent statistics easily in your Piwik PRO reports.

In this article, we’ll explain how to set up this tag.

Before you start

Here are a few things to know before you start:

  • For the integration to function properly, set the following settings in Piwik PRO:
    • Turn on: Administration > Sites & apps > Privacy > Ask visitors for consent (on).
    • Turn off: Administration > Sites & apps > Privacy > Ask visitors for consent > Consent settings > Ask for consent only in countries covered by GDPR and UK GDPR (off).
    • Turn on: Administration > Sites & apps > Privacy > Ask visitors for consent > Consent settings > Use a custom consent form (on).
    • Turn off: Menu > Tag Manager > Piwik PRO tag > Data collection > Recognize a visitor across subdomains (off).
  • For the integration to function properly, set the following settings in Cookie Information:
  • The default consent duration in Cookie Information and Piwik PRO is 12 months. However, both tools let you adjust this period. If you change Piwik PRO’s consent duration, make sure to update the ppms_privacy_* cookie in Cookie Information accordingly.

    Note that if the Cookie Information cookie expires before the Piwik PRO cookie, the consents will automatically synchronize.

  • A Cookie Information banner automatically includes details about cookies used by Piwik PRO. No manual addition is necessary. Keep in mind that the cookie details will appear once the cookie scanner completes its task. If you don’t see them immediately, it means the scanner is still at work.
  • You can read more about the benefits of integrating Cookie Information with Piwik PRO in this detailed article.

To set up a Cookie Information tag, follow these steps:

  1. Go to Menu > Tag Manager.
  2. Navigate to Tags.
  3. Click Add a tag.
  4. Name your tag and select the following type: Cookie Information.
  5. Click Next.
  6. In Consent mapping, map cookie categories to consent types.
    Cookie Information tag in Piwik PRO

    Note:

    • You can use the default mapping by clicking ‘Set defaults’, but you can always change it.
    • You can map multiple consent types to a single cookie category. For example, ‘Statistical’ can be mapped to both ‘Analytics’ and ‘Remarketing’.
    • You can leave cookie categories and consent types unmapped. However, it’s a good practice to map all of them, just in case you decide to use them in the future.
    • If you use an unmapped consent type in a tag, it won’t fire.
    • ‘Necessary cookies’ are mapped to ‘No consent is required’ without the ability to change them.
    • The Piwik PRO tag, responsible for collecting visitor data, requires ‘Analytics’ consent by default. So, if you want to collect such data, you need to map it to the right cookie type. Keep in mind that, by default, this tag will fire and collect anonymous data from visitors who haven’t consented. However, you can always turn off anonymous data collection. You can also change the default ‘Analytics’ consent set for the Piwik PRO tag.
    • Each time you change your mapping, you need to click ‘Push for consent’ in Cookie Information > Consent solutions > Settings > Push for consent.
  7. In Consent type, make sure the type is set to: No consent is required.
  8. Turn off Respect opt-out and DNT. This tag should fire for every visitor since it only maps their consents.
  9. In Advanced tag settings, select Choose existing trigger.
  10. Select the following trigger: All page views.
  11. Click Save to save the tag.
  12. Test your tag in debug mode.
  13. When you’re happy with how the tag works, click Publish.
  14. In Cookie Information > Consent solutions > Settings > Push for consent, click ‘Push for consent‘. If you ever change your mapping, repeat this step.
  15. All set! You are now integrated with Cookie Information. This means you can trigger tags based on consents collected via a Cookie Information banner as well as create consent-based audiences in Customer Data Platform. You can also view consent statistics in Piwik PRO under Analytics > Reports > Consent.

    Note:

    • Consent statistics will be available in reports within 1 hour, or you can instantly view them in the tracker debugger.
    • The Consent report shows the Piwik PRO consent types that have been mapped, not the Cookie Information cookie categories.

Was this article helpful?

Technical support

If you still have any questions, visit our community.
There’s always someone happy to help!

Back to help center