Small site? Raise your page load time calculation sample to 100%

A quick post about a new feature Google released quietly: it's possible to raise your site speed sample rate from 10% to 100% if you want. Especially small sites can take advantage of this. How often have you seen this:

A very low sample of pageviews where a page load time calculation is done. This leads to a very bumpy graph in actual page load times. And that is very annoying if you want to analyze your "bring my page load time down" efforts, You can only significantly say something about it if you have at least a week of data. And we all want to see results right away 😉

But now Google has provided a way to set this samplerate higher than the default 1% or the max 10% you could set before. Add this to your Google Analytics code (between the setAccount and the trackPageview):

_gaq.push(['_setSiteSpeedSampleRate', 100]);

In the past you could raise your sample rate to a max of 10% (for max 10K pageviews), but now you can raise it to 100% (also probably maxed at 10K). I used 99% for a while in my tracking code, so I'm seeing this in my sample rate graph:

The dark blue line is the sample size, the light blue my pageviews. You can see more pageviews are used to calculate average page load time.

Click to activate social bookmarks