-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamp.newscriptdemo.html
More file actions
90 lines (90 loc) · 4.08 KB
/
amp.newscriptdemo.html
File metadata and controls
90 lines (90 loc) · 4.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!doctype html>
<html amp lang="en">
<head>
<meta charset="utf-8">
<title>Hello, AMPs</title>
<script async src="https://cdn.ampproject.org/v0.js"></script>
<!-- required for the amp-consent component -->
<script async custom-element="amp-consent" src="https://cdn.ampproject.org/v0/amp-consent-0.1.js"></script>
<!-- required for geo-targeting -->
<script async custom-element="amp-geo" src="https://cdn.ampproject.org/v0/amp-geo-0.1.js"></script>
<!-- required to sync auth_id with publishers domain and Google.com domain --> <script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
</head>
<body>
<h1>Welcome to the mobile web CCPA TCF</h1>
<amp-analytics type="googleanalytics">
<script type=application/json>
{
"linkers":{"authId":{"ids":{"_a":"CLIENT_ID(AMP-CONSENT)"},"enabled":true,"proxyOnly":false}},"cookies":{"enabled":true,"authId":{"value":"LINKER_PARAM(authId, _a)"}}
}
</script>
</amp-analytics>
<amp-geo layout="nodisplay">
<script type="application/json">
{
"ISOCountryGroups": {
"eea": ["preset-eea", "unknown"],
"ccpa": ["preset-us-ca"]
}
}
</script>
</amp-geo>
<amp-consent id='consent' layout='nodisplay' type='SourcePoint'>
<script type="application/json">
{
"consentInstanceId": "Sourcepoint",
"geoOverride": {
"ccpa": {
"consentRequired": "remote",
"checkConsentHref": "https://sp-cdn.sp-demo.com/ccpa/consent/amp",
"promptUISrc": "https://sp-cdn.sp-demo.com/amp/index.html?authId=CLIENT_ID",
"postPromptUI": "ccpa-consent-ui",
"uiConfig": {"overlay":true},
"clientConfig": {
"accountId": 1732,
"siteHref": "https://amp.newscriptdemo.com",
"siteId": 19118,
"isCCPA": true,
"stageCampaign": false,
"privacyManagerId": 588423,
"getDnsMsgMms": true,
"alwaysDisplayDns": false,
"showNoticeUntilAction": true,
"targetingParams": { "color": "blue" }
}
},
"eea": {
"consentRequired": "remote",
"checkConsentHref": "https://sp-cdn.sp-demo.com/wrapper/tcfv2/v1/amp-v2?authId=CLIENT_ID",
"promptUISrc": "https://sp-cdn.sp-demo.com/amp/index.html?authId=CLIENT_ID",
"mmsDomain": "https://sp-cdn.sp-demo.com",
"postPromptUI": "eea-consent-ui",
"uiConfig": {"overlay":true},
"cookies": {
"enabled": true,
"AMP-CONSENT": { "value": "LINKER_PARAM(authId, _a)" }
},
"clientConfig": {
"accountId": 1732,
"propertyHref": "https://amp.newscriptdemo.com",
"propertyId": 19118,
"privacyManagerId": 547514,
"isTCFV2": true,
"pmTab": "purposes",
"stageCampaign": false,
"targetingParams": { "color": "red" }
}
}
}
}
</script>
</amp-consent>
<div id="ccpa-consent-ui">
<button on="tap:consent.prompt(consent=SourcePoint)">Do Not Sell My Info</button>
</div>
<div id="eea-consent-ui">
<button on="tap:consent.prompt(consent=SourcePoint)">Privacy Settings</button>
</div>
</body>
</html>