Don't have one? Create one ↗
Reliability, privacy & governance

Hands-on module

Reliability & monitoring

Turn errors and Core Web Vitals into events so you know when tracking breaks.

Tracking is only useful if you can trust it, which means knowing when the page breaks and how fast it loads. This module turns failures and performance into events you can tag.

You'll catch uncaught JavaScript errors with GTM's built-in trigger, close the promise-rejection blind spot it leaves with a small listener, and push Core Web Vitals to the dataLayer so LCP, CLS and INP land in GA4.

What you'll learn

  • Catch uncaught errors with the JavaScript Error trigger (gtm.pageError)
  • Cover async failures by listening for unhandledrejection and pushing an event
  • Read Core Web Vitals with PerformanceObserver and send them to GA4
  • Send the Error built-in variables so you can see what broke