Skip to content

Enable Consent Management

  1. Log in to the Cloudflare dashboard, and select your account and domain.
  2. Go to Zaraz > Consent.
  3. Turn on Enable Consent Management.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

  1. Log in to the Cloudflare dashboard, and select your account and domain.
  2. Go to Zaraz > Consent.
  3. Select a default language of your choice. The default setting is English.
  4. In Consent modal text and Purposes, you can select different languages and add translations.

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.