Usercentrics - PUBLIC

How can I link to different privacy policies / imprints with one Settings ID (CMP Version 2)?

Overview


If you want to set a different link / URL per language, e.g. for EN than for DE, you can easily do this using the Translate Button:

  1. In the Admin Interface: go to Content → First Layer → Imprint & Privacy URL.

  2. Use the respective "Edit and Translate" field to store a separate URL for each language.


If you want to store different links / URLs for a language like e.g. DE (Swiss page / German page / Austrian page), an event listener must be built into the code:

We provide two custom events for the Imprint and Privacy Policy URL fields in the Admin Interface. Please enter:

  • #onUcPrivacyClick for the Privacy Policy URL field

  • #onUcImprintClick for the Imprint URL field.

This value will be used in the next step, so please keep it in mind.

You can add these anchors in Content > First Layer. With these custom events, you can define a Window Event Listener to do an action that you want. An event listener (see below) must be added in the code, which listens for a click on the privacy policy link (first layer) and then triggers the desired behavior.

For example, you can create an event to redirect to your privacy policy page:

window.addEventListener("onUcPrivacyClick", function(e) { console.log("Insert here your logic for Privacy Policy") }) window.addEventListener("onUcImprintClick", function(e){ console.log("Insert here your logic for Imprint") })

This is only possible for CMP V2. Contact our Service Desk to get V2 activated.


Do you need further help?

How can I get help with technical questions?

 

Usercentrics - PUBLIC