Reliability & advanced
Errors, performance, dedup, cross-domain, iframes, Custom HTML and server-side.
8 lessonsAdvancedSelf-paced
0 of 8 complete0%
Module 1
Advanced
8 lessons- 1Start →
JavaScript error tracking
Trigger a page error and catch it with GTM's JavaScript Error trigger.
- 2Start →
Promise rejection tracking
Catch unhandledrejection beyond gtm.pageError.
- 3Start →
Web Vitals to dataLayer
Push LCP / CLS / INP via PerformanceObserver and tag them.
- 4Start →
Tag firing options & dedup
Use fire-once and trigger limits to stop double-fires.
- 5Start →
Custom HTML tag
Inject a pixel via a Custom HTML tag and learn its sandbox limits.
- 6Start →
Cross-domain linker
Decorate cross-domain links and verify the _gl parameter.
- 7Start →
iframe postMessage bridge
Capture events from an embedded iframe into the parent dataLayer.
- 8Start →
Server-side GTM
Forward events to a server container and reshape them (needs a backend).