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.
Overview:
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:
- via an OnClick event on an anchor link
- 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. 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>
2. href
This way is a slight variation on the above and it consists of using the javascript code in thehref
attribute as follows:
<a href="javascript:UC_UI.showSecondLayer();">Privacy Settings</a>
href
instead of the onClick attribute, which some customers have claimed is hard to use in e.g. WordPress.
Comments
0 comments
Please sign in to leave a comment.