mstrom
mstrom

Reputation: 1743

Site Speed for Google Analytics not working

I am successfully tracking traffic on a site (so far over 150 hits), however the Site Speed is still showing all zeroes. I know that the default is to only calculate speed for 1% of the requests, but it seems that nothing is getting tracked at all for Site Speed. I'm using the newest version of Chrome.

Any ideas? Thanks!

Upvotes: 3

Views: 2594

Answers (2)

nyuen
nyuen

Reputation: 8907

Have you called the _setSightSpeedSampleRate() method? That would be my best guess. According to the Google docs:

The _setSiteSpeedSampleRate() method must be called prior to _trackPageview() in order to be effective.

Upvotes: 0

Philip Walton
Philip Walton

Reputation: 30461

Site speed sample rate sets the percentage of users to be tracked not the percentage of requests. Here's what the docs say:

This setting determines how often site speed tracking beacons will be sent. By default, 1% of users will be automatically be tracked. Note: Analytics restricts Site Speed collection hits for a single property to the greater of 1% of users or 10K hits per day in order to ensure an equitable distribution of system resources for this feature.

In your case, if you don't expect to have more than 10K hits to your property in a single day, you can safely set the sample rate to 100%. Note: this has to be done in the create method:

ga('create', 'UA-XXXX-Y', {'siteSpeedSampleRate': 100});

Upvotes: 3

Related Questions