Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Shoora/a0a58dc2b8c0230fe156b5509763f77c to your computer and use it in GitHub Desktop.
Save Shoora/a0a58dc2b8c0230fe156b5509763f77c to your computer and use it in GitHub Desktop.
Google Analytics Asynchronous Tracking Code Example
<!-- Google Analytics -->
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<!-- End Google Analytics -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment