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
orwelpackage, - call
orwel.init()once when the app starts, - call
orwel.identify()and awaitorwel.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_foundfor 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.