Using the Piwik PRO Consent API with Consent Studio as your consent management platform (CMP) of choice
How is consent processed?
When the page is loaded, we will signal a single dimensional array to the consents
path through the setInitialComplianceSettings
method: ['analytics']
. This will trigger Piwik PRO's default state for it.
When a user grants analytics (cookie) consent through the Consent Studio banner on your website, we will run the setComplianceSettings
method. It will contain a 1
value for status
in the analytics
object in the input array.
When a user denies analytics (cookie) consent, the value for status
will be 0
for the analytics
object.
How to enable this integration?
Log in to your Consent Studio dashboard.
Open the Consent Studio dashboard and head to General Settings under Banner.
At the top of the page, click on the Integrations tab to view all available integrations.
Toggle the Piwik PRO Consent API by clicking on it. Enabled integrations have a highlighted (green) border.
Don't forget to save your changes by clicking the Save changes button at the bottom of the page.