21,216 questions
0
votes
1
answer
30
views
The Google Analytics online environment for "@next/third-parties/google" does not run properly
The nextjs project uses Google Analytics, which works fine on localhost, but fails to execute after Docker deployment. The following is a screenshot of the console network.
export default function ...
1
vote
1
answer
25
views
How to Handle Missing events parameter values in DataLayer Without Triggering (not set) in GA4
I’m currently working on pushing ecommerce and non-ecommerce dataLayer events to GTM + GA4 setup.
My goal is to ensure that when event parameter values are unavailable, they appear as empty cells in ...
0
votes
0
answers
30
views
How to Send GA4 Events Without gtag/Tag Manager or Exposing Secret Key?
We are working on an Open Source Chrome extension: Digital Assistant Client
I'm trying to send event and page view data to Google Analytics 4 (GA4) without using the gtag.js script or Google Tag ...
0
votes
0
answers
74
views
Google Analytics not sending different pages aside from home page in ReactJS(Vite)
I'm using react-ga4 for my [portfolio[(https://vicentereyes.org). I have a PageViewTracker.jsx which has:
import { useEffect } from 'react';
import { useLocation } from 'react-router-dom';
import { ...
0
votes
1
answer
92
views
How to track screen views in Jetpack Compose using Google Analytics?
In the previous XML-based Android development, it was relatively straightforward to track screen views in Google Analytics by using separate activities for each screen.
Now that I’m using Jetpack ...
0
votes
0
answers
37
views
Cookie consent update - not adding GA cookies back to browser in MVC
I am having the option to update the cookie consent of user when browse my site.
Also, I have implemented the Google Analytics in my site.
These GA cookies are non-essential cookies.
When I accept the ...
0
votes
0
answers
41
views
In GA4 API, how do you get page referral information? All queries are coming up null
What I'm trying to do:
I want to query GA4 to get a matrix of the top 1000 pages that match a specific regex, which is this:
r"^/page/[a-zA-Z]+$"
I have run other queries with this regex, ...
0
votes
1
answer
52
views
Is there a way to check which action triggers event in GA4?
I'm relatively new to GA4 and I made this simple table with 'Page path and screen class' and 'Event name' as rows, 'Event count' as values. There is a bunch of events with mostly clear names, but I ...
0
votes
0
answers
49
views
Drop in GA4 default events when migrating the front-end from Rails to NextJS
We have recently migrated our E-commerce application's front-end from Rails driven views to NextJS. We are using Google Analytics4 to send analytics data.
The issue I am facing is, after migrating to ...
0
votes
0
answers
78
views
The official Chrome documentation recommends exposing api_secret in the client, is this safe?
Looking at the official tutorial on Chrome Developer website, it says that:
The first step is to obtain an api_secret and measurement_id. Follow
the Measurement Protocol documentation for how to get ...
0
votes
0
answers
30
views
Unable to see screen name in User Activity in GA4
I'm trying to analyze user activity in user explorer in GA4.
I'm sending custom events in android via:
bundle.putString(com.google.firebase.analytics.FirebaseAnalytics.Param.SCREEN_NAME, ...
0
votes
1
answer
85
views
django-minify-html breaks Google Analytics injection
I'm running into an issue and would appreciate some pointers. I have a production Django app where I included Google Analytics using a context processor and conditionally render it in my base.html ...
0
votes
2
answers
89
views
GA4 Measurement Protocol purchase event not appearing in DebugView when sent from backend using stored _ga client_id
I'm trying to send a purchase event to Google Analytics 4 using the Measurement Protocol from my Laravel backend. I'm not using gtag.js or Firebase — only server-side requests.
Here’s what I’m doing:
...
0
votes
4
answers
277
views
Enhanced Conversions Missing from GA4 Tag in Tag Manager
I seem to be missing the “Include user-provided data from website” option in my web GTM GA4 event tag. Other past checkboxes have disappeared too. Checking other Google Tag Manager containers, too, ...
0
votes
0
answers
55
views
Discrepancy in GA4 Event Count Between UI and Data API
I'm using the Google Analytics Data API v1beta to pull campaign-wise key events from my GA4 property, specifically tracking a custom event called Phone_Number_Click (configured via Google Tag Manager)....