Install Statsdot on Lovable
Updated October 17, 2026
Lovable apps are React apps with an index.html file. Ask Lovable in the chat:
Add this script to the
<head>of index.html, exactly as written:<script defer data-domain="yourapp.com" src="https://statsdot.com/js/script.js"></script>
Or open the code and paste it in the <head> of index.html yourself. Then publish.
Use the domain your visitors see (your custom domain or the lovable.app subdomain) and add the same in Statsdot. Routes count on their own, because Statsdot follows client-side navigation.
To count sign-ups, ask Lovable to call window.statsdot?.track('Signup') when the sign-up succeeds.