Skip to content
Permalink
4398fbe0da
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
24 lines (21 sloc) 574 Bytes
<!DOCTYPE html>
<html>
<head>
<title>ahoy.js</title>
<script src="dist/ahoy.js"></script>
<script>
// ahoy.configure({headers: {"test": "123"}})
// ahoy.trackAll();
// ahoy.trackView({hello: "world"});
ahoy.trackClicks("#link2");
// fetch("/fetch", {
// headers: {"Ahoy-Visit": ahoy.getVisitId(), "Ahoy-Visitor": ahoy.getVisitorId()}
// })
// ahoy.reset()
</script>
</head>
<body>
<a href="/" id="link1"><span>Link</span></a>
<a href="/" id="link2"><span>Link 2</span></a>
</body>
</html>