analytics-tracking-testing

analytics-tracking-testing is a skill for Claude Code, Codex from petrkindlmann/qa-skills. It costs 209 tokens per session (6,124 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…

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.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.svg" alt="Measured on agentmods" 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,124 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.
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.06124
Opus 5 $0.00105 $0.03062
Sonnet 5 $0.00042 $0.01225
Haiku 4.5 $0.00021 $0.00612

Measured 7d ago against content hash 0b7069459ce7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 7d ago.

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 · 343 lines

How it starts

The opening of the file, as written. The whole thing — 343 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 · 343 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. 7d 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 (110 stars, last pushed 2mo ago), licensed MIT. It adds 209 tokens to every session and 6,124 once invoked, about $0.0010 per session on Opus 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

ops-demo

CocoOps demo mode activator — populates .cocoplus/ops/demo/ with realistic mock data and sets cocoplus.toml [demo] enabled = true. Invoked via $ops demo.

Snowflake-Labs/cocoplus · 46 tokens

agent-teams-simplify-and-harden

Implementation + audit loop using parallel agent teams with structured simplify, harden, and document passes. Spawns implementation agents to do the work, then audit agents to find complexity, security gaps, and spec deviations, then loops until code compiles cleanly, all tests pass, and auditors find zero issues or…

LeoYeAI/openclaw-master-skills · 115 tokens

agent-team-orchestration

Orchestrate multi-agent teams with defined roles, task lifecycles, handoff protocols, and review workflows. Use when: (1) Setting up a team of 2+ agents with different specializations, (2) Defining task routing and lifecycle (inbox → spec → build → review → done), (3) Creating handoff protocols between agents, (4)…

LeoYeAI/openclaw-master-skills · 102 tokens

Agent Browser Automation

Fast Rust-based headless browser automation CLI with Node.js fallback for AI agents, featuring navigation, clicking, typing, snapshots, and structured commands optimized for agent workflows.

PramodDutta/qaskills · 37 tokens

Detox Mobile Testing

Gray-box end-to-end testing for React Native apps with Detox. Covers .detoxrc.js configuration, build and test commands, matchers, device.launchApp control, automatic synchronization, and macOS CI pipelines.

PramodDutta/qaskills · 48 tokens

diary

Show CocoDiary operator-facing work journal status.

Snowflake-Labs/cocoplus · 12 tokens