dedup-verification
Skill0 starsChanged 3 months agoMITView on GitHub
Decide whether browser and server events are actually deduplicating, or whether the account is double counting. Use when platform-reported conversions look high, after any Conversions API deploy, or before trusting a conversion count that both the pixel and the server can claim.
In this repository5 other files it gives its agents.
- event-taxonomySkill
- match-qualitySkill
- platform-vs-ledgerSkill
- tracking-change-controlSkill
- value-integritySkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Use the transaction, order, lead or payment identifier.
- Distinctive: line 64
Check which one you have before you fix either.
- Distinctive: line 70
Put one real transaction through the live flow.
- Distinctive: line 74
Check the platform's own deduplication diagnostic per event, if it reports one.
- Distinctive: line 75
Wait a week, then run the ratio check above against the business record.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Dedup verification
Once you send the same conversion from the browser and from your server, you are either deduplicating or double counting. Reporting looks plausible either way. Nothing in the interface announces which one you have.
How the match is made
The platform collapses two events into one when they carry the same event name and the same event ID, within a matching window. Treat the window length as a platform detail to look up rather than memorise, because it has changed before.
Browser identifiers can act as a weaker fallback pairing, but a fallback is not a design. If your dedup depends on it, you do not have dedup.
The one rule that decides everything
The event ID must come from a shared business key, generated once.
An ID minted independently on each side — a fresh random value in the browser and another on the server — can never match. This is the single most common cause of silent double counting, and it passes every "is the tag firing" check.
Use the transaction, order, lead or payment identifier. Generate it once, pass it into the browser payload and into the server payload. If no such key exists at the moment the event fires, that is the finding: the ID problem is an application problem, not a tracking problem.
Reading the symptom
Compare platform-reported conversions for an event against the business record for the same window.
| Ratio | Most likely reading |
| Near 2.0, stable across days | Dedup is failing outright |
| 1.2-1.5, drifting | Attribution window or view-through, not dedup |
| Under 1.0 | Missing server events or consent loss, not a dedup problem |
A ratio sitting very close to exactly 2.0 for several days is the clean tell. Attribution noise does not produce a stable integer.
Refuse to read the ratio below roughly 30 conversions in the window. Under that, one late-restating day moves it enough to invent any conclusion you like.
The failure server dedup will not fix
A browser pixel that fires twice on the same page — a reloaded confirmation page, a re-render, a back-button return — duplicates within the browser channel. Both copies carry the same event ID, so the server has nothing to collapse them against, and dedup between channels is irrelevant to it.
Symptoms look identical to dedup failure. The fixes are not:
- Cross-channel dedup failure → fix the event ID contract
- Same-channel refire → make the client call idempotent, and count distinct transaction IDs in any analytics tool you own rather than raw event rows
Check which one you have before you fix either. Counting distinct transaction IDs against raw event count in your own analytics answers it in one query, and the inflation from refires is routinely large enough to change a channel decision.
Verification protocol
- Put one real transaction through the live flow.
- Watch the platform's test-events view. You want one deduplicated entry, not two entries and not one channel missing.
- Confirm the event ID in the server payload is byte-identical to the browser's.
- Check the platform's own deduplication diagnostic per event, if it reports one.
- Wait a week, then run the ratio check above against the business record.
Step 5 is the one that gets skipped, and it is the only step that tests the system rather than a single request.
What this does not tell you
Whether the conversion was real, whether it was caused by the ad, or whether the
value attached to it is correct. Deduplication is about counting each event once.
See value-integrity and platform-vs-ledger.
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.

