Best Analytics for Nuxt (2026)
Compare the best analytics solutions for Nuxt 3. We review PostHog, Plausible, Umami, and more with privacy compliance, Nuxt modules, and route tracking.
Analytics help you understand how users interact with your Nuxt app. The landscape has shifted toward privacy-first solutions that don't require cookie banners. Nuxt's module system and plugin architecture make analytics integration straightforward, with automatic page view tracking for both client and server-rendered pages.
Por Qué Es Importante
You can't improve what you don't measure. But traditional analytics come with privacy baggage. Modern alternatives give you insights without GDPR headaches. Nuxt's hybrid rendering (SSR/SSG) requires analytics that track page views correctly regardless of rendering mode.
Consideraciones Clave
Privacy & GDPR
Cookie-based analytics (GA4, Mixpanel) require consent banners in the EU. Privacy-first tools (Plausible, Umami, Fathom) don't use cookies and don't need consent. Consider your audience location.
Nuxt Modules
Some analytics have official Nuxt modules with auto-tracking. Others require manual setup. Modules handle SSR/client hydration automatically.
Product vs Web Analytics
Web analytics (Plausible) show traffic and sources. Product analytics (PostHog, Mixpanel) track user journeys, funnels, and events. Choose based on what insights you need.
Self-Hosted Options
Plausible, Umami, and PostHog can be self-hosted for full data ownership. No usage limits when self-hosting. Good for privacy-conscious teams.
Performance Impact
Analytics scripts add page weight. Plausible is <1KB. PostHog is larger but feature-rich. Consider lazy-loading analytics after page load.
Nuestras Recomendaciones
PostHog
Mejor en General Excelente Soporte SDK OficialPostHog is the most complete solution: product analytics, session recordings, feature flags, A/B testing. Official Nuxt module handles everything. 1M events/month free. Open source and self-hostable. Best for product-led growth.
npx nuxi module add posthog Plausible Analytics
Mejor en Privacidad Bueno Soporte SDK OficialPlausible is the anti-Google Analytics: simple, privacy-focused, no cookies, <1KB script. Perfect for blogs and marketing sites. EU-hosted, GDPR-compliant by design. Self-host or cloud ($9/month).
npm install vue-plausible Umami
Mejor Autoalojado Bueno Soporte SDK OficialUmami is a beautiful, privacy-focused analytics you can self-host for free. No cookies, simple dashboard, lightweight. Deploy on Railway or Vercel. Great open-source alternative to Plausible.
npm install @umami/nuxt Mixpanel
Mejor para Equipos de Producto Bueno Soporte SDK OficialMixpanel pioneered product analytics with funnels, retention, and cohorts. More established than PostHog with better enterprise features. 20M events/month free. Good SDK but not Nuxt-specific.
npm install mixpanel-browser Google Analytics
Más Utilizado Bueno Soporte SDK OficialGoogle Analytics 4 is free and powerful with BigQuery integration. Requires cookie consent in EU. Heavier script, sampled data. Use only if you need GA ecosystem or it's required by your organization.
npm install vue-gtag Comparación Rápida
| Servicio | TypeScript | Edge | Plan Gratuito | Tiempo de Configuración |
|---|---|---|---|---|
| | full | ✓ | 1M events/mo | 10 min |
| | full | ✓ | Self-host only | 5 min |
| | full | ✓ | Self-host free | 15 min |
| | full | ✓ | 20M events/mo | 15 min |
| | full | ✓ | Unlimited | 10 min |
Inicio Rápido
export default defineNuxtConfig({
modules: ['nuxt-posthog'],
posthog: {
publicKey: process.env.NUXT_PUBLIC_POSTHOG_KEY,
host: 'https://app.posthog.com',
capturePageViews: true,
},
});
// Usage in components:
// const { $posthog } = useNuxtApp();
// $posthog.capture('button_clicked', { button: 'signup' }); Patrones de Integración Comunes
PostHog Full Stack
PostHog for analytics, session recordings, feature flags, and A/B tests. One tool replaces multiple services. Best for product-led growth.
Plausible + Simple Analytics
Plausible for privacy-friendly traffic analytics. No consent banners, simple dashboard. Perfect for content sites and blogs.
Mixpanel + Segment
Segment collects events, Mixpanel analyzes them. Enterprise pattern allowing analytics provider switching without code changes.