-
Notifications
You must be signed in to change notification settings - Fork 116
/
index.html
31 lines (28 loc) · 890 Bytes
/
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>ahoy.js</title>
<script src="dist/ahoy.js"></script>
<script>
ahoy.configure({visitParams: {"test": "123"}})
// ahoy.trackAll();
// ahoy.trackView({hello: "world"});
ahoy.trackClicks("a");
// fetch("/fetch", {
// headers: {"Ahoy-Visit": ahoy.getVisitId(), "Ahoy-Visitor": ahoy.getVisitorId()}
// })
// ahoy.reset()
</script>
</head>
<body>
<a href="/" id="link1"><span>Link</span></a>
<div data-ahoy-skip="true" data-section="content">
<a href="/" id="link2"><span>Link 2</span></a>
<a href="/" id="link3" data-ahoy-skip="false"><span>Link 3</span></a>
<div data-ahoy-skip="false">
<a href="/" id="link4"><span>Link 4</span></a>
</div>
</div>
<a href="/" id="link5" data-ahoy-skip="true"><span>Link 5</span></a>
</body>
</html>