-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Next 14.1.4 analytics not working anymore #120
Comments
We are experiencing the same thing. Had to disable the proxy and things started working again. But would much prefer having the proxy in place |
If you are hosting on Vercel - you'll need to setup the script and rewrites manually using vercel.json For example {
"rewrites": [
{
"source": "/modules/js/script.js",
"destination": "https://plausible.io/js/script.js"
},
{
"source": "/modules/api/event",
"destination": "https://plausible.io/api/event"
}
]
} And then place the following script tag in the head section of your root layout.tsx <head>
<script
defer
data-domain="yourdomainhere"
data-api="/modules/api/event"
src="/modules/js/script.js"
/>
</head> |
Hey guys I cannot reproduce this. I've set up this page using the app directory and I see the visits in the dashboard. Could you please create a sample reproduction repo, or a link to a site that has this issue so that I can see what's going on? |
Thank you @58bits, this worked for us on Vercel. We installed Plausible for the first time a few days ago. Traffic worked for a few days before suddenly dropping to zero. Deployed this fix and immediately saw reporting again. |
Here's my configuration:
package.json
next.config.json
app/layout.tsx
I implemented the MDX library and had to update the Next version and next-plausible version. Before that, I was getting analytics. Since this update, I don't get any analytics on my dashboard
On one page, I also put a custom event and I don't receive anything either:
page.tsx
Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: