moritzsternemann / vue-plausible

Plausible Analytics Vue.js Plugin and NuxtJS Module
MIT License
120 stars 8 forks source link

Exempt nuxt plugin from SSR #1

Closed tillsanders closed 3 years ago

tillsanders commented 3 years ago

This caused problems in my Nuxt installation resulting in the error message history is not defined originating in plausible-tracker/src/lib/tracker.ts:240:31.

moritzsternemann commented 3 years ago

@tillsanders Thanks for the PR! I wasn't able to properly test the library with SSR yet, so to disable it for now seems like a valid solution!