So I came across a post by RTP Harry from http://runtingsproper.blogspot.com/2010/03/google-analytics-tracking-content.html where he explains how to track scroll depth in Google Analytics.
Since I was looking for exactly that for one of our projects I was excited to give it a go. However it didn’t work. And so I started in my usual journey of understanding why it wasn’t working, fixing it and then sharing it with all of our readers. So here it is:
Problem:
You want to track the engagement of your users and therefore you would like to see in Google Analytics if your users are scrolling down your pages and reaching at least 90% of the length.
Solution:
This could be done in several ways, however in this case probably the easiest solution is to use Jquery (client-side) and Google Analytics.
To begin, Google Analytics provides something called Event Tracking. This allows to track things happening in your website, blog or page. And that is exactly what we are after. Most of the time this behavior is used to track downloads of PDFs videos or clicks on links. This time we are going to track scrolling on a page.
This content is available to subscribers only. Haven't subscribed yet? Do so below: