Usercentrics - PUBLIC

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

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

This feature is available from our Business Package.

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?

  • No labels