-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
192 lines (169 loc) · 8.9 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!doctype html>
<html lang="en">
<head>
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
});
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-MKVKQ3J');</script>
<!-- End Google Tag Manager -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<title>dataLayer Sandbox by Rick Dronkers</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
<!-- Custom styles for this template -->
</head>
<body data-template="homepage">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MKVKQ3J"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<header data-location="header">
<div class="bg-dark collapse" id="navbarHeader">
<div class="container">
<div class="row">
<div class="col-sm-8 col-md-7 py-4">
<h4 class="text-white">What is this?</h4>
<p class="text-muted">I've created this page to have some common elements to test my analytics implementations with. Hence "sandbox".</p>
</div>
<div class="col-sm-4 offset-md-1 py-4">
<h4 class="text-white">Contact</h4>
<ul class="list-unstyled">
<li><a href="https://twitter.com/rickdronkers" target="_blank" class="text-white">Follow on Twitter</a></li>
<li><a href="https://rickdronkers.com" target="_blank" class="text-white">Visit my website</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="navbar navbar-dark bg-dark shadow-sm">
<div class="container d-flex justify-content-between">
<a href="index.html" class="navbar-brand d-flex align-items-center">
<strong>dataLayer Sandbox</strong>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarHeader" aria-controls="navbarHeader" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</div>
</header>
<main role="main" data-location="main">
<section class="jumbotron text-center" data-module="jumbotron">
<div class="container">
<h1 class="jumbotron-heading">Website main Jumbotron</h1>
<p class="lead text-muted">This entire element is within a section that has data-location="main" and data-module="jumbotron" on it. Thus all clicks within this section can inherit those values when clicked.</p>
<p>
<a href="#" class="btn btn-primary my-2" data-track="true">Main call to action</a>
<a href="#" class="btn btn-secondary my-2" data-track="true">Secondary action</a>
</p>
</div>
</section>
<div class="album py-5 bg-light">
<div class="container" data-module="list">
<div class="row">
<div class="col-md-4">
<div class="card mb-4 shadow-sm" data-item-type="product" data-item-name="Superawesome Product 1" data-item-id="SPA123" data-item-price="12.99">
<svg class="bd-placeholder-img card-img-top" width="100%" height="120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"><title>Placeholder</title><rect width="100%" height="100%" fill="#55595c"/><text x="50%" y="50%" fill="#eceeef" dy=".3em">Superawesome Product 1</text></svg>
<div class="card-body">
<h5 class="card-title">Superawesome Product 1</h5>
<p class="card-text">Interesting product description right?
<ul class="list-group list-group">
<li class="list-group-item">SKU: SPA123</li>
<li class="list-group-item">Price: €12.99</li>
</ul></p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-secondary">View</button>
<button type="button" class="btn btn-sm btn-success">Add to Cart</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card mb-4 shadow-sm" data-item-type="product" data-item-name="less great product" data-item-id="lgp456" data-item-price="6.99">
<svg class="bd-placeholder-img card-img-top" width="100%" height="120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"><title>less great product</title><rect width="100%" height="100%" fill="#55595c"/><text x="50%" y="50%" fill="#eceeef" dy=".3em">less great product</text></svg>
<div class="card-body">
<h5 class="card-title">Less great product</h5>
<p class="card-text">Interesting product description right?
<ul class="list-group list-group">
<li class="list-group-item">SKU: lgp456</li>
<li class="list-group-item">Price: €6.99</li>
</ul></p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-secondary">View</button>
<button type="button" class="btn btn-sm btn-success">Add to Cart</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card mb-4 shadow-sm" data-item-type="product" data-item-name="Reasonable product" data-item-id="rbp789" data-item-price="9.99">
<svg class="bd-placeholder-img card-img-top" width="100%" height="120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: Thumbnail"><title>Reasonable product</title><rect width="100%" height="100%" fill="#55595c"/><text x="50%" y="50%" fill="#eceeef" dy=".3em">Reasonable product</text></svg>
<div class="card-body">
<h5 class="card-title">Reasonable product</h5>
<p class="card-text">Interesting product description right?
<ul class="list-group list-group">
<li class="list-group-item">SKU: rbp789</li>
<li class="list-group-item">Price: €9.99</li>
</ul></p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-secondary">View</button>
<button type="button" class="btn btn-sm btn-success">Add to Cart</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container" data-module="form">
<div class="row">
<form>
<div class="form-group">
<label for="exampleFormControlTextarea1">dataLayer code to push</label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3"></textarea>
</div>
<button type="submit" class="btn btn-primary">Push datalayer</button>
</form>
</div>
</div>
</div>
</main>
<footer class="text-muted" data-location="footer" id="visibility-test">
<div class="container">
<p>Blablabla, this is a footerr</p>
<p>Click a link! <a href="https://rickdronkers.com/">link</a>.</p>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>