Using the WP Consent API with Consent Studio as your consent management platform (CMP) of choice
How is consent processed?
We support the following categories:
functional
preferences
analytics
analytics_anonymous
marketing
When a user grants functional (cookie) consent through the Consent Studio banner on your website, we will send an allow
signal for the functional
, preferences
and analytics-anonymous
categories to the WP Consent API.
When a user denies functional (cookie) consent, we will signal deny
for the functional
, preferences
and analytics-anonymous
categories to the WP Consent API.
When a user grants analytics (cookie) consent through the Consent Studio banner on your website, we will send an allow
signal for the analytics
category to the WP Consent API.
When a user denies analytics (cookie) consent, we will signal deny
for the analytics
category to the WP Consent API.
When a user grants marketing (cookie) consent through the Consent Studio banner on your website, we will send an allow
signal for the analytics
category to the WP Consent API.
When a user denies marketing (cookie) consent, we will signal deny
for the analytics
category to the WP Consent API.
Which default signals are given on page load?
By default, we set optin
as the value for window.wp_consent_type
.
How to enable this integration?
Log in to your Consent Studio dashboard.
Open the Consent Studio dashboard and head to General Settings under Banner.
Scroll down until you find Integrations.
Toggle the WP 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.