Documentation
¶
Overview ¶
Package datalayer audits Google Tag Manager / gtag wiring and the dataLayer event stream. It runs two tiers of checks. The static tier reads the page HTML and works in any mode: GTM <noscript> fallback, snippet placement, dataLayer pushes before the dataLayer is initialized, gtag config IDs with no matching loader, and Consent Mode defaults. The runtime tier needs headless rendering (--render headless), which captures the post-JS window.dataLayer and the page's network beacons: it inventories events, validates GA4 e-commerce events and their parameter types, flags duplicate conversions and PII pushed into the dataLayer, and confirms detected tags actually fired a beacon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.