4,563 questions
Best practices
0
votes
1
replies
47
views
Minimum IAM role on target GCP project for GA4 Analytics Admin API CreateBigQueryLink?
We are building a B2B SaaS platform that programmatically creates BigQuery export links from customer GA4 properties to our GCP project using the Analytics Admin API.
API call:
POST https://...
1
vote
0
answers
152
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
72
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, ...
3
votes
1
answer
165
views
The official Chrome documentation recommends exposing api_secret in the client, is this safe?
Looking at the official tutorial on Chrome Developer website for tracking extension usage with Google Analytics, it says that:
The first step is to obtain an api_secret and measurement_id. Follow
the ...
0
votes
0
answers
92
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)....
0
votes
1
answer
115
views
Google Analytics 4 admin - create custom dimensions throws permission exeption. Somtimes
I'm using the Google Analytics Admin API to create properties. My loop goes along, creating properties and custom dimensions, between 3 and 20 properties, then throws an error:
Exception creating ...
1
vote
0
answers
57
views
Hi, I need to export the Audience dimensions using the Google API with Python, but I cannot find anything solid example on the internet
Basically I need to export GA4 data using the Google API(BigQuery is not an option) and in particular, I need to export the dimension userID(Which is traced by our team). Here I can see how to export ...
1
vote
0
answers
82
views
Why do I get incompatible metrics and dimensions, when I apply filters with not_expressions?
I am using the Google Analytics API in python. With this API I want to fetch the number of purchase events per date for a specific product, I can do this as follows:
from google.analytics.data_v1beta....
0
votes
1
answer
175
views
Google analytics 4 data ETL with AWS Glue
I want to import Google analytics4(GA4) data with AWS Glue. So, I created a connector that is datasource(GA4). And then, I'm creating Job which do ETL from connector. By the way, it occured an error ...
-1
votes
1
answer
73
views
How i can export user from GA4 with api
I would like to list users with permssion from account management and property management with api ( including user group but in web. it can selcect Expand all groups to their members. This will allow ...
0
votes
2
answers
372
views
Discrepancies in GA4 and Power BI Data
I am encountering discrepancies between GA4 data and Power BI data despite selecting the same dimensions, metrics, and date range in power bi and GA4 portal.
I used the Google Analytics 2.0 connector ...
1
vote
0
answers
80
views
Incorrect data in GA4 realtime reporting API vs UI
When I use the Google Analytics RealTime API, I get a difference in the data between the API response and the data from the GA4 UI dashboard.
I want to retrieve the active users for the last 30 ...
1
vote
1
answer
142
views
The filter 'does not match regex' match type not working in GA4 API
I am using ga4 api and following is the code which is throwing error:
'AttributeError: DOES_NOT_MATCH_REGEX'
The same filter works on GA analaytics webpage but not here.
def run_ga4_report(...
0
votes
0
answers
53
views
Google Analytics API: How to run a report for AlphaAnalyticsDataClient?
The Issue
I cannot figure out how to run a report in the Google Analytics API for AlphaAnalyticsDataClient Alpha.
There is seemingly no equivalent for client.run_report for Alpha. What would be the ...
1
vote
0
answers
65
views
API query results descrepancy between properties
I download data from multiple properties. When I query the Google Analytics 4 API thusly,
Using an appropriately credentialed JSON key
{
property: "properties/****"
dimensions {name: "...