analytics-tracking-testing

analytics-tracking-testing is a skill for Claude Code, Codex from petrkindlmann/qa-skills. It costs 209 tokens per session (6,082 once invoked), scanned A, original, MIT.

A set of checks for website analytics and advertising tags, which record visits, actions, and conversions. It covers GA4, Google Tag Manager dataLayer events, and tracking pixels from Meta, TikTok, LinkedIn, and ad platforms.

In plain words
What is it for?
Defining a tracking plan, checking browser event data and network requests, testing consent rules and duplicate events, and failing the build when tracking regresses.
Why use it?
Tracking can appear to work while sending the wrong event, value, timing, or consent status. These checks catch reporting and advertising data errors before they reach production.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Defining a tracking plan, checking browser event data and network requests, testing consent rules and duplicate events, and failing the build when tracking regresses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/petrkindlmann/qa-skills/analytics-tracking-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add petrkindlmann/qa-skills --skill analytics-tracking-testing
Clone the repo
git clone --depth 1 https://github.com/petrkindlmann/qa-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analytics-tracking-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/analytics-tracking-testing/github.svg)](https://agentmods.dev/skills/petrkindlmann/qa-skills/analytics-tracking-testing)
Your own site
<a href="https://agentmods.dev/skills/petrkindlmann/qa-skills/analytics-tracking-testing"><img src="https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/analytics-tracking-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analytics-tracking-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/petrkindlmann/qa-skills/analytics-tracking-testing"><img src="https://agentmods.dev/badge/skills/petrkindlmann/qa-skills/analytics-tracking-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 209 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,082 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 13 Jun 2026
  • Snyk pass 13 Jun 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 311
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00209 $0.06082
Opus 5.5 $0.00084 $0.02433
Sonnet 5.5 $0.00042 $0.01216
Haiku 4.5 $0.00021 $0.00608

Measured yesterday against content hash c7ac584777f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

analytics-tracking-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/analytics-tracking-testing/SKILL.md · 367 lines

How it starts

The opening of the file, as written. The whole thing — 367 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

First: check .agents/qa-project-context.md in the project root and skip anything it already answers (stack, tag manager, consent platform, target environments).

  • Which tracking destinations are live? GA4 (/g/collect), Meta Pixel (facebook.com/tr), TikTok (analytics.tiktok.com), LinkedIn (px.ads.linkedin.com), ad-tech tags — each has a different endpoint grammar, so the capture helper must know them all.
  • GTM or hardcoded gtag? GTM means the truth flows through window.dataLayer.push first, then GTM fires the beacon. You may assert at the push layer (input contract) AND the beacon (output contract); they are different tests.
  • Is there a tracking plan? If not, build one first — it is the contract everything else validates against. No plan means no objective pass/fail.
  • Consent platform and default consent state? Consent Mode v2 changes which beacons are even allowed to fire before consent. You need the CMP's accept/reject selectors to drive the test.
  • Client + server (CAPI) dedup in play? If purchases fire both client Pixel and server Conversions API, the event_id must match or you double-count. This is the correctness property, not "did fbq run."
  • News-media surface? Article pages add article-view, scroll-depth thresholds (25/50/75/100), and paywall-meter events that generic e-commerce plans miss.

Read the full file on GitHub · 367 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +24 lines c7ac584777f3
  2. 1mo ago First seen · 343 lines · 209 tokens per session scan A 0b7069459ce7

Subscribe to this mod's changes

analytics-tracking-testing is a skill published in the GitHub repository petrkindlmann/qa-skills (199 stars, last pushed today), licensed MIT. It adds 209 tokens to every session and 6,082 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories