Last active
March 13, 2017 13:02
-
-
Save imsus/e7f70eb66b8261e3145fb03a641166a0 to your computer and use it in GitHub Desktop.
Usual snippet for performance + full feature Google Analytics + Autotrack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)}; | |
ga('create', 'UA-XXXXX-Y', 'auto'); | |
ga('require', 'outboundLinkTracker'); | |
ga('require', 'cleanUrlTracker'); | |
ga('require', 'maxScrollTracker'); | |
ga('require', 'pageVisibilityTracker'); | |
ga('require', 'urlChangeTracker'); | |
ga('set', 'transport', 'beacon'); | |
ga('send', 'pageview'); | |
</script> | |
<script async src="https://www.google-analytics.com/analytics.js"></script> | |
<script async src="https://unpkg.com/autotrack@latest/autotrack.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment