-
Notifications
You must be signed in to change notification settings - Fork 1
/
snippet-min.html
11 lines (10 loc) · 1.17 KB
/
snippet-min.html
1
2
3
4
5
6
7
8
9
10
11
<script type="text/javascript">
!function(){var t=window.sitehound=window.sitehound||[],n=("https:"===document.location.protocol?"https://":"http://")+"andyyoung.github.io/sitehound/sitehound-min.js";if(!t.sniff){if(t.SNIPPET_VERSION){var r="SiteHound snippet included twice";return window.console&&console.error&&console.error(r),void t.trackDebugWarn(r)}for(var e=["alias","debug","doNotTrack","identify","identifyOnce","info","ready","track","trackAndCount","trackLink","trackForm","trackOnce","trackDebugInfo","trackDebugWarn","trackError"],o=function(n){return function(){var r=Array.prototype.slice.call(arguments);return r.unshift(n),t.push(r),t}},i=0;i<e.length;i++){var a=e[i];t[a]=o(a)}t.sniff=function(){t.sniffOnLoad=!0},t.SNIPPET_VERSION="2.1",t.load=function(r){t.adaptor=r;var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=n+"?snippet_ver="+t.SNIPPET_VERSION;var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(e,o)},t.disable=function(){t.adaptor="disabled"}}}();
sitehound.load("segment");
// your code here
sitehound.trackPages = {
"Home": "/"
};
// call to trigger tracking after all config
sitehound.sniff();
</script>