-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.html
31 lines (28 loc) · 1.11 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
<!DOCTYPE html>
<html>
<head>
<title>Demo</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="Demo Project">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css"></style>
</head>
<body class='peatrackernut'>
<!-- Will trigger eventlogger on pageload -->
<p tracker-on="load" tracker-category="Video" tracker-action="view" tracker-label="Cool video about cats" class="tracker">this will trigger the eventLogger when the page has been loaded</p>
<!-- will trigger eventlogger when clicked on -->
<p tracker-on="click" tracker-category="Video" tracker-action="play" tracker-label="Cool video about cats" class="tracker">this will trigger the eventlogger when user clicks the element</p>
<script type="text/javascript" src="../dist/adnalytics.umd.js"></script>
<script>
console.log("initiating")
function eventLogger(myEventObject) {
console.log(myEventObject);
}
adnalytics.Init({
profile: "tracker",
callback: eventLogger
});
</script>
</body>
</html>