Check DataLayer
check_datalayerInspect runtime dataLayer on any URL: verify dataLayer exists, review pushed events, confirm GTM and gtag load, and catch suspicious dataLayer redefinition after GTM init.
Instructions
Inspect window.dataLayer at runtime using a headless browser. Checks if dataLayer exists, its contents (events), whether GTM and gtag are loaded, and detects suspicious patterns like dataLayer redefinition after GTM init.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to check for dataLayer | |
| wait_ms | No | Milliseconds to wait after page load before reading dataLayer (default: 2000, max: 5000) |