Install Analytise on Vue.js
One snippet in index.html. Nuxt users can register it in the config instead.
Vue (Vite)
- Open
index.htmlat the project root. - Paste the snippet inside the
<head>. - Run
npm run buildand deploy.
<script
defer
data-domain="yourwebsite.com"
data-site-id="YOUR_SITE_ID"
src="https://www.analytise.com/js/tracker.js"
></script>Client-side transitions via Vue Router don't fire additional pageviews in the current tracker version — every full page load is tracked.
Nuxt
Register the script once in your nuxt.config.ts under app.head.script:
export default defineNuxtConfig({
app: {
head: {
script: [
{
src: "https://www.analytise.com/js/tracker.js",
defer: true,
"data-domain": "yourwebsite.com",
"data-site-id": "YOUR_SITE_ID",
},
],
},
},
});Verify it works
- Open your website in a new tab.
- The dashboard shows your visit under
onlinewithin a few seconds (live visitors update every ~15s). - Nothing showing? See Troubleshooting.
Next guide
Laravel