Websites and builders
Replit
Replit analytics with Stickybeak tracks deployed page views and conversion goals from shared HTML or a layout. Add the script and redeploy in about five minutes.
Add the script
Find the shared file
For Vite use
index.html, often inclient/. For Next.js useapp/layout.tsx. For Flask or Django usetemplates/base.htmlorlayout.html. For plain HTML, update every page or its shared header.Paste before </head>
<script defer data-site="YOUR_SITE_ID" data-domain="example.com" src="https://app.usestickybeak.com/_cfw/s.js" ></script>Redeploy
Open Publishing (Deployments in older workspaces) and click Republish.
Check it's working
Use the deployed custom or .replit.app domain, not Webview. Then follow Verify your install.
Track goals
Add data-goal to a button or link. For code calls, initialise the queue first:
<script>window.stickybeak = window.stickybeak || function () { (window.stickybeak.q = window.stickybeak.q || []).push(arguments); };</script>
Then call window.stickybeak("signup"). See Custom goals.
Track purchases
On your confirmation page, initialise the queue and send completed-order values:
window.stickybeak = window.stickybeak || function () { (window.stickybeak.q = window.stickybeak.q || []).push(arguments); };
window.stickybeak("purchase", { revenue: 49, currency: "AUD", order_id: "ORDER_ID" });
Replace the example values from your order. See Revenue.
Page changes
Stickybeak records history-based route changes automatically.
If it isn't working
- Republish after editing.
- Make the configured domain match the deployment.
See Troubleshooting.