nuxt-modules / plausible

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

Waiting for first pageview #2

Closed alvarosabu closed 1 year ago

alvarosabu commented 1 year ago

Hi there, I have the module installed, but Im getting this on the dashboard,

Do I need to add the snippet as well? Or is it something that the module should handle?

<script defer data-domain="alvarosaburido.dev" src="https://plausible.io/js/script.js"></script>

Thanks

Screenshot 2022-11-30 at 20 06 48
johannschopplich commented 1 year ago

Technically, you don't have to add any configuration when adding the module to your nuxt.config.ts.

Have you customized the module's option? And if so, could you please provide its configuration? Does your deployed Nuxt application's domain match the one set up in Plausible?

Otherwise, Plausible may take a while to process the first request. Could you check if it is still missing?

alvarosabu commented 1 year ago

Hey, thanks for the quick response, here is my config

modules: [
    'nuxt-plausible',
    ...
],
plausible: {
    domain: 'https://alvarosaburido.dev',
 },

Yes, the domain is the same on the dashboard. Still the same state as the screenshot

johannschopplich commented 1 year ago

You don't need to configure the domain module option, it will default to the window.location.hostname.

Apart from that, your configuration is malformed. domain should be alvarosaburido.dev (without protocol).

alvarosabu commented 1 year ago

I removed the options, waited a little bit and then started fetching data. Thanks for the support, I'm gonna close this