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

Lovable analytics: add Orwel to an app built with Lovable

To add analytics to a Lovable app, paste one message in the Lovable chat that installs the Orwel SDK and wires your forms, save the Orwel rules as project instructions so later prompts keep the events consistent, check every request in Dev mode, then connect the Orwel MCP server in Lovable so the agent reads real usage.

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

Lovable is an app builder: you describe the app in a chat and Lovable writes, hosts and publishes it. This page is about measuring what people do in that app once it is live, which is the measure step of the vibe coding loop.

Facts about Lovable come from the Lovable docs, last checked December 4, 2026.

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

What Lovable's own analytics covers

Lovable has a built in Analytics panel (More, then Analytics) on every plan. It shows visits, page views, channels, sources, countries and devices. It has no funnels, and Lovable's docs point to an external tool for that. So it tells you that people came. It does not tell you which features they used or where they dropped off before signing up.

Step 1: Install with one message

Lovable installs npm packages when you ask in the chat; there is no terminal step. Open the Lovable install guide, copy the message with your key already in it and paste it into the chat. It asks Lovable to:

  • install the orwel package,
  • call orwel.init() once when the app starts,
  • call orwel.identify() and await orwel.conversion() when a contact form is submitted.

The production key (it starts with orwel_) is public: it can send events and cannot read data, so it can live in client code. Lovable's docs say the same about public keys: a variable with the VITE_ prefix in .env is built into the client bundle and is safe to be public. If you prefer a variable, ask Lovable to read the key from VITE_ORWEL_KEY. Lovable's Secrets panel is for backend values, so the Orwel production key does not belong there.

Step 2: Save the rules as project instructions

Without rules, an agent invents event names and fires them before the action succeeds. Lovable reads project instructions with every message. Open Project settings, then Instructions, and paste the rules block from the CLAUDE.md analytics template. Lovable also reads an AGENTS.md or CLAUDE.md file at the project root, so asking it to create that file with the same block works too.

Step 3: Define what to measure, then ask Lovable to implement it

In Orwel, create a journey (for example visit, signup, first project) and one or two features from the event catalog. Each one has an Implement tab with a prompt written for a coding agent: every event code, when to fire it and how to verify it. Paste that prompt into the Lovable chat. More prompts for signup funnels, feature usage and audits are in vibe coding prompts.

Step 4: Verify in Dev mode

Ask Lovable to use the development key (orwel_dev_...) in the preview, then sign up, use each tracked action and submit a form. Open Dev mode in Orwel and read each request:

  • Errors mean rejected, for example event_not_found for a code that is not in your catalog.
  • Warnings mean accepted with a problem, for example conversion_no_email.

Paste any warning back into the Lovable chat. Switch to the production key before you publish.

Step 5: Publish

Use Publish, then Publish changes for each update. Events from the published app count in your reports; events sent with the development key never do.

Step 6: Let Lovable read real usage

Lovable can connect to a remote MCP server. In Orwel, open Settings, API keys and create a key with the mcp scope. In Lovable, open Connectors, Add custom, MCP server, enter https://api.orwel.io/mcp as the server URL and choose the bearer token option with that key. The connection is per user and never becomes part of the 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 Lovable have built in analytics?

Yes. Lovable's Analytics panel shows visits, page views, sources, countries and devices on every plan. It does not have funnels or feature adoption, which is what a product analytics tool like Orwel adds.

How do I add analytics to a Lovable app?

Paste the install message from the Lovable install guide into the chat. Lovable installs the orwel package, initializes it once and wires your forms.

Is it safe to put the Orwel key in a Lovable project?

The production key is public by design: it can only send events. Keep the orwel_sk_ API key, which reads data, out of the app; it belongs only in the MCP connector.

Where do the rules for the agent go in Lovable?

In Project settings, Instructions, or in an AGENTS.md or CLAUDE.md file at the project root. Lovable reads both with every message.

Can Lovable read my Orwel data?

Yes, through a custom MCP connector pointed at 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.