Install Analytise with React Router

One snippet in your HTML entry file. Works with Vite, Create React App and any React Router setup.

Add the snippet

  1. Open index.html (Vite) or public/index.html (Create React App).
  2. Paste the snippet inside the <head>.
  3. Rebuild and deploy.
index.html
<script
  defer
  data-domain="yourwebsite.com"
  data-site-id="YOUR_SITE_ID"
  src="https://www.analytise.com/js/tracker.js"
></script>

Client-side navigation

The snippet tracks every full page load out of the box. Client-side transitions between routes don't fire additional pageviews in the current tracker version.

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

Astro