GA4 (Google Analytics 4) Scroll Tracking Tutorial

Last Updated: February 3, 2023

Scroll tracking allows you to measure how website users engage with your content. It also can change an unnecessarily high bounce rate to a meaningful and real bounce rate.

In this article, I will talk about how to set up scroll tracking in Google Analytics 4 (GA4).

Understanding scroll tracking in Google Analytics 4

Google Analytics 4 tracks scroll events by default through its enhanced measurement options.

With enhanced measurement in GA4, you can automatically track and measure interactions and content on your sites in addition to standard page views. Scrolls, outbound clicks, site search, video engagement, and file downloads are the events tracked automatically.

Caveat: By default, GA4 tracks only 90% of scroll events. But what about the other scroll depths, like 10%, 25%, 50%, and 75%?

These scroll depth events also play an important role in measuring user behavior on a website, especially if you have a heavy content website.

Another thing to note is that GA4 only tracks vertical scroll events with no parameter collected for the event. If you want to set up scroll events for lesser thresholds (10%, 25%, 50% and 75%) or horizontal scroll tracking, you need to set up custom events using the global site tag (gtag.js) or Google Tag Manager.

Let’s set up scroll tracking for your Google Analytics 4 property using Google Tag Manager using the below steps.

Setting up scroll tracking in Google Analytics 4 using Google Tag Manager

Note: You must have a GTM container code available on the website before proceeding through these steps.

The scroll depth threshold is a built-in variable in GTM, and it should be enabled to use in our events. If it’s not enabled by any chance, you can enable it by going to the ‘Variable’ tab.


Under ‘Built-in Variables’, click on ‘Configure’.

variable 1

Click on every checkbox under ‘Scrolling’ to enable the required variables.

variable 2

Step 1: Log in to your Google Tag Manager console and click on ‘Tags’ in the left-hand side menu.

tags 1

Step 2: Click on ‘New’ to create a new scroll event tag for your GA4 property.

new 1

Step 3: Give a proper name to your tag and click on ‘Tag Configuration’.

tag name

Step 4: An overlay will appear on the right-hand side with a list of tag templates. Select ‘Google Analytics: GA4 Event’.

choose tag type

Step 5: The tag configuration window will open, as below. Click on ‘Select Configuration Tag’.

tag configuration

Step 6: A drop-down menu will appear. You can select your pageview tag or ‘None- Manually Set ID’ from the drop-down. In our case, we will select ‘None- Manually Set ID’.

select tag

Step 7: The next step is to enter the GA measurement ID in the input box.

You can find your measurement ID in the ‘Admin’ section under ‘Data Streams’.

Web Stream details
set id

Step 8: Specify the name of the event. The event name you provide here will appear in your GA4 analytics reporting.

In our case, we want to measure vertical scroll events at 10%, 25%, 50% and 75%. So, we can add a ‘Scroll Depth Threshold’ variable. This will only provide a value like 10, 25, 50 and 75, but we want our event name to be more descriptive; hence we can add ‘%’ after selecting ‘Scroll Depth Threshold’ and text as ‘Scroll’.

This will give an event name as ‘10% scroll’, ‘25% Scroll’, ‘50% Scroll’ and ‘75% Scroll’.

Click on the settings icon with ‘+’ on it like below to add a variable.

select variable

Step 8.1: An overlay will appear like below. Select ‘Scroll Depth Threshold’.

select variable 1

Step 8.2: Add the ‘%’ sign immediately after the curly braces.

select variable 2

Step 8.3: Now, enter a space and add ‘Scroll’ as text in the input box.

select variable 3

You can also add parameters and user properties to the event, but this is optional. Additional parameters and user properties are nothing but custom dimensions that you would like to pass along with the event. Since the event name is sufficient to define the user activity, we are not adding any parameters or user property to this event.

Step 9: Now, let’s create a trigger condition to fire our tag. Click anywhere under ‘triggering’.


Step 10: An overlay will appear like below. Click on the ‘+’ icon to add a new trigger.

