homepage Welcome to WebmasterWorld Guest from 54.166.14.218
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
How do you increase sample rate for page speed
cmendla

10+ Year Member



 
Msg#: 4654928 posted 2:22 am on Mar 18, 2014 (gmt 0)

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

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved