-
Notifications
You must be signed in to change notification settings - Fork 49
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
Warning: Encountered two children with the same key when enabled alongside Vercel Analytics #400
Comments
Hello @jinsley8 ! I was not aware of this, thanks for bringing it up. Do you think adding a note on the README.md would be useful? |
I haven't checked yet if it works properly on a production site but the warning goes away. I don't see any reason why it wouldn't work so updating the README would be fine. |
I encountered a similar problem where GA worked fine in local development, but when pushed to production on Vercel, no data was ever sent to Google Analytics. I removed the @vercel/analytics dependency, which solved my problem. This works for me as a temporary solution, but ideally I would like to use both analytics tools. |
I don't see any reason for google analytics to fail while vercel analytics is also active, but will do some research to see if I can find something, thanks for bringing this up @wiah . Just in case: "I encountered a similar problem where GA worked fine in local development, but when pushed to production on Vercel, no data was ever sent to Google Analytics.", is the env variable properly set in production? What's your setup? |
As the readme dictates, I set When I incorporated the GA4 script in the head by myself instead of using this package, there was no problem. But when I installed this package and pushed to prod, no data was captured by GA4 in the dashboard. |
I just installed this package in my project, however, if Vercel Analytics is also installed I get the following browser console warning:
If I add a key to
<GoogleAnalytics />
the warning goes away. Not sure if it was something you needed to be aware of.The text was updated successfully, but these errors were encountered: