---
title: "Best Analytics for Nuxt: 2026 Guide · Nuxt Scripts"
description: "Compare analytics providers for Nuxt by performance, privacy, price, SPA tracking, and use case, with practical setup guidance."
canonical_url: "https://scripts.nuxt.com/learn/choosing-analytics-nuxt"
last_updated: "2026-03-18T12:00:00Z"
meta:
  author: "Harlan Wilton"
  "og:description": "Compare analytics providers for Nuxt by performance, privacy, price, SPA tracking, and use case, with practical setup guidance."
  "og:image": "https://scripts.nuxt.com/_og/s/o_06b783bfc6671583.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Best Analytics for Nuxt: 2026 Guide · Nuxt Scripts"
  "twitter:image": "https://scripts.nuxt.com/_og/s/o_06b783bfc6671583.png"
---

> Index of every page on this site: [llms.txt](https://scripts.nuxt.com/llms.txt)

# **Choosing Analytics for Your Nuxt App: A Data-Backed Guide**

[![Harlan Wilton](https://avatars.githubusercontent.com/u/5326365?v=4) Harlan Wilton](https://bsky.app/profile/harlanzw.com) 8 min read Updated March 18, 2026

Most teams pick analytics based on name recognition. GA4 because everyone uses it. Plausible because a tweet said it was good. PostHog because the free tier looked generous.

That's backwards. The right analytics tool depends on what you need to track - and in Nuxt, on how well it handles SSR hydration and SPA navigation. We measured the transfer size, execution cost, and privacy profiles of every major provider. Here's what the data says.

## What Do You Need?

Answer this before looking at any provider. Each step up adds complexity, weight, and cost.

1. **"I want visitor counts."** - [ Cloudflare Web Analytics](https://scripts.nuxt.com/scripts/cloudflare-web-analytics) or [ Plausible Analytics](https://scripts.nuxt.com/scripts/plausible-analytics).
2. **"I need custom events - clicks, downloads, signups."** - [ Plausible Analytics](https://scripts.nuxt.com/scripts/plausible-analytics), [ Umami Analytics](https://scripts.nuxt.com/scripts/umami-analytics), or [ Fathom Analytics](https://scripts.nuxt.com/scripts/fathom-analytics).
3. **"I need ad ROI and conversion funnels."** - [ Fathom Analytics](https://scripts.nuxt.com/scripts/fathom-analytics) or [ Google Analytics](https://scripts.nuxt.com/scripts/google-analytics).
4. **"I need session replays and user identity."** - [ PostHog](https://scripts.nuxt.com/scripts/posthog) or LogRocket.
5. **"I need to route data to 20 tools and a data warehouse."** - [ Segment](https://scripts.nuxt.com/scripts/segment).

Most sites need tier 1 or 2. The temptation to jump to tier 5 because "we might need it" is expensive and usually wrong.

## The Nuxt Analytics Matrix (2026)

### **Analytics Recommendation Matrix **

**2026**

| Need | Provider | Script Size | Why |
| --- | --- | --- | --- |
| **Minimalist** | [**Cloudflare Web Analytics**](https://scripts.nuxt.com/scripts/cloudflare-web-analytics) | **10.7 KB** | Free, zero-config for CF sites |
| **Privacy-first** | [**Plausible Analytics**](https://scripts.nuxt.com/scripts/plausible-analytics) | **1.9 KB** | Fastest UI, no cookies, sub-2KB |
| **Self-hosted** | [**Umami Analytics**](https://scripts.nuxt.com/scripts/umami-analytics) | **3.2 KB** | Open-source, SQL-based, lightweight |
| **Marketing/ads** | [**Fathom Analytics**](https://scripts.nuxt.com/scripts/fathom-analytics) | **3 KB** | Goal tracking for high-traffic sites |
| **Product growth** | [**PostHog**](https://scripts.nuxt.com/scripts/posthog) | **NPM / 0 KB\*** | Session replay, flags, heatmaps |
| **Enterprise CDP** | [**Segment**](https://scripts.nuxt.com/scripts/segment) | **30.3 KB** | Complex data orchestration |
| **Google Ads** | [**Google Analytics**](https://scripts.nuxt.com/scripts/google-analytics) | **154.9 KB** | Deepest Google Ads integration |
| **Tag Management** | [**GTM + GA4**](https://scripts.nuxt.com/scripts/google-tag-manager) | **\~264 KB** | GTM loads GA4 as sub-script |

\*PostHog via NPM bundles into your app — zero extra network requests. Script sizes from [Nuxt Scripts](https://github.com/nuxt/scripts).

**Practical advice:** If you're building a SaaS product, the hybrid stack in section 7 beats any single tool. If you're building a marketing site, [ Plausible Analytics](https://scripts.nuxt.com/scripts/plausible-analytics) is the right default.

## Nuxt-Specific Gotchas

Nuxt's hybrid SSR/SPA architecture breaks standard analytics snippets in two ways.

### SSR Hydration Double-Counting

Place a tracking snippet in `**app.html**` or `**useHead**` and it fires twice: once when the browser parses the server-rendered HTML, again when Vue hydrates. Your pageview counts inflate by up to 2x for initial loads. ([**Nuxt Scripts docs**](https://scripts.nuxt.com/docs/guides/key-concepts))

Nuxt Scripts loads analytics `**onNuxtReady**` by default. The script only runs once the app is fully interactive on the client.

### SPA Navigation Tracking

Standard scripts listen for `**window.load**`. In a Nuxt SPA, the page never reloads as you navigate between routes. Without router integration, you're tracking one pageview per session regardless of how many pages the user visits.

Nuxt Scripts' registry composables (like `**useScriptPlausible**`) automatically hook into the Nuxt router and send virtual pageviews on every navigation.

Both issues affect every analytics provider. Don't assume your current setup is tracking correctly without verifying against server-side logs.

## Setup: 1 Line vs. \~40 Lines

```ts
// nuxt.config.ts
export default defineNuxtConfig({
  scripts: {
    registry: {
      plausibleAnalytics: { domain: 'example.com' }
    }
  }
})
```

The manual approach also misses the hydration fix. You'd need to delay the script manually - and that's before handling consent, first-party proxying, or TypeScript types.

## 2026 Pricing at 100k Pageviews/Month

### **Pricing at 100k Pageviews/Month **

**2026**

| Provider | Free Tier | Monthly |
| --- | --- | --- |
| [**Google Analytics**](https://scripts.nuxt.com/scripts/google-analytics) | UnlimitedData limits apply | Free |
| [**Cloudflare Web Analytics**](https://scripts.nuxt.com/scripts/cloudflare-web-analytics) | Unlimited | Free |
| [**PostHog**](https://scripts.nuxt.com/scripts/posthog) | 1M events/mo | Free |
| [**Umami Cloud**](https://scripts.nuxt.com/scripts/umami-analytics) | 100k events/mo | Free |
| [**Rybbit**](https://scripts.nuxt.com/scripts/rybbit-analytics) | 3k views | $13 |
| [**Fathom**](https://scripts.nuxt.com/scripts/fathom-analytics) | 7-day trial | $15 |
| [**Plausible**](https://scripts.nuxt.com/scripts/plausible-analytics) | 30-day trial | $19 |
| [**Segment**](https://scripts.nuxt.com/scripts/segment) | 50k users | $60+ |

\*PostHog stays free through 1M monthly events. Prices as of March 2026.

GA4's "free" tier comes with tradeoffs: raw event access requires a [**BigQuery export**](https://support.google.com/analytics/answer/9358801?hl=en), standard properties have daily export limits, and retention is configurable only within product limits. For teams that need direct SQL access to their own data, Umami (self-hosted) or Plausible may be cheaper in the long run. Migrating off GA4 is also easier than it looks; both [**Matomo**](https://matomo.org/docs/google-analytics-importer/) and Plausible support importing historical GA data.

## The Ad-Blocker Problem

25-45% of users block trackers ([**Blockthrough Ad-Block Report 2026**](https://blockthrough.com)). Scripts hosted on `**google-analytics.com**`, `**plausible.io**`, or any known tracker domain get blocked at the DNS or network level.

Nuxt Scripts' first-party mode proxies all analytics traffic through your own domain, saving 200-500ms in addition to recovering blocked data ([**Nuxt Scripts benchmarks**](https://scripts.nuxt.com/learn/analytics-script-performance)):

nuxt.config.ts

```ts
export default defineNuxtConfig({
  scripts: {
    firstParty: true,
    registry: {
      plausibleAnalytics: { domain: 'example.com' }
    }
  }
})
```

Requests go to `**yoursite.com/_scripts/...**` instead of `**plausible.io**`. To a browser or DNS blocker, they're indistinguishable from regular site traffic. Data accuracy returns to near 100%.

This also has a privacy benefit: third parties see your server's IP instead of your users'.

First-party mode supports Google Analytics, GTM, Meta Pixel, Plausible, Fathom, Segment, Clarity, Hotjar, and more.

## The Hybrid Stack

You don't have to pick one tool. High-performing Nuxt teams typically run two:

- **[Plausible Analytics](https://scripts.nuxt.com/scripts/plausible-analytics) or [ Umami Analytics](https://scripts.nuxt.com/scripts/umami-analytics)** for traffic stats. Fast, readable dashboard that anyone on the team can use without training. Answers "how many people visited, from where, and which pages."
- **[PostHog](https://scripts.nuxt.com/scripts/posthog)** for product and engineering. Session replay, feature flags, A/B tests, and funnel analysis. Answers "what did users do and where did they drop off."

The two tools don't overlap. [ Plausible Analytics](https://scripts.nuxt.com/scripts/plausible-analytics)/:LinkScript covers the marketing and content team's questions. [ PostHog](https://scripts.nuxt.com/scripts/posthog) covers the product team's.

nuxt.config.ts

```ts
export default defineNuxtConfig({
  scripts: {
    firstParty: true,
    registry: {
      plausibleAnalytics: { domain: 'example.com' },
      posthog: { apiKey: 'phc_XXXXXX' }
    }
  }
})
```

Both load deferred, both get first-party proxying, and neither requires a manual router hook.

## Making the Call

Three questions narrow it down:

1. **Who reads the data?** Marketing team - use [ Plausible Analytics](https://scripts.nuxt.com/scripts/plausible-analytics). Engineers debugging sessions - use [ PostHog](https://scripts.nuxt.com/scripts/posthog). Google Ads team - use [ Google Analytics](https://scripts.nuxt.com/scripts/google-analytics).
2. **What's your compliance situation?** EU users with no cookie consent UI - use [ Plausible Analytics](https://scripts.nuxt.com/scripts/plausible-analytics) or [ Umami Analytics](https://scripts.nuxt.com/scripts/umami-analytics) (cookie-free). GDPR consent required - all providers work, Plausible and Umami need the least configuration.
3. **What's your scale?** Under 1M events/month - [ PostHog](https://scripts.nuxt.com/scripts/posthog) is free. Under 100k events/month - [ Umami Analytics](https://scripts.nuxt.com/scripts/umami-analytics) Cloud is free. High-volume marketing site - [ Fathom Analytics](https://scripts.nuxt.com/scripts/fathom-analytics)'s flat pricing avoids surprise bills.

For most Nuxt apps: start with [ Plausible Analytics](https://scripts.nuxt.com/scripts/plausible-analytics) for traffic stats. Add [ PostHog](https://scripts.nuxt.com/scripts/posthog) when you need product analytics. Use Nuxt Scripts for both - router integration, SSR safety, and first-party proxying with no glue code required.

**Add analytics to your Nuxt app **

Install Nuxt Scripts, then choose a typed analytics integration for your app.

[Install Nuxt Scripts](https://scripts.nuxt.com/docs/getting-started/installation) [Browse analytics integrations](https://scripts.nuxt.com/scripts?category=analytics)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scripts.nuxt.com/#website","@type":"WebSite","description":"Nuxt Scripts lets you load third-party scripts with better performance, privacy, security and DX. It includes many popular third-parties out of the box.","name":"Nuxt Scripts","url":"https://scripts.nuxt.com/","publisher":{"@id":"https://scripts.nuxt.com/#identity"}},{"@id":"https://scripts.nuxt.com/learn/choosing-analytics-nuxt#webpage","@type":"WebPage","dateModified":"2026-03-18T12:00:00Z","datePublished":"2026-03-18T12:00:00Z","description":"Compare analytics providers for Nuxt by performance, privacy, price, SPA tracking, and use case, with practical setup guidance.","name":"Best Analytics for Nuxt: 2026 Guide","url":"https://scripts.nuxt.com/learn/choosing-analytics-nuxt","breadcrumb":{"@id":"https://scripts.nuxt.com/learn/choosing-analytics-nuxt#breadcrumb"},"isPartOf":{"@id":"https://scripts.nuxt.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://scripts.nuxt.com/learn/choosing-analytics-nuxt"]}],"primaryImageOfPage":{"@id":"https://scripts.nuxt.com/#logo"}},{"@id":"https://scripts.nuxt.com/#identity","@type":"Organization","name":"Nuxt Scripts","url":"https://scripts.nuxt.com","logo":{"@id":"https://scripts.nuxt.com/#logo"}},{"@id":"https://scripts.nuxt.com/#/schema/person/#author","@type":"Person","description":"An open-source developer from Sydney, Australia. Core team member of Nuxt, VueUse and UnJS. Author of Unlighthouse, Unhead and Nuxt SEO.","name":"Harlan Wilton","url":"https://harlanzw.com","sameAs":["https://twitter.com/harlan_zw","https://github.com/harlan-zw"]},{"@id":"https://scripts.nuxt.com/learn/choosing-analytics-nuxt#article","@type":"Article","dateModified":"2026-03-18T12:00:00Z","datePublished":"2026-03-18T12:00:00Z","description":"Compare analytics providers for Nuxt by performance, privacy, price, SPA tracking, and use case, with practical setup guidance.","headline":"Best Analytics for Nuxt: 2026 Guide","inLanguage":"en","thumbnailUrl":"https://scripts.nuxt.com/_og/s/o_06b783bfc6671583.png","author":{"@id":"https://scripts.nuxt.com/#/schema/person/#author"},"image":{"@id":"https://scripts.nuxt.com/#/schema/image/1"},"isPartOf":{"@id":"https://scripts.nuxt.com/learn/choosing-analytics-nuxt#webpage"},"mainEntityOfPage":{"@id":"https://scripts.nuxt.com/learn/choosing-analytics-nuxt#webpage"},"publisher":{"@id":"https://scripts.nuxt.com/#identity"}},{"@id":"https://scripts.nuxt.com/learn/choosing-analytics-nuxt#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Nuxt Scripts","item":"https://scripts.nuxt.com/","position":1},{"@type":"ListItem","name":"Learn","item":"https://scripts.nuxt.com/learn","position":2},{"@type":"ListItem","name":"Choosing Analytics for Your Nuxt App: A Data-Backed Guide","item":"https://scripts.nuxt.com/learn/choosing-analytics-nuxt","position":3}]},{"@id":"https://scripts.nuxt.com/#logo","@type":"ImageObject","caption":"Nuxt Scripts","contentUrl":"https://scripts.nuxt.com/logo.svg","inLanguage":"en","url":"https://scripts.nuxt.com/logo.svg"},{"@id":"https://scripts.nuxt.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://scripts.nuxt.com/_og/s/o_06b783bfc6671583.png","inLanguage":"en","url":"https://scripts.nuxt.com/_og/s/o_06b783bfc6671583.png"}]}
```

## Sitemap

See the full [sitemap](https://scripts.nuxt.com/sitemap.md) for all pages.
