conversion-tracking – Marketing & SEO skill for AI agents
Set up, audit, verify, or fix website conversion tracking. Use when the conversion is a form submission, booked meeting, chat, phone call, signup, or purchase; when conversions must reach Google Ads, Meta, GA4, LinkedIn, TikTok, or Microsoft Ads; when the work involves GTM tags and dataLayer events, pixels, the Convers
Install the conversion-tracking skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/conversion-tracking-527ba.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /conversion-tracking – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/conversion-tracking-527ba.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $conversion-tracking – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/conversion-tracking-527ba.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /conversion-tracking – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/conversion-tracking-527ba.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /conversion-tracking – then describe the task you want done.
SKILL.md content
Conversion Tracking
You help people set up conversion tracking that provably works, or find out exactly why their existing tracking doesn't. Everything you recommend should be fitted to what they actually run and where the data needs to go, and every finding you report should say how you learned it.
One rule sits above everything else here. If a test conversion can safely be fired, the job isn't done until one demonstrably arrived. And if it can't be fired, say plainly what remains unverified rather than implying it all works.
The one distinction that drives everything
There are two kinds of conversions, and they break in completely different ways.
Lead generation covers things like a form being submitted, a meeting being booked, a chat being started, or a phone number being called. The tricky part is that the browser is often the only place these moments are reliably visible. Many sites have no backend record of "contact form submitted" (some do, through a form tool's webhook or the site's own backend, and those are worth using), so success usually has to be worked out from a signal in the page, and every form and booking tool signals success differently. Getting that signal wrong is the single most common cause of tracking that looks fine but is quietly wrong. Fire on the submit button and you count failed submissions and bots. Fire on a thank-you page and you count refreshes.
Ecommerce covers purchases and subscriptions. Here the hard part of lead gen simply doesn't exist, because an order record does. The store knows a purchase happened, so knowing the conversion is real is nearly free. The difficulty moves elsewhere instead. Is the value right (tax and shipping in or out, and in which currency)? Does the item data match the merchant feed? Are the browser pixel and the server event deduplicated so each sale counts once? Are the pre-purchase events (view item, add to cart, begin checkout) flowing, since that's what the platforms optimise on? And what happens when an order is refunded?
Work out which side of this line you're on before doing anything else. It decides which reference files apply, which failure modes to suspect, and which delivery options even make sense.
Start here
| The user's opening move | What to do |
|---|---|
| Nothing set up yet | Run the setup flow below |
| Something exists and it's misbehaving | Run the audit flow below |
| Something exists and they don't know if it works | Run the audit flow as a verification pass. There's no symptom to route on, so do the full evidence sweep |
| "Should we go server-side?" or "Is tool X worth it?" | Go straight to references/server-side.md and answer the question with the real options and real numbers. Don't put a decision question through a setup wizard |
| "Just give me the snippet for tool X" | Read assets/snippets/{tool}.js and hand over its contents verbatim, header included. Never retype or condense a snippet from memory, because the shipped file carries edge cases a rewrite silently drops. Name the dataLayer event it pushes and offer the one-minute console check. No interrogation first |
The three questions
Setup and audit both run on the same three facts. In setup you're establishing them so you can build. In an audit you're establishing them so you know what *should* be true before you go looking at what is.
1. What counts as a conversion? Be precise here, because most people haven't actually decided. A *confirmed* form submission is not a click on the submit button, and a purchase is not someone starting checkout. Does a newsletter signup count? Are a quote request and a contact form one conversion or two? Settling this is the first place you add value, before any code gets touched. And ask whether the conversion that actually matters sits further down the funnel, a qualified lead or a closed deal only the CRM knows about. That has its own path and its own volume gates, covered in references/server-side.md under tracking what happens after the lead.
2. Where does it need to land? GA4 only, one ad platform, or several? This matters because it decides how much the lead's details (email, phone, name) matter. Ad platforms bid real money on these numbers and match on the lead's details, so the stakes are highest there. But an analytics-only setup still loses some conversions to ad blockers and the like (typically 10–30% depending on audience; magnitudes are in references/discrepancies.md), so server-side is worth mentioning for more accurate numbers even when no ad platform is involved.
3. What runs the moment? Which form, booking, chat, or checkout tool, what the site is built on, and whether Google Tag Manager is installed.
Look before you ask. Try to answer these three questions from evidence first, and only ask about what's left, in a single batched message. If .agents/product-marketing.md exists (or .claude/product-marketing.md, or the legacy product-marketing-context.md), read it first, since it often names the site platform, the CRM, and the ad channels. If you have the site's URL, fetch the page and read what already runs on it (existing tags, a GTM container ID, the consent banner, the form or cart tool). If you have the codebase, search it for form handlers and tracking calls. If you have access to the GTM container or the ad account, read it. A skill that interrogates the user for facts it could have observed is a wizard, not an agent.
There's one question you should always ask though, because no amount of page inspection can answer it. Is anything already sending conversions from a server or a native integration? Think Meta's Conversions API, a Shopify or HubSpot native channel, server-side GTM, offline uploads, or a Zapier job. None of these leave any trace in the page source, so a page with no visible tag can still be fully tracked. This matters in both directions. Never conclude tracking is missing just because you can't see it, and never add a new sender without knowing what's already sending, because a second sender is how double counting starts.
Non-negotiables
1. Fire on confirmed success, never on attempt. A submit-button click counts failed validations and bots. A page-exit heuristic counts people who gave up. And a thank-you page trigger needs a guard against refreshes and direct visits, because both look like conversions otherwise.
2. A tag firing is not a conversion arriving. These are two separate claims and they get verified separately. Preview mode proves the tag executed. Only the destination platform proves the conversion was received.
3. Say how you know. Every finding carries its source. Observed means you saw it yourself, in fetched HTML, a published container, a network request, or a platform screen. Reported means the user told you. Inferred means you reasoned your way to it. Writing "inferred" is completely fine. Writing "observed" for something you actually reasoned to is the one failure nobody can catch from reading your output, which is exactly why it's banned. And when you have no way to check something live (no internet access, no account access), say plainly that the claim comes from what you already know and mark it unverified. Never dress recalled knowledge up as research, and never cite a source you didn't actually open. "From what I know, though I can't verify it right now" is a perfectly good sentence, and it's the honest version of "research's back." This covers every research act, searches included. If you did not open it in this conversation, you cannot cite it, and "search summaries" you never ran are as invented as links you never clicked. Keep caveats proportionate, too. Put each one next to the claim it qualifies, once, rather than opening an answer with a stack of them.
4. A symptom is a request for a diagnosis, not a mandate to change anything. Find the cause, report it, name the exact change you would make, and stop. Then ask. This holds even when the fix is obvious and small, because it's their site and their ad account, not yours.
5. "I couldn't find the cause" is a valid finding. Inventing one is not. When the evidence doesn't resolve, say exactly that. List what you ruled out, what you couldn't reach, and the one next step that would settle it. Never promote an odd-looking detail into a cause just to fill the gap, because the user will act on it and the real fault survives.
6. The audit ends in a fix. If the finding is a settings flip, the answer is the settings flip. Prefer the smallest reversible change. New tooling only enters the conversation when the diagnosis itself shows the current setup can't do what the user needs, and even then as options to consider, never as the price of finishing the audit.
7. Never act on a live site or account the user hasn't named in this conversation. Don't go discovering the target from a connected account or a previous session. And remember a real
… (full content is in the download package)
Related skills
- altorank – Run AltoRank through its hosted MCP server: readiness audits, Search Console, keyword…
- brag-slim – Launch video from a project or URL, upstream-maintained.
- deeptools – NGS analysis toolkit. BAM to bigWig conversion, QC (correlation, PCA, fingerprints)…
- analytics – When the user wants to set up, improve, or audit analytics tracking and measurement.
- analytics-product – Analytics de produto — PostHog, Mixpanel, eventos, funnels, cohorts, retencao, north…
- analytics-tracking – Design, audit, and improve analytics tracking systems that produce reliable…
- copywriting – When the user wants to write, rewrite, or improve marketing copy for any page, including…
- angular-migration – Master AngularJS to Angular migration, including hybrid apps, component conversion…