Questions tagged [google-analytics]
Google Analytics is a free web analytics solution that uses JavaScript to send data. Use for questions only about implementing the JavaScript portion. Questions related to Google Analytics data or usage should be submitted to https://webapps.stackexchange.com/
google-analytics
21,571
questions
1
vote
2
answers
76
views
GA4 measurement protocol event attribution, not working with event one week later?
I have GA4 running on my site, and in my backend I store the user's client_id and session_id. With measurement protocol on our backend, I send a custom trial started event when a user starts their ...
0
votes
2
answers
63
views
How to retrieve Purchase Conversion Rate in Google Analytics 4?
I want to build an API to retrieve the Conversion Rates of Purchases via Google Analytics 4. (I understand after reading blogs these are now called 'Key Events')
I am new to GA4 so learning as I go.
...
0
votes
0
answers
27
views
GA4 changing values to numeric changes the values
Bascially, i have a code that filters the data coming from the API. The data is reasonable, however, the values of the active Users are in string format. Once I changed them (to integers), my max ...
0
votes
0
answers
41
views
How to see Custom Events in GA4 User Activity
I have set up GA4 for my website and used Google Tag Manager to create events and triggers. The tags are all firing and I can see event counts for these custom events in the Google Analytics Dashboard ...
0
votes
0
answers
24
views
Big Query export not able to exclude Events
I have configured a BQ export to get app_remove event and exclude all.
But the firebase_campaign event is not getting filtered to be excluded. I have even excluded the same by specifying the event by ...
0
votes
0
answers
37
views
How do I grant a service account permissions to the Google Analytics Admin API?
What is this doing? It creates a new project and a service account json key for me? How is it granting the service account access to the API?: https://developers.google.com/analytics/devguides/config/...
-1
votes
1
answer
37
views
See keywords used by Google Ads campaign on Google analytics or Googe Ads dashboard
Is it possible to see the keywords taped by the users that triggered the display of the Google Ads?
I have created some "intelligent" campaigns, that kind of campaign lets Google choose the ...
0
votes
1
answer
24
views
UTM for a regular newsletter to my website
I need a link with a UTM to my website, which needs to go into another company's regular newsletter.
(lets say the other company's name is earthco)
Earthco's newsletter is created every month, and is ...
0
votes
0
answers
30
views
Tracking First-Time (or n-time) Activation Events in Mixpanel
I am using Mixpanel to track user interactions with our app, specifically focusing on three events: Message Sent, Add Contact, and Payment Generated.
I have defined an "Activated User" as a ...
0
votes
0
answers
29
views
How can I use a different google analytics account on select pages on my Angular Application?
My application is a conference planning SaaS platform. The front end is written in angular 15. We have google analytics at the global level (index.html) and it works great. All the page views are ...
0
votes
0
answers
58
views
How to setup Google Analytics 4 with Quasar SPA Vuejs app
Having a hard time finding documentation or resources on setup of GA4 tracking for Vuejs 3 Quasar based app using typescript.
Would be nice to figure out how to setup vue-gtag package with it.
If ...
1
vote
0
answers
117
views
How does GA4 deal with page unloads? Batching vs. Beacon API seems to prevent final events event being sent
This has been bothering me for a while, I think the problem is this:
GA4 uses batching, i.e. a 5 second buffer to collect any events before making a network request.
GA4 also uses the Beacon API i.e....
0
votes
1
answer
140
views
Google Tag manager - sending a custom event to multile tags
New to google tag manager, I have just moved my ga4 tags to it and I have the following set up, intentionally under 1 container.
mydomain.com (gtag 1)
site2.mydomain.com (gtag 2)
I am using a lookup ...
0
votes
1
answer
34
views
Sending data to GA4 from the server (return 200 but no data)
I try to send product payment data to google analytics from the server, in response I get a status of 200, but in google analytics itself neither in normal events nor in debug view, I don't see my ...
0
votes
0
answers
24
views
how can I see event parameter in user explorer?
I integrated GA4 and Google Tag Manager in my website, I created new custom even in google tag manager for viewing the page and clicking any button and I added Event parameter to them
now, when I ...
0
votes
2
answers
87
views
Which schema / table structure should I use to back up Google Analytics (UA) data to BigQuery?
We've written a JAVA application that pulls data from the Google Analytics API and pushes all client data into this BigQuery table (see current schema). We are then using Materialized views in our ...
1
vote
1
answer
39
views
angular Google Analytics gtag config fires only at the first page
In an Angular app, I have an event router subscription to track page changes but the "collect" network call is only fired on the first time the gtag is triggered.
in my Index.html:
<!-- ...
1
vote
0
answers
48
views
How to solve grpc error in fetching data from GA4 API (google-analytics-data api) by python
I am using this code snippet to get data from GA4:
credentials = service_account.Credentials.from_service_account_info(self.credential_info)
client = BetaAnalyticsDataAsyncClient(credentials=...
0
votes
0
answers
39
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
27
views
Parameter 'debug_mode' disappeared when sending custom event to Google Analytics through Measurement Protocol
I'm trying to send custom event to Google Analytics from backend Python code, I don't know if this is the correct way but it did work. Here is the Python code I used:
import requests
import json
...
0
votes
1
answer
58
views
Custom predefined date range Google Looker studio
At the moment I'm building a dashboard in Looker studio to analyse the efficiency of a process which mainly involves website interactions. This process happens 6 times a year in date ranges of two ...
0
votes
0
answers
34
views
Google Analytics 4 no items showing in purchases
I am sending the following events to Google Analytics 4:
gtag("event", "begin_checkout", {
currency: "USD",
value: 30.03,
coupon: "SUMMER_FUN",
items: [
...
0
votes
1
answer
57
views
I am facing an issue with Google Analytics; it seems to be showing fake traffic
Hi I have wordpress website
I am facing an issue with Google Analytics; it seems to be showing fake traffic. I checked on the search console as well, but it is showing me different traffic numbers, ...
0
votes
0
answers
49
views
Realtime events are not appearing using Google analytics Measurement Protocol
They are sent by Measurement Protocol via https://www.google-analytics.com/mp/collect POST request. Receiving 204 OK, no error, however events are not appearing in GA4.
Have also tried https://ga-dev-...
0
votes
1
answer
43
views
Track events happening within a external website iframe embedded into my website
The website which hosts the iframe is mysite.com. The iframe source is othersite.com. I have code/admin access to both websites.
This is how the iframe added to mysite.com
<iframe src="https://...
0
votes
1
answer
60
views
Will GTM get messed up if users push data to the data layer at the same time?
When using Google Tag Manager with a data layer variable ('payment_type'), if multiple users on different devices push data to the data layer simultaneously with different values, could this lead to ...
0
votes
0
answers
21
views
Apply an Event Label Filter to the Product Revenue metric in GBQ using Universal GA Data in Looker
I've got an event cat/action/label filter for my Authenticated vs Non-Authenticated users (written into the data layer and working in Universal Analytics) and I am trying to apply it to the product ...
0
votes
0
answers
59
views
BigQuery user_pseudo_id strange format
I know that user_pseudo_id format in BigQuery is usually 123456.654321. However, I found user_pseudo_ids like this one: zzlrlIWWmuO2pGInTOt8ayOT3Gq7LXiyD7jU4ayH+4M=.1835253951.
I am testing server-...
0
votes
0
answers
38
views
Handling Google Analytics Data Exceeding 10,000 Rows per Day: Pagination and Dimension Filtering Challenges with google.analytics.data_v1beta API"
I'm using the google.analytics.data_v1beta API to access Google Analytics data. I'm facing an issue with the 10,000-row limit per query, whereas I need to handle more than 10,000 rows per day.
...
0
votes
1
answer
40
views
Can the 'view_item' Event in GA4 Generate Revenue?
I have a view_item event on my page, and I am wondering if this event will generate a revenue amount. Based on the structure of the data layer, it includes currency and a value, but inside the GA4 ...
0
votes
1
answer
79
views
Google Analytics 4 API sampling level parameter?
Google Analytics UA v3 and v4 APIs had the samplingLevel parameter https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet#sampling
I cannot locate the same for ...
0
votes
0
answers
31
views
Google Analytics GA4 accounts access from a web application service account
I have a PHP web app that creates Google Analytics GA4 reports.
The app is not retrieving all google GA4 accounts that are listed into analytics dashboard.
I am using Google Analytics Admin for PHP ...
0
votes
0
answers
26
views
INFORMATION_SCHEMA.PARTITIONS query very slow
I am using BigQuery to access Google Analytics 4 data. I need to have a list of all days available and I need the number of records for each day.
I know that PARTITIONS query is still preview but I ...
0
votes
1
answer
41
views
How to collect user ID's?
I am trying to collect user ID's for google analytics tracking, but am confused on discrepancy between articles I found.
This article (https://www.analyticsmania.com/post/google-analytics-4-user-id/) ...
0
votes
2
answers
36
views
Google analytics exporting numbers
I am exporting a report from Google analytics. The numbers for example for users
is shown as 10,907,302 in the report and when I do an export to a csv file it is shown
as "10,907,302". I did ...
0
votes
1
answer
91
views
How to set consent properly in Firabse sdk for Unity?
I'm using Firebase analytics and crashlytics in Unity.
Anyone got an example of how to properly implement the consent flow?
If I'm using cmp (google ump), can I use it for firabase consent?
Tried to ...
3
votes
0
answers
195
views
GA property access management : Can’t add service account
2nd imagehere’s the image I’ve been trying to add a service account and assign role in my Google analytics property access management, but when I enter the email and select the role it says Failed to ...
0
votes
0
answers
26
views
Universal Analytics v4 API | Load two dimensions merge with a one query
I'm integrating an API for loading data from the Google Analytics Reporting API v4.
Here, I need to find the transaction count based on 'ga:medium' and 'ga:pagePath.'
For example, let's say I have 10 ...
0
votes
0
answers
40
views
Server Side Tagging for Google Tag Manager Android
I am trying to implement server side tagging for an android app by following the instructions in section 3 of this link: https://developers.google.com/tag-platform/tag-manager/server-side/send-data?...
5
votes
1
answer
2k
views
Updating Firebase Analytics for Flutter to avoid privacy manifest policy issues (after May 1, 2024)
I recently received a notification on Firebase recommending an update to the Google Analytics for Firebase (GA4F) iOS SDK (version 10.24.0 or later) to avoid potential issues related to privacy ...
0
votes
0
answers
23
views
Revenue not showing for custom purchase event
I have made a new custom event called 'sales_from_chat' and marked it as a key event. I am firing this event instead of 'purchase' if purchase is being made through chat bot on the website. Following ...
0
votes
0
answers
25
views
GA4 custom event has not been triggered consistently
We have used custom event to send data to GA4 and we configured GA4 to BigQuery data link. We have found two problems:
-Events are shown with the same event_timestamp in spite of they have actually ...
0
votes
0
answers
67
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
53
views
Sending Object as custom parameter in the custom GA4 event
Is it possible to pass Object in the custom parameter of the event? (Web Container in Tag Manager)
Right now in the Tagging Server I receive something like [Object object] instead of a proper JSON ...
-1
votes
1
answer
25
views
Creating 3 Output Bins In Loops And Range
I'm new to Data analytics, and i'm trying to create an output of 3 bins in python. I'll have my code attached below. I my getting an output, but its not in 3 bins. Also the bins are as follows:
...
2
votes
1
answer
3k
views
What version of the Google Analytics for Firebase iOS SDK is used in the latest Xamarin.Firebase.iOS.Analytics nuget package?
I received a notification on Firebase saying:
Action Recommended: Update the Google Analytics for Firebase (GA4F) iOS SDK
Update to version 10.24.0 or later to avoid potential impact resulting from ...
0
votes
0
answers
145
views
Page reload due to Cookie Consent banner causing loss of inital taffic source in google analytics
Once user accepts cookie (onetrust) we are reloading the page (with window.location.reload()) to make sure everything works fine.
But this page reload is causing issue in google analytics as the page ...
0
votes
0
answers
30
views
Object add no showing to event add_to_cart
i trying integrate Woocommerce with Google Tag Manager, Google Analytics and Google ADS.
When i try configurate add_to_cart event, i don't know because no show this object "add" in my ...
0
votes
0
answers
209
views
Google BigQuery Analytics Hub exchange vs Data Clean room
I have been exploring Analytics Hub exchanges and Data clean rooms in google big query. From the docs:
BigQuery data clean rooms are built on the Analytics Hub platform. While standard Analytics Hub ...
0
votes
1
answer
107
views
Analytics is disabled. Event not logged - Ionic Cordova firebasex
I have invested so much time trying to integrate firebase analytics with my app.
first I discovered that google analytics is deprecated and I should use firebase analytics. so I decided to go with ...