Welcome to WebmasterWorld Guest from 54.226.146.15

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

How do you increase sample rate for page speed

     

cmendla

2:22 am on Mar 18, 2014 (gmt 0)

10+ Year Member



I changed over to the new 'universal' analytics for a site. I want to get a better handle on page speed. The way to do that that I found appears to be from the old version of analytics. When I look at the page timing reports, I see a lot of the days are zero. I think this is because the site doesn't get more than 300 visits a day on average.

My analytics tracking code looks something like

<script>
(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', 'UA-________-_', 'mysite.com');
ga('send', 'pageview');

</script>


I was previously using the old code and just changed over today. I found something that said to add the following to the tracking code.

Added  _gaq.push(['_setSiteSpeedSampleRate', 100]); to the google tracking code


That was supposed to tell analytics to track the page speed of all pages as I understand it. 100 says sample speeds for 100 percent of the pages?

Questions

1) will changing the code to the universal analytics code change things so that I can see the complete page timings. ?
2) if the new universal analytics code won't show the page timings what code can I add to the tracting code?


Thanks

chris
 

Featured Threads

Hot Threads This Week

Hot Threads This Month