trigger 1

Step 11: Give a proper name to your trigger and click anywhere in ‘Trigger Configuration’.

trigger 2

Step 12: An overlay will appear like below. Click on ‘Scroll Depth’.

trigger 3

Step 13: Trigger configuration settings options will be available as below. You will get two checkboxes called ‘Vertical Scroll Depth’ and ‘Horizontal Scroll Depth’. You can select one based on your business need or even select both. In our case, we are tracking the vertical scroll only.

trigger 4

Select the ‘Vertical Scroll Depth’ option.

trigger 5

Step 14: You also get the option to measure the scroll depth in percentages or pixels. In our case, we are going to measure it by percentage scrolled. By default, the percentage radio button is selected. Add your threshold limits separated by commas in the input box like below.

trigger 6

Step 15: Click on the ‘Save’ button to save the trigger configuration.

save 3

Congratulations! You have successfully created your custom scroll tracking event. Now let’s debug it and preview it.

Debug and preview scroll events

Step 16: Click on the ‘Preview’ button (on the top right-hand side) to preview and test your new scroll tracking setup.

preview 1

Step 17: New window will open with Google preview mode. Add the URL of your website and click on ‘Start’.

start 1

Step 18: Another new window will open with the specified URL. Now gradually scroll down your webpage until you reach the bottom. As you start scrolling down, you should see new ‘Scroll Depth’ events in the GTM preview mode tab, showing one after another under the ‘Summary’ column.

preview 2

Step 19: Click on any ‘Scroll Depth’ event, and you should see your tag is firing like below.

preview 3

Step 20: Click on the scroll tag name under ‘Tags Fired’.

preview 4

Step 21: A new overlay will appear like below, providing details of our tag and trigger.

preview 5

Note: You can see in the image above that the event name is ‘Scroll Depth Threshold% Scroll’. Here ‘Scroll depth threshold’ is the predefined variable, and ‘%’ and ‘Scroll’ are text values we provided while defining the event name.

Step 22: To check the value of ‘Scroll Depth Threshold’, click on ‘Data Layer’, and you can see the threshold value for the selected event from the summary tab.

preview 6

Step 23: You can also check this in real-time in Google Analytics. Navigate to your analytics property and click on ‘Realtime’ in the left menu.

realtime 4

Step 24: You will see real-time scroll events firing for our custom threshold defined like below.

preview 8

Congratulations, you have successfully set up a custom scroll tracking event for Google Analytics 4 using Google Tag Manager.

To check the event’s details in the GA4 console, you can click on ‘All Events’ on the left side reporting menu, and you will get the details of all scroll tracking events that occurred on the website like below.

Events 2

Note: In the above image, you can also see an event as ‘Scroll’ with 152 counts. This event is predefined evet tracked by GA4 at the threshold of 90%.


Since Google Analytics 4 provides by default scroll tracking, it is limited to 90% of the scroll depth threshold. If you want to track custom threshold events (10%, 25%, 50%, 75%, etc.), you need to set up custom events using Google Tag Manager or global site tag.

#1 Google Analytics 4 Intro

  1. What is GA4 (Google Analytics 4) – The Apps + Web Property?
  2. Key Benefits of Using Google Analytics 4 (GA4)
  3. Setup GA4 – Upgrade to GA4 – Implementation Guide
  4. Google Analytics 4 (GA4) vs Universal Analytics – What is the Difference?
  5. GA4 vs GA4 360 – Pricing, Limits, Billing and More
  6. Google Analytics 4 Training & Tutorial with FREE GA4 ebook

#2 Google Analytics 4 Property

  1. Google Analytics Account Hierarchy (Structure Explained)
  2. Understanding Google Analytics Measurement ID (GA4)
  3. Google Signals GA4 – See Demographics (Gender, Age) in Google Analytics 4
  4. Using the GA4 (Google Analytics 4) Test Property
  5. Google Analytics 4 Sub Properties Tutorial
  6. Roll up Property in Google Analytics 4 (GA4) – Tutorial

