Easily integrate your custom consent manager with every RudderStack destination, ensuring only compliant data is sent to every tool in your stack.
Available Plans
free
starter
growth
enterprise
2 minute read
Previously, RudderStack supported fully-integrated consent data flows for OneTrust and Ketch - two popular consent management tools.
With this release, you can integrate your custom consent management solution with RudderStack, giving you granular control over consent settings for each individual destination.
You can also use the Custom Consent Management feature to implement compliant pre-consent user tracking, with the options to store no cookies, store only the session tracking cookie, or only persist the anonymousId.
RudderStack also supports running multiple consent management solutions simultaneously, which is useful when consent management solutions differ across platforms.
Custom Consent Management is now available on all RudderStack plans. See our documentation for more information on using this feature.
Workflow overview
Before capturing user consent, make sure that:
You are running the latest version of the JavaScript SDK.
You have set the enabled key to true in the consentManagement API object. See the JavaScript SDK documentation for more information.
Update the code on your website to grab consent IDs from your custom consent manager.
Add the consent setting in the load object, or pass them to the SDK’s consent API using the consent method, as shown:
Using the consent method is helpful for tracking users who update consent settings and then go on to perform other actions on the same page and in the same session.
Specify the consent settings for each destination by adding the allowed consent ID values in the Consent settings section of the destination configuration. In the below example, the destination accepts data from users have consented to only performance or analytics tracking:
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.