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

Bolt analytics: add Orwel to an app built with Bolt

To add analytics to a Bolt app, paste the Orwel install prompt in the Bolt chat, keep the public key in the project's environment file, save the Orwel rules as project instructions, verify each request in Dev mode and add Orwel as a custom MCP server so Bolt can read usage before the next change.

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

Bolt builds websites and web apps from a chat and hosts them. This page is about measuring what people do in the app you built, which is the measure step of the vibe coding loop.

Facts about Bolt come from the Bolt help center, last checked December 4, 2026.

You need an Orwel workspace (the Free plan is enough to start) and your project open in Bolt.

What Bolt's own analytics covers

Bolt has an Analytics page in the project settings, on paid plans. It reports unique visitors, page views, top pages, bandwidth, sources, locations and 404s for the last 30 days, and it counts bots. It is hosting analytics: useful to see traffic, not to see which features people use or where a signup funnel leaks.

Step 1: Save the rules as project instructions

Do this first, so the install follows them. Open All project settings, then Knowledge, and paste the rules block from the CLAUDE.md analytics template into Project instructions. The rules tell the agent to use event codes from your catalog, fire them after the action succeeds and await conversions.

Step 2: Paste the install prompt

Bolt generates JavaScript projects. Open the install overview, pick the guide for the framework Bolt generated (for a Vite project, the Vite guide) and paste its agent prompt into the Bolt chat. It asks the agent to install the orwel package, create one wrapper module, initialize once on the client, identify users when they sign in and await a conversion when a form is submitted.

Bolt also has a terminal in Code view if you prefer to run npm install orwel yourself. It is not available in Safari or on mobile.

Step 3: Put the key in the right place

The Orwel production key (it starts with orwel_) is public: it can send events and cannot read data. It goes in the project's .env file with the name your framework expects:

Framework Variable
Vite (React, Vue, Svelte) VITE_ORWEL_KEY
Next.js NEXT_PUBLIC_ORWEL_KEY
SvelteKit, Astro PUBLIC_ORWEL_KEY

Bolt's Secrets feature only works with server functions and needs a connected database, so it is not the place for this key. Bolt's docs warn that anything your code reads in the browser is sent to every visitor. That is fine for the Orwel production key and not fine for an orwel_sk_ API key, which must never be in the app.

Step 4: Verify in Dev mode

Use the development key (orwel_dev_...) while you test in the preview. Sign up, use each tracked action and submit a form, then 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 Bolt chat. Switch to the production key before you publish.

Step 5: Publish

Use Publish, then Update for each change. If you host on Netlify through Bolt's integration, set the same variable there.

Step 6: Connect the Orwel MCP server

Bolt supports custom MCP servers. In Orwel, open Settings, API keys and create a key with the mcp scope. In Bolt, open the plus menu in the chat, then Connectors, Manage connectors, Custom MCP server, and fill in:

  • Name: Orwel
  • URL: https://api.orwel.io/mcp
  • Transport type: HTTP
  • Authentication: API key, with your orwel_sk_ key

Orwel expects the key as an Authorization: Bearer header. Bolt's docs do not say which header its API key option uses, so if the connection is rejected, read the numbers in the Orwel dashboard and paste them into the chat instead.

Once connected, 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. See 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 Bolt have built in analytics?

Yes, on paid plans. It reports visitors, page views, top pages, sources and locations for 30 days. It does not report feature adoption or funnels.

How do I add analytics to a Bolt app?

Paste the Orwel install prompt for your framework into the Bolt chat. The agent installs the orwel package, initializes it once and wires your forms.

Where does the Orwel key go in Bolt?

In the project's .env file, with the variable name for your framework. It is a public key. Bolt's Secrets are for server functions only.

Where do I put rules for the Bolt agent?

In All project settings, Knowledge, under Project instructions.

Can Bolt read my Orwel data?

Bolt supports custom MCP servers over HTTP. Add https://api.orwel.io/mcp with 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.