To add analytics to a Lovable app, put the Obsidesk script tag in index.html inside head. You get visitors, sources, signups and, with Stripe connected, which channel brings paying users. Lovable apps are single-page apps, and route changes are tracked.
What you get
- Visitors, sources and campaigns for your app and landing page
- Signups from forms with an email field
- Revenue by channel when you connect Stripe or Paddle
- Custom events
- Cookieless tracking
Set it up
- 1Create your account and add your domain
Sign up, add the domain you want to track and copy your site ID from Settings. Every plan has a 14-day money-back guarantee; there is no free trial.
- 2Add the script to index.html
Ask Lovable to add the tag to
index.html, or edit the file in the code view. It goes inside<head>.<script defer src="https://obsidesk.com/script.js" data-site="YOUR_SITE_ID"></script>
- 3Publish and visit
Use your published or custom domain. Open your site in a normal browser window and check that the visit appears in the live view. Visits on localhost are not counted unless you add
data-allow-localhost, and your own visits can be excluded by opening#obsidesk-ignoreonce. - 4Identify users after sign-in
If you use Supabase auth or another login, call identify once the user is known.
window.obsidesk?.identify(user.email, user.name);
- 5Connect revenue
Connect Stripe under Settings, then Revenue.
What AI builders leave out
Lovable gets you to a working app quickly. It does not tell you whether anyone found it, or what they did. A script and a revenue connection answer both, and the setup does not depend on how the app was generated.
Supabase users
If your Lovable app stores users in Supabase, you can also sync signups read-only on the Growth plan.
FAQ
What is the best analytics for Lovable apps?
Any tool that works by script tag, since you can add one to index.html. Obsidesk adds revenue by channel on top.
How do I track signups in a Lovable app?
Form submissions with an email field are detected automatically. For other auth flows, call window.obsidesk?.identify(email, name).
Does it track visits on the preview URL?
Track your published or custom domain. Open #obsidesk-ignore once per browser to keep your own test visits out of the numbers.
Works with
Connect Lovable in about a minute.
14-day money-back guarantee. Installed in 30 seconds. Read-only revenue connections.