We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c6c0bc commit e96735cCopy full SHA for e96735c
modules/nuxt-module-plausible/plugin.js
@@ -7,8 +7,11 @@ import { defineNuxtPlugin } from '#imports'
7
export default defineNuxtPlugin((nuxtApp) => {
8
9
// Do not fire Plausible if not in production mode
10
+ // unless tracking localhost is explicitly enabled in the config
11
if (process.env.NODE_ENV !== 'production') {
- return
12
+ if (!nuxtApp.$config.public.plausible.trackLocalhost) {
13
+ return
14
+ }
15
}
16
17
const router = nuxtApp.$router
0 commit comments