v0 analytics for apps built with v0 | Orwel
Best practices Updated December 4, 2026

v0 analytics: add Orwel to an app built with v0

To add analytics to a v0 app, save the Orwel rules as a v0 instruction, add the key as NEXT_PUBLIC_ORWEL_KEY in the project's Environment Variables, paste the Orwel install prompt for Next.js, verify each request in Dev mode, then add the Orwel MCP server so v0 can read real usage while it generates.

Orwel is an event analytics SDK for startups, developers and vibe coders that maps feature adoption and conversion funnels, and feeds the results back to AI agents through MCP.

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.

Why Orwel

One plan

49 USD a month, 2 USD less every paid month down to 35 USD, or 420 USD a year

No caps

Unlimited leads and visitors under fair use

2-minute install

One script or npm package, or ask your coding agent to do it

MCP server

Claude, Cursor or your own agent read real usage before the next prompt

Semantic catalog

257 ready events, so tracking is named the same in every project

Dev mode

A live debugger and development keys that keep tests out of real data

FAQ

Does v0 have built in analytics?

No. v0's docs point to Vercel Web Analytics for the deployed app, which counts visitors and page views.

Is Vercel Web Analytics enough for a v0 app?

For traffic, yes. It does not show feature adoption or where people drop off in a funnel. You can run it together with Orwel.

Which variable name does a v0 app use for the Orwel key?

NEXT_PUBLIC_ORWEL_KEY, because v0 generates Next.js. Set it for Development with the development key and for Production with the production key.

Where do rules for v0 go?

In an Instruction, created from the plus menu in the prompt bar and enabled in the chat.

Can v0 read my Orwel data?

Yes. Add https://api.orwel.io/mcp under MCPs with the Bearer Token option and an API key that has the mcp scope.

Keep reading

See what users do with what you shipped

Install in 2 minutes. Free to start, no card needed.