On a small site, Analytics times only about one visitor in a hundred, so a page's average speed can rest on one or two visits. Raise the sample rate in the tracking code, then read by page.

Twenty seconds on the contact page

The Site Speed report in Analytics says the contact page takes twenty seconds to load. The home page, with its large photograph, loads in just over one.

The contact page is a short form and a map. No one in the office has ever waited more than a moment for it, on any computer.

Before anyone rebuilds the page, it is worth asking how many visits that twenty seconds came from. On a small site, the answer is often one.

How the timings are collected

The standard tracking code does not time every visit. By default it times only about one visitor in a hundred, a rate set with large sites and their traffic in mind.

Each timing comes from the visitor's own browser: from the click to the moment the page finished loading, over whatever connection and computer that visitor had.

Only browsers that report page timings are counted. Safari on Macs, iPhones and iPads does not report them, and Internet Explorer 8 generally does not either, so those visitors are missing from the report.

On a site with a few thousand visits a month, a page viewed three hundred times may have three timings behind its average, or none.

What can sit behind one average

With so few timings, any one of these can decide a page's number:

With hundreds of timings, these even out and the average says something about the page. With three, it mostly describes the visitors who happened to be timed.

Raising the sample rate

The tracking code accepts one extra line, the site speed sample rate, placed before the line that records the page view. A small site can set it to time every visitor.

Analytics caps how many timings it accepts from each site per day, but a small business site sits well below that cap even when every page view is timed.

The change applies from the day it goes live. Earlier dates keep their thin samples, so compare only the weeks after it.

Whoever maintains the site can add the line in minutes, and should check the next day that page views are still being recorded normally.

Reading it by page

Open the Site Speed reports in the Content section and look at the page timings. Sort by page views rather than load time, so the busiest pages come first.

A slow average on a page with many timings deserves attention. A slow average on a page with two deserves a second month of data before anyone acts.

Widening the date range to three months gives each page more timings to rest on, at the cost of mixing in older versions of the site.

Reading it by browser

The overview can split the averages by browser. A page that is slow in only one browser points to something that browser handles badly, such as a script or an embedded player.

A page that is slow in every browser points to the page itself: heavy images, too many separate files, or a slow server.

Timing a page yourself

The report is a sample of strangers' connections. A test of your own gives a fixed point: clear the browser's stored files on an office computer, load the page and time it.

Do the same on a phone over its mobile connection, away from the office Wi-Fi. If both are quick, a slow average probably came from the visitor's side.

A worked example

In Victoria, a four-person sound design studio records, edits and mixes sound for video games, radio spots and documentaries. The website has a reel page holding a dozen clips, a client list and a contact page.

The Site Speed report put the reel page at eighteen seconds and the client list at under one, and the studio was ready to have the reel page rebuilt.

Its designer looked first at the timings behind those averages. The reel page had two in the month, one from overseas; the client list had one.

Many of the studio's visitors use Macs and Safari, which report no timings, so the report described a small and unusual slice of its audience.

The sample rate went up to time every visit. A month later the reel page still averaged several seconds, steadily the slowest, because its audio player loaded every clip as the page opened.

Loading each clip only when a visitor presses play lets the page arrive without waiting for sound most visitors never hear.

When the report can be trusted

Trust an average when it rests on dozens of timings over a month or more, and when it moves in the same direction week after week.

Use the report to compare your own pages with each other, not to quote a load time.

Mark each change to the site with an Analytics annotation, so that a later shift in the averages has its likely explanation waiting beside it.

The counter-case

Where a site draws thousands of visits a day, the default rate already collects plenty of timings, and raising it adds little.

And a very small site may have too few visits for any sample to settle, even with every visit timed.

For both, the report is one instrument among several. Timing the pages by hand, and watching how the server responds, fills the gaps a sampled report leaves.

Making the speed numbers worth reading

  1. Note how many views each page had in the period.
  2. Set aside averages that rest on a handful of timings.
  3. Remember the browsers the report cannot see.
  4. Raise the sample rate in the tracking code.
  5. Wait a full month before reading the report again.
  6. Compare slow pages by browser.
  7. Time the slowest pages yourself before changing them.

Step four is a single line of code, and it changes every report after it. A small site that times every visit gets averages built on its visitors rather than on one unlucky connection.

Explaining what Analytics can and cannot see, to people who read its reports without using it, is part of website numbers a non-profit board actually needs.


Frequently asked questions

Why does the Site Speed report show strange numbers on a small site?

By default Analytics times only about one visitor in a hundred, so on a small site each page's average may rest on one or two visits.

How do I time more visits?

Add the site speed sample rate line to the tracking code, before the line that records the page view. A small site can time every visitor.

Which visitors are missing from the report?

Visitors whose browsers do not report page timings never appear, however high the sample rate. That includes Safari on Macs, iPhones and iPads, and most Internet Explorer 8 users.

When can I trust a page's average?

When it rests on dozens of timings over a month or more and moves the same way week after week. Two timings describe two visitors, not the page.

What does a slow page in one browser mean?

Something on the page that browser handles badly, such as a script or an embedded player. A page slow in every browser points to the page itself.

Should we rebuild a page the report says is slow?

Not on a thin sample. Raise the sample rate, wait a month, time the page yourself, and then fix whatever is slowing it down.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Speed figures that swing from page to page?

Let us check your tracking code, and we will set the sample rate so the speed report rests on enough visits to trust.

Start a Conversation