Skip to main content

All Questions

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 ...
Bryan's user avatar
  • 303
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/...
yemy's user avatar
  • 848
0 votes
1 answer
388 views

Define google analytics conversion as a custom event

I have a website that is using an iframe to host a full stack application to handle the custom form on the site. I need the form submission, to be counted as a conversion event and connected to google ...
IvI-NewNez's user avatar
0 votes
0 answers
288 views

Google Analytics react-ga4 returning a 204 but event not tracking

I am trying to log events using react-ga4. After firing an event I get a response. Headers: Request URL: https://www.google-analytics.com/g/collect?.... Request Method:POST Status Code:204 Remote ...
user avatar
0 votes
1 answer
29 views

anchor tags causing page refresh to cancel running functions

I am building a React app using react-router-dom for routing. My header bar uses <a> tags for internal navigation. I am also trying to track some analytic events on the <a> tag click. <...
user avatar
0 votes
0 answers
160 views

"Request had insufficient authentication scopes." Google Analytics Reporting API v4

import React, { useEffect } from "react"; import { gapi } from "gapi-script"; import Login from "./components/login"; export default function App() { useEffect(() =>...
CatalinPCE's user avatar
2 votes
0 answers
555 views

How to Track Individual Users in Google Analytics by using next js

Track individual users in Google Analytics and get a singular view of your customer journeys. If your application or website has a login authentication system, then it is possible to track users in ...
Uswa Nadeem's user avatar
0 votes
1 answer
391 views

Where is my collected data after 30 minutes on inactivity in Google Analytics 4?

I'm writing an app in React and I want to add Google Analytics to can see where are people getting stuck. My app is collecting data correctly, but after 30 minutes all my collected data is gone and ...
SnNaCk's user avatar
  • 2,960
1 vote
0 answers
364 views

How would I defer react-ga4 on load

I have google analytics set up on my MERN application using react-ga4. It works well but is a real hit to my page load speed in production. I want to defer the firing of it but I can't find a method ...
Isaiahm's user avatar
  • 41
1 vote
0 answers
520 views

How do i secure my google tag manager id for my domain

I have integrated google tag manager with my SPA application (ReactJS) const tagManagerArgs = { gtmId: 'GTM-000000' } TagManager.initialize(tagManagerArgs) I believe by inspecting the source ...
coolguy's user avatar
  • 7,954
7 votes
1 answer
2k views

GA4 Google Analytics. gtag.js sends a request with a delay of a few seconds, not instantly

The problem is that a request to Google https://www.google-analytics.com/g/collect? is not sent immediately, but after 3-4 seconds. I looked for a solution in the official documentation from Google, ...
Aleksandra Lando's user avatar
0 votes
0 answers
94 views

Seperate External and Internal Traffic using Google tag Manager

I am trying to seperate different type of traffic for my website based on domain name. For seperating based on domain name I am trying to use react google tag manager. I added react gtm code in app....
alif's user avatar
  • 133
0 votes
2 answers
129 views

ReactGA BrowserRouter Uncaught TypeError: undefined (reading 'pathname') error and/or useLocation error

I try to install Google Analytics, but then my site won't load. I had the error: Uncaught Error: useLocation() may be used only in the context of a <Router> component. So I added <Routes> ...
Spluli's user avatar
  • 69
0 votes
1 answer
1k views

Keeping track of custom events in Google Analytics (React app)

I've been running into some difficulty with Google Analytics and keeping track of some custom events that I've made on a React app, using Firebase to handle GA. The event I'm trying to keep trying to ...
Howakyl's user avatar
  • 21
3 votes
2 answers
791 views

Can anyone help me recreate this exact same request but with GA4 format instead of the UA ID method am currently using?

This is the request am making using the UA method of calling the V3 API, wrapped in a oath library for react. But it's getting deprecated starting June 2023 and I can't figure out how to recreate it ...
Sheru's user avatar
  • 71

15 30 50 per page
1
2 3 4 5
7