Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Native Plausible Analytics integration for Nuxt with zero-config tracking, composables, and an ad-blocker bypass proxy.
Nuxt Plausible is a native Nuxt module that integrates Plausible Analytics into Nuxt applications. It requires no configuration out of the box, automatically tracks page views, and exposes composables for manual event and pageview tracking.
The @nuxtjs/plausible module brings Plausible Analytics to any Nuxt project. It injects the official Plausible tracker into the client (browser) so that page views are reported to a Plausible account, and it provides Vue composables (useTrackEvent and useTrackPageview) for custom event tracking. The module is developed by Johann Schopplich and published under the MIT license, with release activity continuing from 2022 to the present.
modules array; it defaults the Plausible domain to window.location.hostname.useTrackEvent() and useTrackPageview() are auto-imported, client-only helpers for sending custom goals and manually recording page views, including support for revenue properties.proxy: true to route all Plausible events through your Nitro server at the default /_plausible endpoint, so requests never reach Plausible's domain directly..env support — Runtime configuration values like NUXT_PUBLIC_PLAUSIBLE_DOMAIN let you change settings without touching the Nuxt config.localhost are ignored by default, and hashMode can be enabled for hash-based routing.useTrackEvent composable.useTrackEvent('signup') to report a goal, optionally passing properties or revenue data (e.g., amount and currency).useTrackPageview({ url: '/virtual-page' }) for single-page-app routing or virtual page paths.fileDownloads: { fileExtensions: ['pdf', 'zip', 'csv'] } to limit which file types count as downloads.npx nuxt module add plausible or by listing '@nuxtjs/plausible' in the modules array of nuxt.config.ts.https://plausible.io (or your configured apiHost), and, if the proxy is enabled, to your Nitro server first.