Skip to main content
Claude Code edits your repo directly, so give it the prompt below and it will place the snippet and events in the right files, then verify the build.
Replace YOUR_PUBLIC_KEY with your workspace key from Settings → Tracking (it looks like pk_live_xxxxxxxx) before you send the prompt.

The prompt

Or: manage your program from Claude Code

Beyond tracking, Claude Code can manage your whole affiliate program — campaigns, commission rules, affiliate invites, fraud triage — by connecting the Affixo MCP server. It’s a remote connector: one URL, no key to paste.
Then run /mcp in Claude Code to sign in with Affixo and pick the workspace and access level. Full steps: Claude Code.

After Claude Code applies it

Redeploy, then go to Settings → Tracking and run the live snippet test against your site URL, followed by the end-to-end test. Need the manual reference? See Integrate Affixo tracking.