Skip to content

Instantly share code, notes, and snippets.

@mrmartineau
Created March 11, 2016 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrmartineau/6b96e3e12c315af33ad5 to your computer and use it in GitHub Desktop.
Save mrmartineau/6b96e3e12c315af33ad5 to your computer and use it in GitHub Desktop.
Google Analytics embed code for Kickoff. http://trykickoff.com
<script>
(function(K,i,c,k,o,f,F){K['GoogleAnalyticsObject']=o;K[o]=K[o]||function(){
(K[o].q=K[o].q||[]).push(arguments)},K[o].l=1*new Date();f=i.createElement(c),
F=i.getElementsByTagName(c)[0];f.async=1;f.src=k;F.parentNode.insertBefore(f,F)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXX-XX', 'http://yourdomain.com', {
//'cookieDomain': 'none' // Use if debugging on localhost
});
ga('send', 'pageview');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment