测试与安全

analytics-tracking-testing

petrkindlmann/qa-skills

Validate that analytics and marketing tracking fire CORRECTLY: GA4/GTM dataLayer events, Meta/TikTok/LinkedIn pixels, and ad-tech tags. Covers building a tracking plan as the contract, intercepting collect-endpoint beacons and dataLayer.push in Playwright, asserting event name + params + values + timing + de-duplication, Consent Mode v2 gating, CI regression gating, and news-media events (article-view, scroll-depth, paywall). Use when: "test analytics tracking," "GA4 event test," "verify the pixel fires," "dataLayer test," "tracking plan," "Meta Pixel dedup," "scroll-depth tracking test," "gate tracking in CI." Not for: whether tracking is ALLOWED to fire under consent law (GDPR/CMP) — that is compliance-testing; this skill checks the data is CORRECT. SEO meta tags / structured data — out of scope. Related: compliance-testing, playwright-automation, api-testing, qa-project-context.

  • 1050 次安装
  • 226 星标
  • 收录于

安装命令

npx skills add https://github.com/petrkindlmann/qa-skills --skill analytics-tracking-testing

SKILL.md

Quick Route

Situation Go to
Assert one GA4 event fired with correct params Intercepting GA4 beacons
Treat the tracking plan as a validated contract The Tracking Plan Is the Contract
Verify dataLayer.push shape (not the beacon) Asserting dataLayer.push
Pixel + server CAPI deduplication (event_id) Pixels and Server-Side Deduplication
Events must/mustn't fire by consent state Consent Mode v2 Gating
Capture every pixel in one reusable fixture references/capture-fixture.md
News-media: article-view, scroll-depth, paywall News-Media Events
Fail the build on a tracking regression Regression-Gating in CI
Hundreds of events, many domains, small team Buy vs Build

Discovery Questions