Skip to main content
Codex works on your repo directly, so give it the prompt below from your project root 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 → Codex in Affixo, where the prompt comes with your key already in it.

The prompt

Or: manage your program from Codex

Beyond tracking, Codex 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.
The first line registers the connector; the second opens the Affixo sign-in, where you pick the workspace and access level. Adding it by hand instead, in ~/.codex/config.toml:
See the full setup and the tool catalogue in MCP Server.

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