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}); |
Author
simondahla
commented
Oct 24, 2013
Monthly Visits | _setSiteSpeedSampleRate Value (%) |
---|---|
1-10,000 | 100 |
10,001-20,000 | 50 |
20,001-50,000 | 25 |
50,001-100,000 | 10 |
100,001-250,000 | 5 |
250,001-500,000 | 3 |
500,001-999,999 | 2 |
1,000,000+ | Don’t override the default |
monthly visits meaning page views or sessions?
I assume this would be sessions not page views?
Visits is the same thing as a session.
It seems GA also does also sample timing hits on their servers: https://developers.google.com/analytics/devguides/collection/analyticsjs/user-timings#sampling_considerations
Did you take that into consideration as well?
Hey. What is this part used for:
'cookieDomain': 'example.com', ?
My analytics.js is hardcoded (not GTM), should I replace the:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment