← Back to library

Set up or fix conversion tracking with an agent skill

coreyhaines31 added a conversion-tracking skill to the marketingskills collection for Claude Code users. It helps set up or audit pixel and event wiring so ad platforms and analytics agree on conversion events before anyone scales paid spend on a campaign.

  • OutcomeGet form fills, bookings, calls and purchases counted correctly in GA4 and your ad platforms, or find out exactly why the numbers are off.
  • SetupUnder an hour
  • LevelIntermediate
  • Creditcoreyhaines31
View original
Works with
Claude CodeClaude

Published Oct 20, 2026Updated Oct 20, 2026AI dry run on sample input: passed Oct 20, 2026Source verified Oct 24, 2026

When should you use it?

  • You pay for ads and aren't sure the conversion numbers are real
  • Leads reach your inbox but the ad platform shows none
  • GA4 and Google Ads disagree and you don't know which to believe

Not for: Choosing attribution models or campaign strategy; the skill leaves those to other skills

What do you need, and what do you get?

You need

  • Your site address and the form, booking or checkout tool it uses
  • Which platforms need the conversions
  • Access to Google Tag Manager or the ad accounts, or someone who has it

You get

  • A tracking set-up, or an audit report with each finding marked observed, reported or inferred
  • The smallest fix for each problem
  • A named test that confirms a conversion arrived

How does it work, step by step?

  1. Install the skillIn a terminal: npx skills add coreyhaines31/marketingskills --skill conversion-tracking. It installs as an Agent Skill for Claude Code and other agents that read SKILL.md files.
  2. Add your marketing contextThe skill reads your product-marketing context file first, which usually answers the site platform, CRM and ad channels.
  3. Decide what countsAgree which actions are conversions, such as a confirmed form, a booked call or a purchase, before any tag is touched.
  4. Verify with a real testRun the test it hands you and report what the ad platform shows; it won't call the job done until a conversion is seen arriving.

The prompt

Our adapted version, written to work in Claude Code and Claude. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt6 variables
Use the conversion-tracking skill to {setup_or_audit} tracking on {site_url}.
Conversions that count: {conversions}. They need to reach: {platforms}. The site runs on {site_platform}, with forms, bookings or checkout handled by {form_tool}.
Before changing anything, tell me what already sends conversions, label each finding observed, reported or inferred, and propose the smallest fix.
Do not publish tags or fire a test conversion until I say yes. Finish with the exact test I should run and what I should see.

The original skill is published by coreyhaines31 on GitHub (coreyhaines31/marketingskills). Open it there to install or import it; the prompt above is our own adaptation.

What can go wrong?

  • A real test submission is a real conversion in your ad account; agree the test page first and remove the test lead afterwards.
  • Some paid tools are named, one marked as a partner of the repository; compare them with the free and built-in options it also lists.

Our take

Broken conversion tracking is one of the most expensive quiet problems in small-business marketing: the ad platform optimizes toward whatever is being counted, so if a tag fires on the button click rather than a confirmed submission, you pay to find people who click. This skill is strong because it is strict about evidence. It separates lead generation from ecommerce, insists that a tag firing and a conversion arriving are two different claims, and labels every finding as observed, reported or inferred. It also says some gap between GA4 and Google Ads is normal, which saves a lot of pointless debugging. Treat the tool suggestions as options: the skill discloses that one tool it names is a partner of the repository. In our dry run on a synthetic case, a service business whose contact form tag fired on the submit click and whose Google Ads leads were roughly double the CRM count, the skill's steps led to moving the trigger to the form tool's success event, flagged a duplicate thank-you page tag, and ended with a named test whose platform result was marked as still to be reported by the owner.

Where the time goes back: Hours of tag debugging and guesswork become a structured check, and ad budgets are judged on numbers you can trust.

FAQ

Which agents can use this skill?
It is a SKILL.md file, so Claude Code and other agents that support Agent Skills can load it. In a chat assistant you can paste our prompt instead.
Will it change my site or ad account by itself?
No. It diagnoses first, proposes the exact change and asks. Firing a test conversion or publishing a tag container needs your go-ahead for that specific page.

Source and credit

This playbook is based on work by coreyhaines31. We summarize it and link to it and write our own adapted prompt.

Original
conversion-tracking skill · coreyhaines31/marketingskills
Creator
coreyhaines31
Published on
GitHub (coreyhaines31/marketingskills)
Original date
Oct 19, 2026
License
MIT
Originally for
Claude Code
AI dry run
Oct 20, 2026: passed. Dry-run tested by our AI test agent on sample input. Diagnosed before changing; every finding labeled; did not declare it working without arrival evidence.
Agent dry run of the published SKILL.md: fetched from the source repo, its steps followed on a realistic synthetic input, output checked against the skill's format and our guardrails. Plugin install inside Claude Cowork/Code not exercised.
Verified
Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

The original is licensed under the MIT License (Copyright (c) 2025 Corey Haines). Modified: our adapted prompt and summary are our own wording; the original is unchanged at the source link.

Are you the creator? Claim or correct this page.

More in Marketing

All 98 Marketing playbooks →

Related playbooks

MarketingPrompt✓ AI dry run

Find verified free backlink submission opportunities

Research up to thirty free, legitimate listing or resource pages for your site, each with a real submission URL, effort rating and a seven-day pursuit order you run yourself.

Credit: Grant O (@2whazzuup)

Under an hour
MarketingWorkflow✓ AI dry run

Feed agents approved templates when making video ads

Give a marketing agent a library of manually approved examples so generated videos and posts follow formats that worked.

Credit: u/tgdn on r/ClaudeAI

An afternoon+
MarketingWorkflow✓ AI dry run

Get fixes for pages that lost Google traffic last month

Every Monday, the pages that lost clicks and rankings in Search Console arrive in Slack with the reason, three new title ideas and the one missing section to add.

Credit: Shun Nakayama

Under an hour
MarketingPrompt✓ AI dry run

Turn your X outliers into multi-platform drafts

Pull your own X posts, score which ones outperformed, and get LinkedIn, newsletter and short-video drafts you approve before anything goes out.

Credit: Miles Deutscher (@milesdeutscher)

Minutes
MarketingWorkflow✓ AI dry run

Let a browser agent edit and migrate your Substack posts

Hand three publishing chores to a browser agent, editing a live post, moving a site article to a new newsletter post, and adding a note to an old post, without emailing subscribers by mistake.

Credit: Prisca Onyx

Under an hour