How can I track scrolling in a Google Analytics custom report?

Posted by SnowboardBruin on Pro Webmasters See other posts from Pro Webmasters or by SnowboardBruin
Published on 2013-11-12T21:14:30Z Indexed on 2013/11/13 4:14 UTC
Read the original article Hit count: 192

I want to track scrolling on my website since it's a long page (rather than multiple pages). I saw several different methods, with and without an underscore for trackEvent, with and without spaces between commas

 <script>  ...
...   ...
  ga('create', 'UA-45440410-1', 'example.com');   ga('send',
 'pageview');

 _gaq.push([‘_trackEvent’, ‘Consumption’, ‘Article Load’, ‘[URL]’, 100, true]); 
 _gaq.push([‘_trackEvent’, ‘Consumption’, ‘Article Load’, ‘[URL]’, 75, false]);
 _gaq.push([‘_trackEvent’, ‘Consumption’, ‘Article Load’, ‘[URL]’, 50, false]);
 _gaq.push([‘_trackEvent’, ‘Consumption’, ‘Article Load’, ‘[URL]’, 25, false]);

 </script>

It takes a day for counts to load with Google Analytics, otherwise I would just tweak and test right now.

© Pro Webmasters or respective owner

Related posts about seo

Related posts about google-analytics