Enable Consent Management
Last updated Apr 16, 2026 1. In the Cloudflare dashboard, go to the Consent page. Go to Consent ↗ 2. Turn on Enable Consent Management. 3. In Consent modal text fill in any legal information required in your country. Use HTML code to format your information as you would in any other HTML editor. 4. Under Purposes, select Add new Purpose. Give your new purpose a name and a description. Purposes are the reasons for using third-party tools in your website. 5. In Assign purpose to tools, match tools to purposes by selecting one of the purposes previously created from the drop-down menu. Do this for all your tools. 6. Select Save.
Your Consent Management platform is ready. Your website should now display a modal asking for consent for the tools you have configured.
Adding different languages
In your Zaraz consent settings, you can add your consent modal text and purposes in various languages.
- In the Cloudflare dashboard, go to the Consent page. Go to Consent ↗
- Select a default language of your choice. The default setting is English.
- In Consent modal text and Purposes, you can select different languages and add translations.
Overriding the consent modal language
By default, the Zaraz Consent Management Platform will try to match the language of the consent modal with the language requested by the browser, using the Accept-Language HTTP header. If, for any reason, you would like to force the consent modal language to a specific one, you can use the zaraz.set Web API to define the default __zarazConsentLanguage value.
Below is an example that forces the language shown to be American English.
<script>
zaraz.set('__zarazConsentLanguage', 'en-US')
</script>
Next steps
If the default consent modal does not suit your website's design, you can use the Custom CSS tool to add your own custom design.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/zaraz/consent-management/enable-consent-management/#page","headline":"Enable Consent Management","description":"Enable and configure Zaraz Consent Management.","url":"https://developers.cloudflare.com/zaraz/consent-management/enable-consent-management/","inLanguage":"en","image":"https://developers.cloudflare.com/zaraz/consent-management/enable-consent-management/og.png?v=41beeea6ffa9face","dateModified":"2026-04-16","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Configure IAB TCF compliance for Zaraz consent. title: IAB TCF Compliance image: https://developers.cloudflare.com/zaraz/consent-management/iab-tcf-compliance/og.png?v=c3f036daed5751d5
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/zaraz/llms.txt
Use this file to discover all available pages before exploring further.
Docs