Track Scrolling in a Page (Engagement) with Jquery and Google Analytics
December 20th, 2011 admin Location: Raleigh, NC, Topic: Web Design | Digital MediaSo 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.

Related posts:
- Do you want to track your internal search queries with Google Analytics?
- The Google Analytics Cheat Sheet
- Need the IP address of your visitors in Google Analytics Reports? Is it possible?
- Avoid Content Duplication because of Google Analytics
- Installing Google Analytics in Drupal 6.6: Beginner’s Video Tutorial.
- New Google Analytics Interface
- VideoCast: Retrieving IP Addresses with Google Analytics
- Google Analytics and Google Sitemaps combined
- Google Analytics Proper Goal Setting without Canonical Redirects.
- Great Google Analytics Package


