# Monitor a Lovable app

Watch the orders and sign-ups behind your Lovable app. A checkout that stops alerts you even when every page loads.

**You need:** a Lovable app.

Your Lovable app can load every page and still be broken. Checkout stops, a sign-up email never arrives, a payment webhook fails. CountWatch watches the counts behind those steps and tells you when one drops, stops or spikes.

## What to watch

- New orders, or paid checkouts
- New sign-ups that finish (not the ones that start)
- Anything a scheduled job does

## How to set it up

1. Sign up at countwatch.com (free, no card).
2. Add CountWatch to Lovable as a custom MCP server: Connectors → Custom (MCP) → Connect your own MCP. Use `https://countwatch.com/mcp` as the URL and OAuth, then press Add & authorize. It is personal: a teammate adds it in their own account.
3. Paste this into Lovable's chat: "Set up CountWatch for this app: read https://countwatch.com/agent and follow it." The agent proposes what to watch and makes the watches.
   - If your app keeps its data in Supabase, it follows the [Supabase recipe](/docs/recipes/supabase). The database counts new orders every 5 minutes and sends them, so a checkout that stops raises an alert even when every page loads.
   - Otherwise it counts in an edge function with a Webhook URL ([Any other tool](/docs/methods)). You save the URL in Lovable's secret form, from the link the agent gives you.
4. Choose where alerts go. Email is on from the start. Slack, a webhook or PagerDuty are one step under Destinations.

Lovable's own agent has not yet been run end to end through this setup; the Supabase recipe itself runs in our automated tests.

## What you get

A watch learns each count's usual level by hour and weekday. Big changes alert from day 2. Import past counts and alerts are tuned today ([Bring in past data](/docs/import-history)). If counts stop, a Silence alert follows.
