Skip to main content
Copilot’s agent mode edits your repo directly, so give it the prompt below with your project open and it will place the snippet and the 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. Or open Settings → Integrations → Vibe coding → VS Code Copilot in Affixo, where the prompt comes with your key already in it.

The prompt

Use agent mode (not ask mode) so Copilot can edit files, and review the diff before you accept it.

Or: manage your program from VS Code

Beyond tracking, Copilot can manage your whole affiliate program — campaigns, commission rules, affiliate invites, fraud triage — through the Affixo MCP server. It’s a remote connector: one URL, no key to paste. Open Settings → Developer → MCP server in Affixo and click Add to VS Code — VS Code opens with the server pre-filled. Confirm it, start it, and sign in with Affixo to pick the workspace and access level. Adding it by hand instead, in .vscode/mcp.json:
Full steps, including the "type": "http" gotcha, are in VS Code.

After Copilot 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.