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. 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?
Usercentrics - PUBLIC