#3 Google Analytics 4 Integrations

  1. How to connect GA4 (Google Analytics 4) with Google Data Studio
  2. How to link GA4 (Google Analytics 4) with Google Ads
  3. How to link Google Search Console to Google Analytics 4 (GA4)
  4. How to Install Google Analytics 4 on Shopify
  5. GA4 Firebase Integration – Correctly Add App Data Streams to GA4 Property

#4 Google Analytics 4 Events

  1. GA4 (Google Analytics 4) Event Tracking Setup Tutorial
  2. Understanding Event Parameters in Google Analytics 4 (GA4)
  3. Recommended Events in Google Analytics 4 (GA4)
  4. Enhanced Measurement Events in Google Analytics 4 (GA4)
  5. Automatically Collected Events in Google Analytics 4 (GA4)
  6. How to Set Up GA4 Custom Events via Google Tag Manager
  7. Events Report in Google Analytics 4 (GA4)
  8. How to Rename Events in Google Analytics 4 (GA4)
  9. How to Use Google Analytics 4 Event Builder
  10. GA4 Form Interactions Tracking – Enhanced Measurement

#5 Google Analytics 4 Conversions

  1. Google Analytics 4 Conversion Tracking Guide – GA4 Goals
  2. How to Import Conversions from GA4 Property to Your Google Ads account
  3. GA4 Conversion Rate – How to find it and use it

#6 Google Analytics 4 Dimensions

  1. GA4 (Google Analytics 4) Dimensions Tutorial
  2. GA4 (Google Analytics 4) Custom Dimensions Tutorial
  3. GA4 User Properties (User Scoped Custom Dimensions) – Tutorial
  4. Event Scoped Custom Dimensions in GA4 – Tutorial

#7 Google Analytics 4 Metrics

  1. GA4 (Google Analytics 4) Metrics Tutorial with Free Google Analytics 4 Ebook
  2. GA4 (Google Analytics 4) Custom Metrics Tutorial
  3. What are Predictive Metrics in Google Analytics 4 (GA4)

#8 Google Analytics 4 Ecommerce

  1. GA4 (Google Analytics 4) Ecommerce Tracking via GTM – Tutorial

#9 Google Analytics 4 Specialized Tracking

  1. GA4 (Google Analytics 4) Enhanced Measurement Tracking Tutorial
  2. Cross Domain Tracking in GA4 (Google Analytics 4) Setup Guide
  3. GA4 Site Search – Tracking Site Search in Google Analytics 4
  4. GA4 (Google Analytics 4) Scroll Tracking Tutorial
  5. Self-referral Google Analytics 4 – Referral exclusion GA4
  6. GA4 (Google Analytics 4) Data Import Tutorial
  7. Google Analytics 4 Content Grouping – Create Content Groups in GA4
  8. How to Track Single Page Apps in Google Analytics 4 (GA4)
  9. utm_source, utm_medium, utm_campaign Parameters – GA4 (Google Analytics 4)
  10. GA4 Form Tracking via Google Tag Manager

#10 Google Analytics 4 filters

  1. GA4 filters – Understanding Data Filters in Google Analytics 4
  2. How to Create and Test Filters in Google Analytics 4 (GA4)?
  3. Exclude Internal Traffic in GA4 (Google Analytics 4) via IP Filter

#11 Google Analytics 4 Explorations

  1. Free Form Report in GA4 (Google Analytics 4) – Exploration Report
  2. How to Use the User Lifetime Report in Google Analytics 4 (GA4)
  3. How to Use Path Exploration Report in GA4 (Google Analytics 4) – Path Analysis
  4. How to Use Segment Overlap Report in Google Analytics 4 (GA4)
  5. How to Use the Funnel Exploration Report in GA4 (Google Analytics 4) – Funnel Analysis
  6. Cohort Exploration Report in Google Analytics 4 (GA4)
  7. How to Create Landing Pages Report in GA4 (Google Analytics 4)
  8. How to Create Google Ads report in GA4 (Google Analytics 4)
  9. How to Segment GA4 Data by Data Stream
  10. Organic Search Traffic Analysis in GA4 – Complete Guide
  11. Google Analytics 4 (GA4) Outbound Links Tracking
  12. How to Track Email Campaigns and Traffic in GA4 
  13. How to view full page URLs in GA4?

