Resurface Privacy Manager (AMP)
By placing a button or link to your Privacy Manager on your property configuration, you allow end-users to manage their consent preferences on an ongoing basis without having to re-encounter your organization's First Layer message.
The postPromptUI parameter in your <amp-consent> component defines the page element (UI) that should be displayed to users (e.g. button or link styling).
1
<amp-consent id='consent' layout='nodisplay' >
2
<script type="application/json">
3
{
4
"consentRequired": "remote",
5
"consentInstanceId": "SourcePoint",
6
"checkConsentHref": "https://sp-cdn.example.com/wrapper/tcfv2/v1/amp-v2",
7
"promptUISrc": "https://sp-cdn.example.com/amp/index.html?authId=CLIENT_ID",
8
"postPromptUI": "consent-ui",
9
"uiConfig": {"overlay":true},
10
"clientConfig": {
11
"accountId": 222,
12
"mmsDomain": "https://sp-cdn.example.com",
13
"propertyHref": "https://amp.property.tcfv2",
14
"propertyId": 1234,
15
"privacyManagerId": 987654,
16
"isTCFV2": true,
17
"pmTab": "purposes",
18
"stageCampaign": false,
19
"targetingParams": {
20
"color": "red"
21
}
22
}
23
}
24
</script>
25
</amp-consent>
Copied!
The Privacy Manager can be resurfaced by adding the following on attribute to a link or button on your property:
1
on="tap:consent.prompt(consent=SourcePoint)"
Copied!
Examples for links and buttons can be found below:
1
<a on="tap:consent.prompt(consent=SourcePoint)" target="_self" href="#" id="consent-ui">Privacy Settings</a>
Copied!

Button Example

1
<div id="consent-ui">
2
<button on="tap:consent.prompt(consent=SourcePoint)">Privacy Settings</button>
3
</div>
Copied!
Last modified 8mo ago
Export as PDF
Copy link