Questions tagged [google-analytics-api]
A set of APIs for building custom reporting solutions and programmatically managing existing Google Analytics accounts and users.
google-analytics-api
4,349
questions
0
votes
0
answers
8
views
Funnel Report GA4 Filter on pagePath Using Google Analytics API
I am working with the Google Analytics API to generate a funnel report, but I am running into an issue when trying to filter on pagePath. I believe I am setting up my filters correctly, the report ...
0
votes
0
answers
22
views
Get list of date dimensions in chronological order
I would like to get a list of views (any metric really) using the google analytics API.
I used the metrics for screenPageViews and the dimension date.
I do get the metrics, but they are not in ...
0
votes
0
answers
42
views
Google Analytics returns 500 when creating new access bindings for service accounts
Google analytics returns status code 500 when trying to add a new service account email.
Content-Type: application/http
Content-ID: <response-batch<id>@googleapis.com>
HTTP/1.1 500 ...
0
votes
0
answers
27
views
Automatic funnel generation using data from the GA4 API
I'm working on a solution that will be able to generate one funnel and its steps automatically based on certain criteria. This would be done through the GA4 API on GCP and have the data returned to be ...
0
votes
0
answers
29
views
Data retrieval for GA3 API is cut: it returns data only up to certain date for certain combinations of dimensions and metrics
I am trying to download data from Universal Analytics (GA3) with the API.
I have downloaded different datasets, with different combinations of dimensions and metrics, in order to have a backup now ...
0
votes
0
answers
24
views
How to exclude users when eventName exactly matches {event name} at any point in time using API?
I am using BetaAnalyticsDataClient with python, and unable to filter users that have done this event out from the data. I have been able to download the full data OR users that have done this event ...
0
votes
0
answers
20
views
Connecting to Google Analytics 4 with C# .NET Core desktop app - use database field contents instead of .json file
I have a C# / .NET Core desktop app that connects fine to Google Analytics 4 using the Google.Analytics.Data.V1Beta package. I have a .json file that Google created so I can access Google Analytics ...
1
vote
0
answers
69
views
"@google-analytics/data": "^4.x.x" add metricAggregations array. Throw error "Cannot serialize object to proto3 JSON since its .$type is unknown."
I'm using "@google-analytics/data": "^4.7.0" to request ga report, in the request array, I add some payloads which can be mocked by GA4 query explorer, payloads are like dateRanges,...
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
25
views
Inconsistent results in Google data API (GA4)
First I will explain what i try to do:
I need to know how many visitors has visited at least two articles from a given set of articles (rather at least two articles in each issue printed). This could ...
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/...
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
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
62
views
Issues passing params to BetaAnalyticsDataClient() function in Python (google.analytics.data_v1beta library) - Service Account
I have written a very simple piece of code in python for use in an azure function. It is meant to use my service account creds to run a report in google analytics 4 and return the results in JSON.
As ...