Install Statsdot on Replit
Updated October 17, 2026
Find the HTML file your app serves (often index.html, or a base template in Flask or Express apps) and add the script to its <head>:
<script defer data-domain="yourapp.com" src="https://statsdot.com/js/script.js"></script>
You can also ask Replit Agent to add it, with the exact line above. Redeploy afterwards.
Use the domain your visitors see (your custom domain or the replit.app subdomain) and add the same in Statsdot. For framework apps, see the guides for React, Next.js, Django or any HTML site.