Please note
This article is based on the CMP Version 2 only. If you're not sure which version you're currently using, please read this article first.
How can I set up a Privacy Link?
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:
- Using an
onclickevent on an anchor link - Using the
hrefattribute
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. Go to Appearance → Layout → scrolling down to Privacy Trigger → select Privacy Link
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>
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.