What this page covers
v0 turns a description into a full stack web app built with Next.js, React, TypeScript, Tailwind and shadcn/ui, and publishes it to Vercel. This page is about measuring what people do in that app, which is the measure step of the vibe coding loop.
Facts about v0 come from the v0 docs, last checked December 4, 2026.
You need an Orwel workspace (the Free plan is enough to start) and your project open in v0.
What you get without a product analytics tool
v0 has no analytics of its own. Its docs point to Vercel Web Analytics, which counts visitors and page views for the deployed app. That tells you people came. Which features they used, where they dropped off before signing up and which leads are worth a reply are what Orwel adds.
Step 1: Save the rules as an instruction
In v0, open the plus menu in the prompt bar, choose New Instruction and paste the rules block from the CLAUDE.md analytics template as the rule. Instructions live at the account level and you turn them on per chat, so enable it in the chat where you build this app. The rules tell v0 to use event codes from your catalog, fire them after the action succeeds and await conversions.
Step 2: Add the key as an environment variable
Open the project menu, then Settings, then Environment Variables, and add NEXT_PUBLIC_ORWEL_KEY:
- Development: the development key (
orwel_dev_...). The v0 preview only reads Development variables. - Production: the production key (
orwel_...).
The NEXT_PUBLIC_ prefix is how Next.js exposes a variable to browser code, which is where the Orwel SDK runs. That is safe for these two keys: they can send events and cannot read data.
Step 3: Paste the install prompt
Open the Next.js install guide and paste its agent prompt into the v0 chat. It asks v0 to install the orwel package, create one wrapper module, initialize once in a client component, identify users when they sign in and await a conversion when a form is submitted.
If you defined journeys or features in Orwel first, paste the prompt from their Implement tab instead. It lists every event code and when to fire it. More prompts are in vibe coding prompts.
Step 4: Verify in Dev mode
In the preview, sign up, use each tracked action and submit a form. Open Dev mode in Orwel:
- Errors mean rejected, for example
event_not_found. - Warnings mean accepted with a problem, for example
conversion_no_email.
Paste any warning back into the v0 chat.
Step 5: Publish
Use Publish, then Publish Changes for each update. v0 deploys to Vercel, and production environment variables are managed in the Vercel project, so confirm NEXT_PUBLIC_ORWEL_KEY holds the production key there.
Step 6: Connect the Orwel MCP server
In Orwel, open Settings, API keys and create a key with the mcp scope. In v0, open the plus menu in the prompt bar, choose MCPs and add a server with the URL https://api.orwel.io/mcp and the Bearer Token option with that key. v0 uses MCP tools while it generates; the connection is not part of your published app.
Then ask before you build: "Check Orwel for conversions and detected issues in the last 14 days, then propose the next change." On the Free plan the server answers with aggregated data; individual leads and visitors need Pro. That closes the vibe coding feedback loop.