We’re building websites with the prospect to provide essential information to visitor inform of a content i.e. videos, facts, statics and many more etc with intention converting that visitor either to buy something from of the website or to subscribe the news letter.
Some time what happens that we aren’t aware about content consumption capacity of visitor. Regardless we provide all the avail content to visitor on single page then It becomes too long page with 3 -4 scroll.
Now here problem arises that either how to get information about visitor’s content engagement or how does visitor engage with the page that has 2 -3 scroll long content? This analysis is mandatory to get insight about content engagement of visitors or how does visitor look at the content in 2nd or 3rd fold the page?
With the help of scroll tracking implementation for google analytics, based on that analysis website owners can re-organize content placement to increase content engagement of the website.
Scroll Tracking Implementation for Google Analytics
I have developed a jquery based script which would help to identify % page viewed, % page scroll and the page fold user is in.
Instructions to use:
- Please download scrolltracking.js
- Include the code block as shown below.
See it in action:
Scrolltracking.js would attach a function to scroll change on document. So when ever user scrolls down it’ll collect following values as “pv|ps|pf” with non-interactive flag.
- pv – maximum % page viewed by user.
- ps – maximum % page scrolled by user.
- pf – maximum page fold user viewed.
Here all the values measured and tracked in GA would be the maximum value of %page viewed, %page scrolled and page fold user was in. So we can identify how much content is viewed by user on a given page. If user lands to page and goes to another page without scrolling. It’ll track default values “X|0|1” in GA where “X” is % page viewed (user viewed some portion) and 0% page scroll and 1 as page fold.
- This script works with jQuery versions greater than 1.3.2 and tested with chrome, firefox, internet explorer 8
- You can exclude information if you don’t want to track any of the values pv (% page viewed), ps (% page scrolled) or pf (page fold) – You’ll need to update the script.
Latest posts by Tatvic (see all)
- Web Page Sequencing Analysis Using Google Analytics - December 22, 2012
- Anonymous Tracking of visitor using visitor id - October 8, 2012
- Tracking URL query parameters to get actionable information - June 27, 2012