All Questions
Tagged with google-analytics reactjs
280 questions
0
votes
1
answer
72
views
How to Disable Enhanced Measurement Events in Google Analytics for a Subdomain?
I'm currently integrating Google Analytics tracking into my application, and I have a specific question about handling different domains.
Domain 1: Website (e.g., https://mywebsite.com)
I want to ...
1
vote
0
answers
54
views
Google Analytics with ReactGA4 how to add e-commerce events?
I cannot figure out the data format used with the ReactGA4 package:
https://www.npmjs.com/package/react-ga4
Google suggest to add many important parameters such as currency, items and prices:
https://...
0
votes
2
answers
372
views
Google Analytics subdomain tracking (GA4)
I am the new one in Google Analytics 4, so I have some (maybe dumb) questions.
I am developing (React.js) website my-app.com and we have a lot of subdomains like test.my-app.com, hello.my-app.com, etc....
0
votes
1
answer
227
views
Filtering dev environment events Google Analytics 4
I'm looking for a solution to be able to automatically filter pageviews from localhost. Ideally I'd like to track developer traffic but I'd like to not have to create custom reports manually to filter ...
0
votes
1
answer
115
views
How to enable Google Analytics DebugView when adding GoogleAnalytics configuration in Next.js 14
I use GoogleAnalytics imported from @next/third-parties/google to include a GA4 property in my Next.js 14.2 webapp.
Unfortunately <GoogleAnalytics gaId="G-MY-ID" /> does not accept a ...
0
votes
0
answers
84
views
How can I setup Google Analytics for my React App?
I'm currently integrating Firebase with my Web React App.
To integrate Google Analytics I was using the Google Tag Manager script on the page header tag, and without any extra configuration, I was ...
0
votes
0
answers
69
views
GTM tags firing in preview mode but events not getting reflected in Google Analytics
I am getting "No google tag found in this container" when I enter measurement id in order to create a new GA4 tag. Is it causing the issue of my tags firing in preview mode but not showing ...
0
votes
0
answers
67
views
Get page views from google analytic 4 in React
I have a react nodejs project and have some products in my site. I setup Google Analytic 4 with package 'react-ga4', Now i simply want to get a number of views for every product. I searched and came ...
0
votes
1
answer
610
views
Remix App - Error: Minified React error #418 / #423 - on Google Analytics gtag script
I have a remix App (SSR). When i add a script for google analytics, it shows an error of hydration in production , especially on line with gtag('js', new Date())
Does anybody know another way to add ...
0
votes
1
answer
84
views
GA Preview Says Tags are Working on Ngrok But Not on Production?
I have a react web app. I installed GA tags using the npm package, react-gtm-module. I put the app up on ngrok and tested it in GA on preview mode. Everything worked great. The Google Analytics tag ...
0
votes
0
answers
135
views
Adding hash for google analytics 4 with react
Does anyone encountered issue with adding hashed value?
Didn't found inside react-ga4 docs how to implement it using ReactGA.initialize().
So far did it with JS by finding script in html head and ...
1
vote
2
answers
1k
views
Google doesn't index react pages [closed]
i have a react app, it is deployed, available and registred at google long ago. Google sees sitemap, pages that are on sitemap are indexed, but all what google sees - is like - so only page before ...
1
vote
1
answer
1k
views
Next.js Script with strategy="worker" does not work for GA
I'm using next.js version 13.5.5.
I tried to load Google Analytics script with next/script worker strategy.
However, it seems to be failed.
I followed the instruction in official document https://...
0
votes
0
answers
234
views
creating a custom event with custom parameters in GA4 using react js
This Post, which helped me to create a custom event with custom params as well in react. I can able to see those parameters in GA realtime and events reports as well. But I had a question create a ...
0
votes
0
answers
92
views
Troubleshooting Google Analytics Integration in a React/Next.js App
I'm encountering issues with setting up Google Analytics in my React/Next.js application. I've created a GoogleAnalytics component as follows:
// GoogleAnalytics.tsx
import Script from "next/...