analytics-tracking-testing

Intercepts real GA4/CTA/Meta/TikTok/LinkedIn beacon requests to validate tracking events and consent parameters via Playwright-based capture.

2|Updated Apr 18, 2021
One-click install
npx skills add https://github.com/rabbicse/go-projects --skill analytics-tracking-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analytics-tracking-testing
Source: https://github.com/rabbicse/go-projects/tree/main/projects/movie-ticket-booking/.claude/skills/analytics-tracking-testing
Command: npx skills add https://github.com/rabbicse/go-projects --skill analytics-tracking-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps teams verify that analytics and marketing tracking actually fire correctly in the browser, instead of only looking correct in DebugView, the DOM, or a pushed dataLayer object.

Core Features & Use Cases

  • Real Beacon Interception: Captures GA4, Meta Pixel, TikTok, and LinkedIn requests so you can assert the outbound event name and parameters that were truly sent.
  • Tracking Plan Validation: Treats the tracking plan as a typed contract and checks required fields, types, consent-state values, and de-duplication identifiers.
  • CI Regression Gating: Fails builds when a previously firing event drops or a required parameter changes, making tracking regressions visible before release.
  • Specialized Journey Coverage: Supports ecommerce flows, consent-gated pages, client-server purchase deduplication, and publisher events like article views, scroll depth, and paywall meters.

Quick Start

Use the analytics-tracking-testing skill to verify that the checkout journey sends the correct GA4 purchase beacon and matching Meta pixel event.

Frequently Asked Questions about analytics-tracking-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate GA4 and Meta pixel tracking in Playwright?

Playwright validates GA4 and Meta pixel tracking by intercepting outbound browser beacons to assert event names and parameters, rather than trusting the DOM or DebugView. It checks event data against tracking-plan contracts for accurate capture.

How can I catch analytics tracking regressions in CI before release?

Catch analytics tracking regressions in CI by running Playwright request capture to fail builds when a previously firing GA4 or pixel event drops or a required parameter changes. This makes tracking regressions visible before release.

Does Playwright work for testing Consent Mode v2 gating and scroll-depth events?

Playwright works for testing Consent Mode v2 gating and scroll-depth events by intercepting real beacons to verify consent-state fields and publisher events. It validates that tracking respects consent gates accurately.

Why do my dataLayer events show correctly in the DOM but fail to send to GA4?

DataLayer events may appear in the DOM but fail to send to GA4 due to consent gating or parameter mismatch. Intercepting actual outbound browser beacons reveals if the network request was truly dispatched.

Can I verify client-server purchase de-duplication IDs for ecommerce pixels?

Verify client-server purchase de-duplication IDs by intercepting real browser beacons during ecommerce flows. The validation checks de-duplication identifiers against tracking-plan contracts to prevent duplicate counting.