Track how far users scroll (25/50/75/90%) and capture every outbound link click — with GA4 events ready out of the box.
by Jacob Ospina · updated May 19, 2026
9 components, ready to install into any GTM workspace
3 tags
Tags included in this recipe
2 triggers
Custom event triggers
4 variables
Data layer variables
1 quick check before publish
scroll depth milestones at 25%, 50%, 75%, 90% of page height; outbound link clicks with URL and link text
Two engagement signals in one container. The scroll depth trigger fires GA4 scroll events at 25%, 50%, 75%, and 90% vertical scroll milestones, passing percent_scrolled as an event parameter. The outbound link trigger detects clicks on any anchor whose href hostname differs from the current page hostname, firing a GA4 outbound_click event with link_url and link_text. Compatible with any WordPress theme and generic HTML sites. No custom dataLayer required — all data comes from GTM built-in variables.