datalayer-analytics-playwright

Installation
SKILL.md

DataLayer Analytics — Playwright

Automated window.dataLayer event validation using Playwright. Creates, runs, and maintains analytics tracking tests so you never ship broken tracking again.

When to Use

  • Validate GTM / GA4 events fire correctly with the right payloads
  • Create analytics regression tests from a tracking spec (Confluence, Notion, or manual)
  • Discover what events a page actually fires (no spec needed)
  • Debug mismatches between expected and actual dataLayer payloads
  • Maintain test data as tracking implementations evolve

Two Test Modes

Auto-detected based on your project setup:

Mode Files per Component Detection
Standard Playwright 3 (JSON + spec + page object) Default
Installs
2
Repository
mbatra5/skills
First Seen
Mar 2, 2026