Reputation: 2836
Why are my Google Analytics Page Timings all 0.00%?
Is doing something like this enough to get page timings or is there something different I should be doing?
/* GOOGLE ANALYTICS ID */
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', [myid], 'auto');
Other stats are working using same ga which I set to my account ID.
Upvotes: 3
Views: 1065
Reputation: 131
I am struggling with this issue as well. After researching the page tracking site timings, it appears there could be a few issues causing the timings not be recorded:
If you see Help in the PageSpeed Suggestions column, this indicates that we were unable to analyze the page at the given URL, and you should try again later. If the error persists, it may be due to any of the following:
-The hostname you have configured in the Website’s URL section of your View Settings is not a valid hostname for your website. -The URLs shown in the Site Speed Suggestions report are not valid URLs for your website. -You are tracking multiple subdomains and not using a single hostname. -You have set up view filters to rewrite your URLs. -The page requires authentication.
Most concerning to me is the "page requires authentication" item. I think that will prevent me from collecting this data.
Upvotes: 2
Reputation: 3709
That's because of bounce rate.
When a visitor comes to your site, he or she gets a timestamp. So, Analytics might note that User landed on your Homepage at 17:35:03. Then, Analytics assigns a new timestamp when that user accesses a new page on your site. So if user clicks on a link to your About page at 17:36:04, that leaves your Homepage with a Time on Page of 00:01:01.
But what happens if user never accesses another page on your site (in other words, if bounces?
Then there's no second timestamp for Google to work from. So they assign a Time on Page of 00:00:00.
There are few workarounds.
One is explained here: tracking adjusted bounce rate.
Upvotes: 2