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

The prompt

Or: manage your program from Gemini CLI

Beyond tracking, Gemini CLI 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.
Gemini CLI opens a browser sign-in on first connect, where you pick the workspace and access level. Full steps and the manual settings.json form — including the httpUrl gotcha — are in Gemini CLI.

After Gemini CLI 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.