Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analytics events are not logging in local development (or on staging) #4949

Closed
zackkrida opened this issue Sep 17, 2024 · 3 comments · Fixed by nuxt-modules/plausible#35 or #5023
Closed
Labels
🤖 aspect: dx Concerns developers' experience with the codebase 🛠 goal: fix Bug fix 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: frontend Related to the Nuxt frontend

Comments

@zackkrida
Copy link
Member

Description

Seemingly related to #4716, analytics events do not log by default in local development or on staging. These logs are the only and ideal way to test introducing new analytics events or making adjustments to existing event payloads.

We need to fix the plausible configuration in our nuxt.config.js file to re-enable logging.

Reproduction

  1. ov just frontend run/dev # ov j f locally
  2. Perform actions (searching, filtering, etc.) that

Screenshots

Environment

  • Device:
  • OS:
  • Browser:
  • Version:
  • Other info:

Additional context

@zackkrida zackkrida added 🟧 priority: high Stalls work on the project or its dependents 🛠 goal: fix Bug fix 🤖 aspect: dx Concerns developers' experience with the codebase 🧱 stack: frontend Related to the Nuxt frontend labels Sep 17, 2024
@obulat
Copy link
Contributor

obulat commented Sep 19, 2024

... and are logged in production :)

The problem is in the upstream plausible library, which reverses the meaning of logIgnoredEvents. I opened a PR for it: Fix logIgnored settings

I'm not sure how long it would take to release the fix, and in the meantime, we can set logIgnoredEvents to true to reverse the logging situation.

@Barbapapazes
Copy link

Hello 👋,

I've updated my package to 0.5.3. I think you can try the fix by installing the dependencies directly.

I've opened a PR (nuxt-modules/plausible#35) in @nuxtjs/plausible package to ask the maintainer to update the package.

@obulat
Copy link
Contributor

obulat commented Oct 4, 2024

Thank you, @Barbapapazes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 aspect: dx Concerns developers' experience with the codebase 🛠 goal: fix Bug fix 🟧 priority: high Stalls work on the project or its dependents 🧱 stack: frontend Related to the Nuxt frontend
Projects
Archived in project
3 participants