-
Notifications
You must be signed in to change notification settings - Fork 3
/
consentdefault.html
77 lines (72 loc) · 3.98 KB
/
consentdefault.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Segment Consent Management Test | Default</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
margin: 0;
padding: 0;
}
header {
background-color: #00b76a; /* Segment's green color */
color: white;
padding: 20px;
text-align: center;
}
.container {
max-width: 900px;
margin: 50px auto;
padding: 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
color: #00b76a;
}
a {
color: #00b76a;
text-decoration: none;
font-weight: bold;
}
a:hover {
text-decoration: underline;
}
</style>
<!-- OneTrust Cookies Consent Notice start for prigiattiperrut.github.io -->
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="0192b8d3-2620-7047-9d93-25a4d5b6f188"></script>
<script type="text/javascript">
function OptanonWrapper() { }
</script>
<!-- OneTrust Cookies Consent Notice end for prigiattiperrut.github.io -->
<!-- Add Segment's OneTrust Consent Wrapper -->
<script src="https://cdn.jsdelivr.net/npm/@segment/analytics-consent-wrapper-onetrust@latest/dist/umd/analytics-onetrust.umd.js"></script>
<!-- Segment AJS Snippet -->
<script>
!function(){var i="analytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel='canonical']");n.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n<analytics.methods.length;n++){var key=analytics.methods[n];analytics[key]=analytics.factory(key)}analytics.load=function(key,n){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.setAttribute("data-global-segment-analytics-key",i);t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r);analytics._loadOptions=n};analytics._writeKey="3p3M607bDQKfzNCu3nu7sNdVciS7uIl6";;analytics.SNIPPET_VERSION="5.2.0";
withOneTrust(analytics).load("3p3M607bDQKfzNCu3nu7sNdVciS7uIl6")
analytics.page();
}}();
</script>
</head>
<body>
<header>
<h1>Segment Consent Management Test Page | Default </h1>
</header>
<div class="container">
<h2>Testing Segment with OneTrust|Consent Model: <a href="https://segment.com/docs/privacy/consent-management/configure-consent-management/" target="_blank" onclick="analytics.track('Link clicked', { link: 'Default' })">Default</a>
</h2>
<p>
This page is designed to test the integration of
<a href="https://github.com/segmentio/analytics-next/tree/master/packages/consent/consent-wrapper-onetrust" target="_blank" onclick="analytics.track('Link clicked', { link: 'Segment Consent Management' })">Segment Consent Management</a>
and
<a href="https://www.onetrust.com/" target="_blank" onclick="analytics.track('Link clicked', { link: 'OneTrust' })">OneTrust</a>.
</p>
<p>Click the links above to trigger a track call in Segment.</p>
</div>
</body>
</html>