#12 Google Analytics 4 Advanced

  1. Understanding Google Analytics 4 Sessions
  2. GA4 (Google Analytics 4) Measurement Protocol Tutorial
  3. How to Build Comparisons (Advanced Segments) in Google Analytics 4 (GA4)
  4. Understanding Automated Insights in Google Analytics 4 (GA4)
  5. Understanding Channel Groupings in Google Analytics 4 (GA4)
  6. Understanding Data Sampling in Google Analytics 4 (GA4)
  7. Google Analytics 4 Regex (Regular Expressions) Tutorial
  8. Google analytics 4 GDPR compliance checklist

#13 Google Analytics 4 Reports

  1. How to Create Custom Insights in Google Analytics 4 (GA4)
  2. How to Use Debug View Report in Google Analytics 4 (GA4)

#14 Google Analytics 4 Attribution

  1. Guide to Attribution Models in GA4 (Google Analytics 4)
  2. How to Change Attribution Models in GA4 (Google Analytics 4)?
  3. GA4 (Google Analytics 4) Conversion Paths Report in Attribution
  4. GA4 (Google Analytics 4) Model Comparison Report in Attribution
  5. Advertising Snapshot in GA4 (Google Analytics 4) Attribution
  6. GA4 Attribution Modelling Tutorial

#15 Google Analytics 4 Audiences

  1. GA4 Audiences – Creating Custom Audience in Google Analytics 4
  2. How to Create a Remarketing Audience in Google Analytics 4 (GA4)
  3. Understanding Audience Triggers in Google Analytics 4 (GA4)
  4. Google Analytics 4 (GA4) Predictive Audiences – Tutorial

#16 Google Analytics 4 BigQuery

  1. GA4 BigQuery – Connect Google Analytics 4 with BigQuery
  2. BigQuery GA4 Schema – Send Custom GA4 Data to BigQuery
  3. How to Backfill GA4 Data in BigQuery
  4. How to Connect and Export Data from GA4 to BigQuery

Frequently Asked Questions About Scroll tracking in Google Analytics 4 (GA4)

What are scroll tracking events in Google Analytics 4?

The scroll tracking event helps you understand how users scroll through your website in Google Analytics 4(GA4). Scroll tracking can be implemented on all websites.

Do GA4 track scroll tracking events by default?

In the case of Google Analytics 4, only 90% scroll is tracked by default, but if you want to track 25%, 50%, and 75% scroll events, you need to implement it using Google Tag Manager.

What are scroll tracking variables in GTM?

Whenever the scroll depth triggers, the following variables are automatically populated in GTM
• Scroll Depth Threshold: This represents the numeric value of the scroll depth.
• Scroll Depth Units: This represents the pixel or percentage of the scroll depth threshold.
• Scroll Direction: Its value is either vertical or horizontal, indicating the direction of the scroll.

Register for the FREE TRAINING...

"How to use Digital Analytics to generate floods of new Sales and Customers without spending years figuring everything out on your own."

Here’s what we’re going to cover in this training…

#1 Why digital analytics is the key to online business success.

​#2 The number 1 reason why most marketers are not able to scale their advertising and maximize sales.

#3 Why Google and Facebook ads don’t work for most businesses & how to make them work.

#4 ​Why you won’t get any competitive advantage in the marketplace just by knowing Google Analytics.

#5 The number 1 reason why conversion optimization is not working for your business.

#6 How to advertise on any marketing platform for FREE with an unlimited budget.

​#7 How to learn and master digital analytics and conversion optimization in record time.


My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder,
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade

Learn and Master Google Analytics 4 (GA4) - 126 pages ebook

error: Alert: Content is protected !!