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

Changes as of Next.js 14.0.3 break the Plausible script #107

Closed
justrealmilk opened this issue Nov 22, 2023 · 5 comments
Closed

Changes as of Next.js 14.0.3 break the Plausible script #107

justrealmilk opened this issue Nov 22, 2023 · 5 comments

Comments

@justrealmilk
Copy link

I did the whole check version by version thing and it breaks as of .13. So then I looked and found vercel/next.js@797fecb and vercel/next.js#58335

tldr both the plausible script and nextjs overwrite the browser api lol

@4lejandrito
Copy link
Owner

Hi @justrealmilk, thanks for reporting this!

I have tested it and I see the first pageview event is sent properly but subsequent navigations will not trigger new events. Is that what you are seeing?

I think though this is a problem with plausible itself and not with next-plausible since it just includes the official scripts.

@justrealmilk
Copy link
Author

That's what I see yes. Why Plausible? Next.js is what changed 🫤

@4lejandrito
Copy link
Owner

That's what I see yes. Why Plausible? Next.js is what changed 🫤

Well yeah you're right. What I mean is that there is little I can do on next-plausible side to fix this.

Can you report this directly to next?

@4lejandrito
Copy link
Owner

Same as #114 (comment)?

@4lejandrito
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants