-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.html
More file actions
29 lines (25 loc) · 765 Bytes
/
test.html
File metadata and controls
29 lines (25 loc) · 765 Bytes
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
<html>
<body>
<div data-lytics="click" data-lytics-foo="bar">
<span>Search </span>
<a href="https://google.com" data-lytics="click" data-lytics-where="google">Google</a>
<div>
<form action="https://google.com" method="GET" data-lytics="submit" data-lytics-type="search">
<input type="text" placeholder="What do you want to search for?" data-lytics="click" data-lytics-type="input">
<button>Search</button>
</form>
</div>
</div>
<script src="./lytics.js" type="text/javascript"></script>
<script>
window.eventList = [];
lytics.init({
parent: 'body',
tracker: function (event, callback) {
window.eventList.push(event);
callback();
}
});
</script>
</body>
</html>