Install Analytise on Lovable

Ask the AI builder to inject the script — or paste it directly into index.html.

Via the AI prompt

  1. Open your project in Lovable.
  2. Send this prompt to the editor, replacing the domain and site id:
Add this script tag to the <head> of index.html exactly as written:

<script defer data-domain="yourwebsite.com" data-site-id="YOUR_SITE_ID" src="https://www.analytise.com/js/tracker.js"></script>

Manual edit

  1. Open index.html in the file tree.
  2. Paste the snippet inside the <head>.
  3. Publish your project.

Lovable projects are Vite + React under the hood, so the snippet loads exactly like a normal HTML page — no special framework wiring needed.

Verify it works

  1. Open your website in a new tab.
  2. The dashboard shows your visit under online within a few seconds (live visitors update every ~15s).
  3. Nothing showing? See Troubleshooting.

Next guide

v0