Add Segment tag to enable Google Analytics (#2220)

Signed off by: Jason McDonald <jason@chef.io>
This commit is contained in:
Jason McDonald 2017-10-05 16:18:47 -07:00 committed by hannah-radish
parent 90fc6affd2
commit 8968fb0ea7

View file

@ -11,6 +11,12 @@
<!-- endbuild -->
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<script>
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0";
analytics.load("2NpoxZS2fnBmOgGdnQOymLNm6wuij13X");
analytics.page();
}}();
</script>
</head>
<body>
<!-- build:js scripts/inspec_tutorial.js -->