All Questions
Tagged with google-analytics reactjs
278 questions
1
vote
1
answer
113
views
GoogleTagManager from '@next/third-parties/google' not firing at all
I have this crazy issue with setting up GoogleTagManager in my NextJs project and I can't figure out what the issue is. This is my RootLayout component:
"use client"
import { Amplify } from &...
0
votes
1
answer
99
views
Google Tag Manager - dataLayer has previous value of items for new Event (Next JS App)
I have two Event of GA on same page. First Event works on page view that is view_promotion and second is select_promotion .
for view_promotion, Iam sending data like =>
const items = newItems.map((...
0
votes
1
answer
121
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
84
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
599
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....
1
vote
1
answer
343
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
176
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
110
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
1
answer
780
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
109
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 ...
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
97
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/...
1
vote
0
answers
751
views
Setting up Google Analytics 4 for an Electron App
I'm currently trying to set up some sort of analytics solution for an Electron app that I'm working on. I'm currently leaning toward using a solution like this:
https://www.npmjs.com/package/electron-...
1
vote
0
answers
67
views
Google analytics not collecting all data
I'm using google analytics with react, some features work but a lot of them like getting the screen resolution and operating system data don't, why could that be?