Last active
October 30, 2015 21:09
-
-
Save willf/c6caea480ce39ee6af2e to your computer and use it in GitHub Desktop.
Example HTML file with basic flight information for funnel analysis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Simple funnel example, with three exit points</title> | |
<script src="http://archive.org/includes/jquery-1.10.2.min.js" type="text/javascript"></script> | |
<script src="http://www-will.archive.org/includes/analytics.js?v=20fd7fa_854659" type="text/javascript"></script> | |
</head> | |
<!-- the data-ec="my-app" means we'll get context counts for participate. data-app="my-app" sets limits (esp for the data-convert | |
items) on the events to capture. | |
on load, this will fire an event with {app:"myapp", ec: "myapp", t:"event", ea: "participate"} | |
--> | |
<body data-participate data-ec="myapp" data-app='myapp'> | |
<ul> | |
<!-- on click, these will fire an event with {app:"myapp", ec: <value of data-ec>, t:"event", ea: "convert"} --> | |
<li><a data-convert data-ec="entish" href="http://entish.org">Entish.org</a></li> | |
<li><a data-convert data-ec="example" href="http://example.com">Example.com</a></li> | |
<li><a data-convert data-ec="archive" href="http://archive.org">Archive.org</a></li> | |
</ul> | |
</body> | |
<script type="text/javascript"> | |
if (window.archive_analytics) { | |
var vs = window.archive_analytics.get_data_packets(); | |
for (var i in vs) { | |
vs[i]['cache_bust']=Math.random(); | |
// add any other data you like | |
} | |
if(window.flights){ | |
window.flights.init(); | |
} | |
} | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment