tracker-consent-audit
Skill4 starsChanged 11 days agoMITView on GitHub
Use when a WordPress food blogger asks whether their site needs a consent banner, whether analytics or a session recorder runs before visitors agree, whether they are exposed to the "wiretapping" (CIPA) letters bloggers are getting, or what their Raptive or Mediavine ads do with Global Privacy Control. Also use for "is my blog compliant", "do I have a cookie banner", "what trackers are on my site", and before setting up a consent plugin, so its effect can be measured before and after. Measures what loads in a real browser, names the plugin or setting behind each tracker with a probe that makes no changes itself, and produces a private report and a plain-language reply. Not legal advice.
In this repository10 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Site internals: Ask the client (or Eric) to upload tracker-audit-probe.php to wp-content/mu-plugins/ and create an Application Password.
- Distinctive: line 69
Delete the probe after use, and revoke the Application Password.
- Very specific: line 70
Remove any database container with podman rm --force --volumes: without --volumes, the client's database survives in an anonymous volume.
- Distinctive: line 72
Never write policy or legal wording.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tracker and consent audit
Find out what a WordPress food blog sends to whom before a visitor agrees to anything, who put each tracker there, and what Global Privacy Control changes.
The core rule
Measure what runs before consent in a real browser. Never infer it. Plugin lists, page source and the ad network's assurances all disagree with what a browser actually loads. A consent plugin can be installed, switched on and still block nothing. A sign-up form can be dead. A session recorder can honor GPC on its own server. Only a logged run shows which.
Sequence
- Scaffold.
uv run scripts/new_audit.py https://www.example.com ~/Projects/example-privacy-audit --ad-network Mediavine --name "Example". The folder gets its own copy of every script, so a re-test months later runs the same code. - Fill
scripts/site_config.py. Six real pages (home, a post, a category, search, contact, privacy policy), the fields a visitor can type into, and the trackers the site adds itself. Fetch the homepage with curl first and read the script tags: that tells you the ad network and the obvious trackers. - Browser run, US. Build the container, run
audit.py --visibledetached (commands in the folder's README). Six pages, plain and with GPC, about 12 minutes. - Analyze.
analyze.py, thenform_test.py, thengpc_probe.py. - Site internals. Ask the client (or Eric) to upload
tracker-audit-probe.phptowp-content/mu-plugins/and create an Application Password. The person runsfetch_inventory.pyin their own terminal and types the password at its hidden prompt, never on the command line. An agent's shell has no terminal for that prompt, so give the person the command. Never ask for the Application Password in chat. Then re-runanalyze.py, and delete the probe file and revoke the Application Password. The probe stops answering 48 hours after upload; the password does not expire on its own and is a full admin login. - Write findings. Each finding is confirmed, likely, or an evidence gap. See
references/reporting.md. - Report. Fill
report/template.html, build it, run the accessibility audit on the built files, publish with thepublishing-behind-cloudflare-accessskill. The deploy folder already fails closed. - Reply. Plain language, answering the client's own questions first. Run the humanizer. Say it is not legal advice.
Background for the steps: references/wordpress.md (where trackers hide, the
probe, a database export, a local copy), references/ad-networks.md (Raptive,
Mediavine, GPC and GPP strings, UK and EU tests), references/reporting.md
(wording, outline, publishing).
Ask, do not assume
- Whether to test UK and EU visitors (needs a VPN in an isolated VM or container, never machine-wide).
- Whether the probe may be uploaded, or a database export used instead (
references/wordpress.md). - Whether a report page is wanted, and who may open it.
- What may be removed. The audit itself changes nothing on the site apart from the probe and its Application Password.
Safety
- The audit changes nothing on the live site except uploading and deleting the probe and adding and revoking its Application Password. The probe makes no changes itself and rolls back database writes made by the head and footer code it runs. It cannot undo file writes, cache writes, outbound requests, writes to non-InnoDB tables, DDL, or code that commits its own transaction; its response lists the non-InnoDB tables and the shutdown callbacks it removed. Like any visit, each call also runs the site's own per-request code, such as a request logger, which the probe does not roll back. Single-site WordPress only. WordPress also records when the Application Password was last used. Use containers for the browser and for any database copy.
- Delete the probe after use, and revoke the Application Password.
- Remove any database container with
podman rm --force --volumes: without--volumes, the client's database survives in an anonymous volume. - Never write policy or legal wording. Name what the policy misses; the wording is a lawyer's.
Hazards from real runs
| Symptom | Cause | Fix |
| Container sits silent forever | xvfb-run as PID 1 waits for a signal | podman run --init |
| Run dies when the session restarts | background shell jobs die with it | podman run --detach --name, then podman logs --follow |
| Recorder uploads missing from the log | gzip bodies crash post_data | body_text() decompresses post_data_buffer |
| "Canary not found" | recorder sent nothing after the typing | form_test.py waits for an upload and reports the count |
| No sign-up field found | the newsletter form was deleted, its script still loads | test the comment form; report the dead embed |
| Recorder vanishes under GPC | the vendor's server returns a stub for Sec-GPC: 1 | gpc_probe.py compares responses |
| Banner plugin active, no banner | installed, never configured | probe inventory lists its option names |
| Analytics in no plugin | pasted into theme settings (Genesis Header Scripts) | probe inventory names the option |
| Low ad counts | headless Chrome gets an ad-blocker flag | --visible under Xvfb for client numbers |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

