-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
70 lines (57 loc) · 1.73 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-50HRM8825D"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('consent', 'default', {
'ad_storage': 'denied',
'analytics_storage': 'denied'
});
</script>
</head>
<body>
<script src="tagmanager.js" defer></script>
<script src="container.js" defer></script>
<ul>
<li>One</li>
<li>Two</li>
</ul>
<p class="manual">Manual event</p>
<script>
dataLayer.push({
"pageType": "Homepage",
"signedIn": "false",
"visitorType": "guest",
"userID": ""
});
dataLayer.push({
"pageType": "Homepage",
"signedIn": "true",
"visitorType": "user",
"userID": "test"
});
</script>
<form id="testForm">
<input name="email" type="email" />
</form>
<button id="allowAllCookies" type="button">Allow all cookies</button>
<script>
{
const element = document.getElementById("allowAllCookies")
element.addEventListener("click", function () {
container.consent.analytics = true;
container.consent.advertising = true;
window.dispatchEvent(new CustomEvent("ConsentUpdated"));
});
}
</script>
</body>
</html>