Last active
August 4, 2018 17:45
-
-
Save simondahla/7135684 to your computer and use it in GitHub Desktop.
Set proper Sample Rate for Site Speed http://blog.mythly.com/improve-site-speed-in-google-analytics/ Note: Google will automatically cap the sample rate to 10k pageviews a day.
This file contains 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
_gaq.push(['_setSiteSpeedSampleRate', 100]); |
This file contains 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
ga('create', 'UA-XXXXXX-Y', {'cookieDomain': 'example.com', 'siteSpeedSampleRate': 100}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey. What is this part used for:
<script> . . . . ga('create', 'UA-XXXXXXXX-2', 'auto'); <---- replace this? how? ga('send', 'pageview'); </script>'cookieDomain': 'example.com', ?
My analytics.js is hardcoded (not GTM), should I replace the: