{"repo":"nuxt-modules/plausible","free":true,"listed":false,"github":"https://github.com/nuxt-modules/plausible","clone":"git clone https://github.com/nuxt-modules/plausible.git","description":"🎟️ Privacy-friendly web analytics for Nuxt, powered by Plausible","language":"TypeScript","stars":119,"topics":["analytics","nuxt","nuxt-module","nuxt3","plausible","plausible-analytics"],"license":"MIT","category":"analytics","readme_excerpt":"Nuxt Plausible Privacy-friendly web analytics for Nuxt, powered by Plausible. - ✨ &nbsp;Release Notes Features - 🌻 No configuration necessary - 📯 Track events and page views manually with composables - 📊 Automatic tracking of outbound links, file downloads and form submissions - 🔀 Optional API proxy to avoid ad blockers - 📂 .env file support - 🦾 SSR-ready Setup Basic Usage Add @nuxtjs/plausible to the modules section of your Nuxt configuration: Done! Plausible will now run in your application's client. [!TIP] By default, @nuxtjs/plausible uses window.location.hostname as the Plausible domain . Set the domain option to override it. Configuration All supported module options can be configured using the plausible key in your Nuxt configuration: [!TIP] To allow tracking events on localhost, set the ignoredHostnames option to an empty array. Runtime Config Alternatively, set options in your project's .env file – Nuxt replaces public runtime config values with matching environment variables at runtime: With this setup, you can omit the plausible key in your Nuxt configuration. Proxy Configuration The proxy routes Plausible events through your Nitro server instead of sending them straight to Plausible's servers, which keeps ad blockers from blocking requests to Plausible's domain. To enable the proxy, set the proxy option to true : [!NOTE] The route is / plausible/api/event . Setting enabled to false switches it off along with the tracker, so a build with tracking disabled exp","default_branch":null,"files":null,"tree":[],"storefront":"/r/nuxt-modules","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nuxt-modules/plausible/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}