Closed TobbenTM closed 2 years ago
Like the README says, domain should be optional, with a fallback to location.hostname:
string
location.hostname
However, this didn't happen because the Nuxt plugin defers instantiating the tracking entirely if the domain is not set: https://github.com/moritzsternemann/vue-plausible/blob/02c72183762e5bd72ff7771003c6b91743cde14e/src/nuxt-plugin.ts#L24
This PR changes the behavior to still start up the tracker, and let it perform its internal fallback strategy instead of doing nothing.
Like the README says, domain should be optional, with a fallback to location.hostname:
string
location.hostname
However, this didn't happen because the Nuxt plugin defers instantiating the tracking entirely if the domain is not set: https://github.com/moritzsternemann/vue-plausible/blob/02c72183762e5bd72ff7771003c6b91743cde14e/src/nuxt-plugin.ts#L24
This PR changes the behavior to still start up the tracker, and let it perform its internal fallback strategy instead of doing nothing.