/
How can I set up a Privacy Link (V2)?

Usercentrics - PUBLIC

How can I set up a Privacy Link (V2)?

The Privacy Link is one of the Web CMP options for displaying the second layer of the CMP. There are two ways to use it:

  1. via an OnClick event on an anchor link

  2. or an href

The Privacy Link is one of the Web CMP options for displaying the second layer of the CMP. There are two ways to use it:

  1. via an OnClick event on an anchor link

  2. or an href

1. OnClick

This is the way we recommend for clients to use this feature and the snippet of code necessary is even displayed in the Admin Interface.

It consists of simply using the Javascript call in the onClick event of the anchor link used to present the option to open the second layer

<a href="#" onClick="UC_UI.showSecondLayer();">Privacy Settings</a>

2. href

This way is a slight variation on the above, and it consists of using the javascript code in the href attribute as follows

<a href="javascript:UC_UI.showSecondLayer();">Privacy Settings</a>

This way has the advantage of using an href instead of the onClick attribute, which some customers have claimed is hard to use in e.g. WordPress.


Do you need further help?

How can I get help with technical questions?

 

Related content

Usercentrics HTML Embeddings
Usercentrics HTML Embeddings
Read with this
How can I link to different privacy policies / imprints with one Settings ID (CMP Version 2)?
How can I link to different privacy policies / imprints with one Settings ID (CMP Version 2)?
More like this
Can links to the imprint and privacy policy be included?
Can links to the imprint and privacy policy be included?
Read with this
In my data privacy policy, how can I jump directly to a data processing service that the user has selected?
In my data privacy policy, how can I jump directly to a data processing service that the user has selected?
More like this
Wie definiert Usercentrics eine Session?
Wie definiert Usercentrics eine Session?
Read with this
How do I initially open the Privacy Settings center instead of the Privacy Banner or Wall (Version 1)?
How do I initially open the Privacy Settings center instead of the Privacy Banner or Wall (Version 1)?
More like this

Usercentrics - PUBLIC