Skip to main content
v0 builds Next.js App Router apps, so the prompt loads the snippet via next/script in your root layout. Paste it into v0’s chat.
Replace YOUR_PUBLIC_KEY with your workspace key from Settings → Tracking (it looks like pk_live_xxxxxxxx) before you send the prompt.

The prompt

After v0 applies it

Redeploy, then go to Settings → Tracking and run the live snippet test against your deployed URL. A confirmed hit means Step 1 is working. Run the end-to-end test to confirm the lead and sale events register. Need the full Next.js snippet reference? See Integrate Affixo tracking.