Hi,
I want to implement scroll depth tracking in GA4. Is it to be done via GTM? Can you please let me know the procedure. Thanks!
Hi,
I want to implement scroll depth tracking in GA4. Is it to be done via GTM? Can you please let me know the procedure. Thanks!
For this you'll have to create a scroll depth trigger, a GA4 event tag, and a custom dimension in GA4. Here are all the necessary steps:
Steps to create custom event in GA4
You can create custom events in GA4 without the help of Google Tag Manager, but for most custom events, you will need to create a GA4 event tag in GTM and pair it up with a proper trigger. Here are the steps involved in the process:
To create a scroll depth trigger, you need to select the "Scroll Depth" trigger type and specify the percentages you want to track. You can also specify whether the trigger fires on all pages or only on some pages.
To create a GA4 event tag, select the "GA4 Event" tag type and associate it with your GA4 property. Set the event name and parameter using the variable {{Scroll Depth Threshold}} to pull in the vertical scroll depths you selected in configuring your trigger.
Note: You should include the vertical scroll depths you chose when designing your trigger, you should define an event parameter using the variable "Scroll Depth Threshold." Remember that you have to set up your built-in variable for this if you haven't already.
Test to confirm everything is working as expected and publish your GTM container to make your tag and trigger live.
The process is complete. If you have any queries, do reach out