-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
51 lines (46 loc) · 2.63 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Tracker HTML</title>
<script type="text/javascript">
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
//add GA key below
ga("create", "YOUR_GA_KEY", "auto");
</script>
<script id='_webengage_script_tag' type='text/javascript'>
var webengage; !function (w, e, b, n, g) {
function o(e, t) {
e[t[t.length - 1]] = function () {
r.__queue.push([t.join("."),
arguments])
}
} var i, s, r = w[b], z = " ", l = "init options track screen onReady".split(z), a = "feedback survey notification".split(z), c = "options render clear abort".split(z), p = "Open Close Submit Complete View Click".split(z), u = "identify login logout setAttribute".split(z); if (!r || !r.__v) { for (w[b] = r = { __queue: [], __v: "6.0", user: {} }, i = 0; i < l.length; i++)o(r, [l[i]]); for (i = 0; i < a.length; i++) { for (r[a[i]] = {}, s = 0; s < c.length; s++)o(r[a[i]], [a[i], c[s]]); for (s = 0; s < p.length; s++)o(r[a[i]], [a[i], "on" + p[s]]) } for (i = 0; i < u.length; i++)o(r.user, ["user", u[i]]); setTimeout(function () { var f = e.createElement("script"), d = e.getElementById("_webengage_script_tag"); f.type = "text/javascript", f.async = !0, f.src = ("https:" == e.location.protocol ? "https://widgets.in.webengage.com" : "http://widgets.in.webengage.com") + "/js/webengage-min-v-6.0.js", d.parentNode.insertBefore(f, d) }) }
}(window, document, "webengage");
//add webengage key below
webengage.init("YOUR_WEBENGAGE_KEY");
</script>
</script>
</head>
<body>
<header>
<nav></nav>
</header>
<main>
<button data-emit-tracker="true" data-event-category="BUTTON1 CLICK" data-event-action="Clicked"
data-event-label="User"> Button 1</button>
<br />
<br>
<button data-emit-tracker="true" data-event-category="BUTTON2 CLICK" data-event-action="Clicked"
data-event-label="User"> Button 2</button>
</main>
<script src=" ./scripts/index.js"> </script>
</body>
</html>