1 minute
Install Web-Tracking.eu on Nuxt
Add the script via Nuxt's app.head config. Works for both Nuxt 3 and Nuxt 2.
1
Nuxt 3
Open nuxt.config.ts and add the script in app.head:
export default defineNuxtConfig({
app: {
head: {
script: [
{
src: 'https://web-tracking.eu/t.js?site=YOUR_SITE_ID',
defer: true
}
]
}
}
});2
Nuxt 2
In nuxt.config.js:
export default {
head: {
script: [
{
src: 'https://web-tracking.eu/t.js?site=YOUR_SITE_ID',
defer: true
}
]
}
};3
Replace the site ID
Change YOUR_SITE_ID to the ID from your dashboard. For per-environment configuration, expose it through runtimeConfig.public.
Verify it's working
- Open your site in a private/incognito window.
- Visit any page on the site.
- Open the Web-Tracking.eu dashboard for this site.
- The Realtime view should show your visit within 5–10 seconds.
Having trouble?
- No data showing: Confirm the script is in the page source (View Source > search
web-tracking.eu/t.js). - Wrong site ID: Double-check the ID matches the one in your dashboard. IDs are case-sensitive.
- Ad blocker: Web-Tracking.eu is privacy-friendly, but some aggressive blockers still hide it. Test in a fresh browser.
- Caching: Many platforms cache the page HTML. Purge your cache after install.
- Still stuck? Email hello@web-tracking.eu with your site URL.