Page scroll tracking in Google Analytics

Page scroll tracking in Google Analytics

How to determine users engagement on one page site such as landing page? With Google Analytics (GA) standard settings it’s impossible. We will see very high bounce rate and information, that users mostly spend on our site 0 seconds. Is this information true? Of course not! We will see this information, because Google normally starts tracking visit duration, when user go deeper into website and at least see two pages (and in one page sites case it’s technically impossible).

So how to get this information? Or maybe to be more clear – how to make them more real?

Firstly why we need this information? We need it to determine if our website is engaging users or not… and if it is prepared good for it’s target audience or we need to change something.

Of course we can determine website effectiveness by measuring different sort of data, such as for example number of acquired e-mails or phone numbers… and compare those to total number of visits. But is it enough? Of course not! So let’s keep optimizing!

In this post I’ll show You a little trick! We will do some custom GA coding and expand our GA functions! From now our data will be more realistic and our analytics capabilities will be enlarged.

Stay tuned – Just in a few minutes You will know how to prepare custom GA reporting and we will know:

  • how users interact with our website (even when it’s a one page site),
  • how much our content engage visitors?

More realistic bounce rate

We will also make ‘bounce rate’ more realistic. Normally ‘bounce rate’ is a percentage of sessions with only one interaction (standard pageview). And when talking about one page website – all visits, even those, which least for 15-20 minutes will give us same results in GA – ‘bounce rate’ with only one pageview and 0 seconds session duration…

And it’s not true! Let’s look at an example. Someone was reading our newest post for 20 minutes and then go away. GA will give us the following information – ‘bounce rate’, one page viewed and 0 seconds session duration.

With scrolling tracking implemented, when user interacts with our website (by scrolling it), an event will be sent to GA. It affects ‘bounce rate’… and in this situation, user session – even if the user does not move to the next subpage – will not be counted as rejection.

Our session duration will be also more real

Session duration in Google Analytics is counted from first to last interaction with website. So when we have Google Analytics code implemented in a standard way – our data is always inaccurate, because it does not takes into account time, that user spend on last page, just before leaving.

Sometimes this last page is the only one viewed by user and one to gain we see the filed for optimizations!

Using scrolling tracking, we can correct this value. Scrolling will send an event to GA and this piece of information will determine time spent on the page.

Copy this code into Your website

This piece of code should be placed in <head> section, just after GA tracking code.

Just quick explanation on how it works – when user interacts with our website – scroll it by 25, 50, 75 or 100% event is sent to GA.

And let’s prepare custom report using GA

With this report we will be able to look at page scrolling statistics for each subpage from our service.

So let’s start! ·

  • Go to the Reporting tab and select Behavior > Events > Pages
  • Choose date range, for example last 7 days
  • Switch data display type to PivotTable

How to create custom page scroll report in Google Analytics?

  • Fill in – Pivot by ‘event label’ and pivot metrics – ‘total events’

How to create custom page scroll report in Google Analytics?

  • Create advanced filter – Match Regular Expression – Depth: (0 | 25 | 50 | 75 | 100) \%

How to create custom page scroll report in Google Analytics?

  • Create shortcut to your new awesome report and use it any time You want!

How to create custom page scroll report in Google Analytics?

In case something goes wrong – please let me know in comments below.

Enjoy!