Install Analytise on v0
v0 generates a Next.js app — drop the snippet into the root layout.
Add it to the layout
- Open your v0 project and switch to the Code view.
- Find
app/layout.tsx(v0 uses the App Router). - Add the script tag inside
<head>. - Deploy from v0 to Vercel.
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<head>
<script
defer
data-domain="yourwebsite.com"
data-site-id="YOUR_SITE_ID"
src="https://www.analytise.com/js/tracker.js"
/>
</head>
<body>{children}</body>
</html>
);
}Want v0 to do it for you? Ask: Add an Analytise analytics script tag with data-domain="yourwebsite.com" and data-site-id="YOUR_SITE_ID" to the head of app/layout.tsx.
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
Bolt