nuxt-modules / plausible

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

Proxying Plausible through Vercel #4

Closed marcusarnfast closed 1 year ago

marcusarnfast commented 1 year ago

Hi, awesome module!

But my questions is how would i intergrate Proxying Plausible through Vercel with this module https://plausible.io/docs/proxy/guides/vercel

Thanks!

johannschopplich commented 1 year ago

Hey there, it seems like the Plausible tracking library doesn't support to customize the events API path, like the Plausible embedded <script> does. It solely lets you overwrite the API host location, which is also available within the Nuxt module configuration:

export default defineNuxtConfig({
  plausible: {
    apiHost: '',
  },
})

It won't let you add a proxy event path like /stats/api/event however, unfortunately. Feel free to open an issue over at plausible-tracker. Thanks!