nuxt-modules / plausible

🎟️ Plausible Analytics integration for Nuxt
https://plausible.io
MIT License
104 stars 6 forks source link

Exclude specific pages from being tracked #9

Closed ymansurozer closed 8 months ago

ymansurozer commented 1 year ago

Plausible allows excluding specific pages from being tracked. Is it possible to use that feature with this module? I did not see anything in the module options.

johannschopplich commented 1 year ago

Hi there! As mentioned in #7, @nuxtjs/plausible uses the plausible-tracker library under the hodd. At the moment, pages exclusion doesn't seem to be supported by the official JS library and therefore not by this Nuxt module.

Barbapapazes commented 8 months ago

Hey @ymansurozer, is there a documentation page about this? 👀

I'm forking the plausible tracker and we could resolve this!

ymansurozer commented 8 months ago

Hey @Barbapapazes. There is no config for this as far as I can see. So I ended up using the original plausible-tracker library and creating a Nuxt plugin to watch the route and enable/disable page tracking per my needs.