Skip to content

Instantly share code, notes, and snippets.

@matthewpalmer
Last active December 14, 2015 09:49
Show Gist options
  • Save matthewpalmer/5068083 to your computer and use it in GitHub Desktop.
Save matthewpalmer/5068083 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<!-- REPLACE WITH THE CODE FROM YOUR SEGMENT.IO INSTRUCTIONS -->
<script type="text/javascript">
var analytics=analytics||[];analytics.load=function(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=("https:"===document.location.protocol?"https://":"http://")+"d2dq2ahtl5zl1z.cloudfront.net/analytics.js/v1/"+e+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);var r=function(e){return function(){analytics.push([e].concat(Array.prototype.slice.call(arguments,0)))}},i=["identify","track","trackLink","trackForm","trackClick","trackSubmit","pageview","ab","alias","ready"];for(var s=0;s<i.length;s++)analytics[i[s]]=r(i[s])};
analytics.load("");
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment