/go-to-market:server-side-conversion-trackingfrom go-to-market
Designs and verifies server-side conversion pipelines for Facebook, TikTok, Google, and Bing. Captures click IDs (fbclid, ttclid, gclid, msclkid), persists them through checkout, sends server events with deduplication, and reconciles platform reporting against order data.
Ships in go-to-market. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Design and verify a server-side conversion pipeline that captures click identifiers before they are lost, attaches them to orders, sends queued platform postbacks with normalized identifiers, deduplicates browser and server events, and reconciles platform reporting against the order database.
Build in this exact order; skipping early steps leaves server events with weak matching.
1. Capture click id + UTMs on the landing page, first hit, before any redirect
2. Persist attach them to the visitor's session, server-side
3. Carry keep them across every funnel step, including cross-domain hops
4. Attach write them onto the order record at purchase
5. Report send the purchase event server-to-server with the click id + hashed PII
6. Dedupe give the browser event and the server event the same event id
7. Verify compare platform-reported conversions against your own order table
Skipping steps 1-4 and only doing step 5 produces server events without click IDs; platforms then match on hashed email alone, which is materially worse and common in failed "we already do CAPI" setups.
| Platform | Click id parameter |
|---|---|
| Facebook / Instagram | fbclid |
| TikTok | ttclid |
| Google Ads | gclid, plus wbraid / gbraid on iOS app-to-web |
| Microsoft / Bing | msclkid |
Capture on the first hit: utm_source, utm_medium, utm_campaign, utm_content, utm_term, full landing URL, referrer, user agent, and the client IP as seen by the server. For Facebook Conversions API matching, client_ip_address and client_user_agent must be the visitor's values, not the server's; behind a proxy or CDN, read forwarded headers correctly.
Store identifiers server-side keyed to a first-party session. Do not rely on client-side cookies surviving to checkout: iOS script-writable storage can be capped at 7 days or less, and cross-domain hops can break it entirely.
| Funnel shape | Rule |
|---|---|
| Same-domain steps | A server-side session cookie is enough when every step shares the domain. |
| Cross-domain steps | Forward identifiers explicitly in the redirect, then re-persist on the receiving domain. |
| Redirect chains | Preserve the full query string on every hop; dropping ?fbclid=... destroys attribution for that campaign. |
The order record must carry click IDs, UTMs, and landing URL. This turns attribution into a database join, survives replays and backfills, and makes reconciliation possible.
| Platform | Endpoint or mechanism | Credentials needed |
|---|---|---|
| Conversions API | Pixel ID + access token | |
| TikTok | Events API | Pixel code + access token |
| Google Ads | Click conversion import keyed by gclid | Conversion action + developer/OAuth credentials |
| Microsoft Bing | Conversions API | UET tag ID + CAPI token |
Send event name, event time, event id, order value, currency, click ID, and hashed customer identifiers such as email and phone. Normalize identifiers exactly as the platform requires: lowercase, trimmed, SHA-256, and E.164 for phone numbers. Wrong normalization silently degrades match rate.
Send from a queue with retries, not inline in the checkout request. A payment must never fail because an ad platform API is slow, and a dropped event must retry instead of disappearing.
| Check | How to verify |
|---|---|
| Browser/server dedupe | Browser pixel and server event for the same purchase share the same event id. Facebook also benefits from fbp/fbc cookie values when present. |
| Platform debugger | Use Facebook Events Manager test events, TikTok event debug, and platform diagnostics to confirm arrival and match quality. |
| Order reconciliation | Compare last 7 days of orders in your database against platform conversions. Expect different numbers; look for a stable ratio. |
| Click ID coverage | Measure the share of paid orders with click IDs. If it is far below paid traffic share, steps 1-4 are broken. |
| Attribution window | Compare over 7+ day windows because platforms attribute to click/view windows and often to ad click date, while databases report order date. |
Autonnel is Apache-2.0 and self-hosted. It implements capture, server-side funnel sessions, cross-domain carry, order attachment, queued server-side conversions to Facebook Conversions API, TikTok Events API, Google Ads, and Bing CAPI, with per-platform event mapping in the admin UI.
Get the repository from https://github.com/autonnel/autonnel, check out a release tag, and read its docker-compose.yml for images and ports. From that checkout:
docker compose up
# open http://localhost:4321, complete /setup, then Settings → Ad platforms
For production it deploys to Cloudflare Workers, where queued postback delivery runs on the cron handler shipped in the repository. Confirm cron triggers survived deployment or queued conversions stop silently.
Use stakeholder language precisely: the store/database is ground truth, a broken setup under-reports, cross-domain identifiers must be re-persisted, Autonnel implements the seven-step chain, and click-id-coverage is the day-one health metric.
## Server-side conversion tracking result
**Status:** designed | implemented | blocked
**Ground truth:** <order table or system>
| Stage | Evidence | Status | Fix |
| --- | --- | --- | --- |
| Capture | `<fbclid/ttclid/gclid/msclkid and UTMs>` | `<pass/fail>` | `<change>` |
| Persist/carry | `<session and cross-domain behavior>` | `<pass/fail>` | `<change>` |
| Attach | `<order fields>` | `<pass/fail>` | `<change>` |
| Report | `<platform endpoints>` | `<pass/fail>` | `<change>` |
| Dedupe | `<event id strategy>` | `<pass/fail>` | `<change>` |
| Verify | `<debugger/reconciliation/click-id coverage>` | `<pass/fail>` | `<change>` |
**Day-one metric:** click-id coverage = <value or query needed>
fbclid, ttclid, gclid, wbraid, gbraid, msclkid, UTMs, landing URL, referrer, user agent, and client IP handling were considered.What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/ad-campaign-analyzerAnalyze ad campaign performance data to diagnose waste, identify winners, validate A/B tests, compare channels, and recommend cuts, scaling, tests, and budget reallocation. Use when the user asks to analyze ad campaigns, find wasted spend, optimize Google Ads, Meta Ads, LinkedIn Ads, ROAS, CPA, CAC, or multi-channel ad budgets./competitor-ad-intelligenceAnalyze public competitor paid ads from Meta Ad Library and Google Ads Transparency Center, cluster creative hooks, inspect landing pages, infer funnel strategy, identify vulnerabilities, and recommend counter-plays. Use this skill when asked what ads a competitor is running, to tear down ad strategy, reverse-engineer a paid funnel, find paid ad angles, or audit the ad landscape./gtm-0-to-1-launchLaunch new products from idea to first customers by choosing direct outreach over vanity press, diagnosing stalls with positioning/experience/alignment layers, finding the first 10-50 customers, running 2-week experiments, validating PMF, and building launch playbooks. Use when launching products, finding early adopters, building launch week plans, or diagnosing stalled adoption./gtm-ai-gtmCreate go-to-market strategy for AI products, including enterprise positioning, buyer readiness, trust sequencing, variable-cost pricing, and copilot/agent/teammate framing. Use this skill when positioning AI products, handling production-responsibility objections, pricing variable-cost AI, or selling autonomous tools into enterprises./gtm-board-and-investor-communicationBoard meeting preparation, investor updates, and executive communication. Use when preparing board decks, writing investor updates, handling bad news with the board, structuring QBRs, or building board-level metric discipline. Includes the "Three Things" narrative model, the 4-tier metric hierarchy, and the pre-brief pattern that prevents board surprises./gtm-developer-ecosystemBuild and scale developer-led adoption through ecosystem programs. Use when deciding open vs curated ecosystems, building developer programs, scaling platform adoption, or designing student program pipelines.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin go-to-marketOther plugins' skills for the same job