Google Analytics has a set of ‘speed’ reports, found under the the ‘Content’ left-hand navigation item. Here are 10 very quick “Google Analytics Site Speed” tips, collected together for ease of reading:
- All of the load speed data in Google Analytics is taken from users’ browsers themselves, so is fairly accurate.
- The browser stores all this speed data; Google Analytics then pulls that data at the point the code fires.
- Some browsers don’t support page load speed recording (notably Safari) so be very careful on ‘mobile’ speed.
- It’s tempting to pay attention to the top level “Avg. Page Load Time (sec)” metric that Google Analytics gives you. Slightly more useful than that: The ‘Distribution‘ report is tucked away behind a tab in the ‘Page Timings’ report. The distribution report is very useful, as you can see ‘% of pages loaded in less than X seconds’.
- ‘DOM Timings’ reports were added long after the main speed reports. They’re found in a similar area to the ‘distribution’ report, and are useful as they show how long it takes for your pages to become usable. (giving you ‘Avg. Document Interactive Time (sec)’ and ‘Avg. Document Content Loaded Time (sec)’ for each page).
- A big caveat: Google Analytics only tracks ‘page load speed’ for between 1-5% of pageviews as standard. You can fix that (see point 8).
- Because the sample size is so low, remember that ‘average’ page load speed is therefore affected if the speed of a page has only been recorded a few times.
- To fix the sample rate issue, add: “_gaq.push(['_setSiteSpeedSampleRate', 100]);” above the ‘trackpageview’ line in your Google Analytics code to improve accuracy. (this essentially tells Google Analytics ‘try and collect page load speed data for 100% of page views’). Based on the earlier caveat that not all browsers support it, you will never see a 100% sample rate, but this will increase it significantly.
- If you’re looking for a good KPI on site speed, ‘% of pages loaded in less than 3 secs’ is a safe bet. (and ‘less than 7 seconds’ as a secondary).
- You may want to isolate that KPI further: ‘UK Only: % pages loaded in under 3 secs’ split by new vs return, for example.
I’ve done quite a bit of work with ‘Google Analytics Page Speed’ reports & have found them really useful, but with plenty of hidden caveats in the data. Feel free to ask any questions if I can help, & do share this with others if you think it would be useful.