Stickybeak Docs Dashboard Get early access

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

  1. Find the shared file

    For Vite use index.html, often in client/. For Next.js use app/layout.tsx. For Flask or Django use templates/base.html or layout.html. For plain HTML, update every page or its shared header.

  2. Paste before </head>

    <script
      defer
      data-site="YOUR_SITE_ID"
      data-domain="example.com"
      src="https://app.usestickybeak.com/_cfw/s.js"
    ></script>
  3. 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.