Questions tagged [google-analytics-api]
A set of APIs for building custom reporting solutions and programmatically managing existing Google Analytics accounts and users.
3,986
questions
0
votes
0
answers
10
views
google analytics API throwing 500 error for production its working fine for local it was previously working for production
getting 500 error from backend previously it was working fine
I have already checked tracking id, view id, metrics all details are correct .p12 file
0
votes
0
answers
41
views
Google Analytics 4 BigQuery Link: Event exclusion doesn't work
Problem:
Data Stream configuration (exclusion events) doesn't work. Datastream was configured on 20220621. Even though daily limit is applied. Screenshot shows date and number of usage for one event. ...
0
votes
1
answer
27
views
Some Dimensions Cause Empty Response for GA4 runReport API
I believe this is a regression and used to work, but when I make queries against the GA4 RunReport API and request data which includes the dimensions "source", "medium" or "...
0
votes
0
answers
22
views
After implementing GA API for purchase data, traffic transactions now attributed only to direct traffic
After implementing GA API (was following https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide docs) for purchase data (request example), traffic transactions are ...
0
votes
0
answers
12
views
Google Universal analytics API will continue to work after 1 July 2023 with the arrival of GA4?
Google has recently announced that Universal Analytics will be replaced by Google Analytics 4. From 1 July 2023 the standard Universal Analytics properties will stop processing data, extending the end ...
0
votes
0
answers
20
views
Redirect URL opens in iframe in TOS page during provisioning of Google Analytics account using Admin API
I am using Google Analytics Admin API to provision accounts for connected clients as described in docs. When I accept ToS, the redirect URL opens in an iframe in the ToS page instead of a full ...
1
vote
0
answers
21
views
Is it possible to get the list of pages and devices in a single GA4 v1beta request?
I'm having to make 2 runRealtimeReport requests, one to get the device category and another to get the list of the most accessed pages.
What I would like to get is the general amount of hits to the ...
0
votes
0
answers
26
views
What's the difference between "NewVsReturning" in GA4API and "New / established" in GA4Explorations?
Problem
when I tried to compare whether GA4API and GA4Explorations(Free-from) data is the same .
but I found out that "NewVsReturning" in GA4API and "New / established" may be ...
1
vote
1
answer
65
views
How to use multiple filters with Google Analytics Data API (GA4) using PHP
So this will be my first question here, and I'll do my best to follow rules of the community.
I'm trying to use multiple filters in the Google Analytics Data API (GA4) using PHP. I have successfully ...
-1
votes
0
answers
34
views
Export users and permissions of all google analytics properties with Apps script
I would like to be able to automate with script apps to extract from each property that I have the users and the permissions they have regarding the property, administrator, editor, reader, etc...
I ...
1
vote
1
answer
33
views
What is the API end point to get click count of CM360 ads?
My google analytics and google CM360 is integrated and I want to get click count of each ads. Is there any google CM360 API or google analytics API to get CM360 click count of ad?
0
votes
0
answers
42
views
Google Analytics 4 - Event issues with item lists
I've been working on a GA4 integration (GA4 API link) on a website and I'm running into a few issues. The main one is that any request containing an item list doesn't show up in the debug view unless ...
0
votes
0
answers
33
views
Google Analytics API JS quickstart example not working
I am trying to make a functional connection to GA API according to the official docs - https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/web-js. I did everything needed to ...
-1
votes
0
answers
28
views
How I Know the users who using my google data studio dashboards?
I have multiple dashboards with google data studio and want to know the emails/users who using my dashboard
0
votes
0
answers
14
views
*google-analytics-api* How to have weekly updated data be inserted into a new column on a separate sheet?
I'm currently using the Google Analytics API in order to gather user traffic metrics. On the Google Sheet, I'm interested in finding a way to place the pulled data onto a weekly updating table so that ...
0
votes
0
answers
25
views
I can't able to track redirect external urls from my LWC Component in community portal in salesforce using google analytics
I'm using google analytics to track the external url that was redirect from my custom component in the community page in salesforce
community is built in lightning web runtime frame work, in that ...
0
votes
1
answer
17
views
2 dimensional Request on Google Analytics API (adveronix-like)
I am trying to get the same data from an Adveronix spreadsheets report
using Google Analytics Python API.
So far I can get all data except for the Account Column (just picture the above table without ...
0
votes
0
answers
21
views
GA Measurement Protocol do not track events with ecommerce params
For some reason GA does not track events that contain ecommerce params:
fetch(
`https://www.google-analytics.com/mp/collect?measurement_id=${measurement_id}&api_secret=${api_secret}`,
{
...
0
votes
0
answers
7
views
Working With Google Analytics Ad-On in Google Sheets
first question here.
I am working with the Google Analytics Ad-on to create custom reports. I create reports with a specified view ID, and then use those reports to create a master report in a ...
-3
votes
0
answers
25
views
How will I fetch ClickIDs and Adsense revenue through google analytics API by google/apiclient SDK package? [closed]
I am using https://github.com/googleapis/google-api-php-client for calling Google Analytics API and I need to fetch ClickIDs and Adsense revenue of particular site. Please help me out on this.Thanks.
0
votes
0
answers
27
views
GA4 accounts not listed in Python
I want to list GA4 accounts in Python. But first, the user needs to connect Google Analytics account. Then I want to list the accounts with google.analytics.admin. How should I go about this?
I ...
0
votes
1
answer
51
views
How to filter results by app Id while using Google Analytics Data API (GA4)
I'm using Google Analytics Data API (GA4) to fetch metrics from Firebase Analytics. Now I want to filter my metrics by app (website 1 or website 2 or iOS), something like what we are presented in the ...
0
votes
0
answers
25
views
How to automatically Import Cost Data into Google Analytics 4 (GA4)
in Universal Google Analytics, I was able to import cost data via https://script.google.com.
I looked for a solutions also for GA4 but couldnt find.
Can you help find a solution for the GA4?
0
votes
1
answer
54
views
MISMATCH GA4 / GOOGLE ADS
During the phase of tracking we recognised a mismatch related to some data between GA4 and Google ADS. To be more clear the problem is related to the number of conversions recorded in GA4 and Google ...
0
votes
2
answers
83
views
Google Application Credentials Python (Jupyter Notebook)
I'm trying to start using Google Analytics API 4 as instructed with Python and Jupyter Notebook. I follow the instructions https://developers.google.com/analytics/devguides/reporting/data/v1/...
0
votes
0
answers
20
views
Google Analytics API v4 filter by State
I understand you can filter the results based on country or city, but is anyone aware of how to do this to filter by USA state? Or a workaround of some kind?
This is how I currently limit by country.
$...
0
votes
0
answers
39
views
firebase API add analytics through service account 403 permission error
I have a service account that has successfully made calls to both firebase API and google analytics v4 admin API.
It can create analytics v4 properties through the analytics admin API, but from ...
0
votes
0
answers
19
views
What are all the items that match 'sessionDefaultChannelGrouping' in GoogleAnalyticsDataAPI(GA4)?
Problem
I'd like to know what all items does sessionDefaultChannelGrouping includes in GA4 API.
Details
In API Dimensions & Metrics (which is published with the GA4 API),
...
0
votes
0
answers
22
views
Analytics Measurement Protocol "Document location URL" parameter (dl) Question
I have a couple of questions about the "Document location URL" parameter (dl) of the Measurement Protocol (Universal Analytics) (see https://developers.google.com/analytics/devguides/...
0
votes
0
answers
70
views
How do I get user activity data from the Google API
I want to retrieve user activity data using the Google Analytics Reporting API. I code in PHP (not that it's relevant to this question)
I am following instructions from here: https://developers.google....
0
votes
0
answers
63
views
How to solve "BetaAnalyticsDataClient cannot be resolved"?
I tried sample source at Google Analytics Data API (GA4), there is code as below:
import com.google.analytics.data.v1beta.BetaAnalyticsDataClient;
....
try (BetaAnalyticsDataClient analyticsData = ...
1
vote
0
answers
21
views
How to export / import funnel reports in Admin API for GA4?
i need to setup 100 funnel reports for GA4 on testing and production enviroment (separate properties). Is there a way how to use Admin API to import / export these?
Is there a way how to do this, or i ...
1
vote
0
answers
44
views
sessions before September 2021 changed to zero
I've been getting monthly access data(users, sessions, pageviews) for a GA4 property by using Google Analytics Data API beta.
Yesterday, I got data with zero sessions before September 2021.
When I get ...
1
vote
0
answers
46
views
Creating a report with GA4 data API and using segments
I understand that GA4 data API does not support segments yet. I read that you can imitate a segment using audiences. In my code, I create a new dimension 'audienceName', however, it only returns 'All ...
0
votes
0
answers
15
views
Inconsistent Traffic metrics with no change in API - DOMO connector
I have a traffic connector in DOMO that pulls metrics. Despite no change to the connector/api, there are instances where I get doubled metrics coming through for 1 or 2 days each week before ...
-1
votes
1
answer
64
views
How do I create audiences in Google Analytics 4 using an API?
Google Analytics 4 allows new custom audiences to be created:
I want to do this programmatically through a web API, but I can't see any documentation. Is it possible to create audiences in Google ...
0
votes
1
answer
42
views
Google Analytics Data API: missing flag for identifying `golden` data
I've been using such API for generating reports over Google Analytics:
https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet
This API has result field ...
0
votes
0
answers
46
views
How to get list all Client ID from Google Analytics API using the Python?
I need to get a list with all Client ID. How to create a request using library gaapi4py or google-api-python-client
0
votes
0
answers
29
views
Inserting and updating Custom Dimensions using Google Analytics Management API v3
I am using Google Analytics API to insert a custom dimension. I have set up the required Oauth2 credentials and obtained an access token and a refresh token. However, when I called my function that ...
0
votes
0
answers
32
views
How to get demographics from Google Analytics Universal via Server Side Tracking
A few months ago we switched from JavaScript to Server Side Tracking (SST), using the following information and code:
https://developers.google.com/analytics/devguides/collection/protocol/v1/...
2
votes
1
answer
68
views
Google Analytics Reporting API (UA) for GA360 account limit 10000 rows?
I'm using Google Analytics Reporting API (UA vs4) for a GA 360 client and getting up to 10,000 rows per API call.
Pagination (with pageToken) is used, but it doesn't help to get around this limit. The ...
0
votes
0
answers
41
views
Google analytics UserId view is not working with react
I want to track users by their login ID in a ReactJS application. I followed all of the tutorials on the documentation to set up the User Id View. I enabled userId tracking in google analytics and I'...
1
vote
1
answer
55
views
Some trouble with Google Analytics API
I try to get some data from my account Google Analytics to display it on dashboard.
I have already tried two path:
PHP quickstart for web applications
By instructions on Hello Analytics Reporting API ...
1
vote
0
answers
39
views
Could not import "google.golang.org/appengine/delay"
I am trying to create a Google analytics tracking beacon by following this git repo have gotten stuck trying to solve why this one import keeps throwing errors.
The specific issue comes from this ...
0
votes
0
answers
43
views
Can I even connect client-side JavaScript to google-analytics API?
I have been researching the google analytics api (GA4) for the past day. And I want to be able to use GA4 api functions like runReport on the client-side. There is a piece of analytics that I want ...
1
vote
1
answer
126
views
Can GA4-API fetch the data from requests made with a combination of minute and region and sessions?
Problem
With UA, I was able to get the number of sessions per region per minute (a combination of minute, region, and sessions), but is this not possible with GA4?
If not, is there any plan to support ...
1
vote
1
answer
124
views
How to query data via a .netcore app from Google Analytics V4
I found a lot of examples online regarding the topic, but apparently Google have switched to a new way of presenting the data in Google Analytics.
In their V4 (for which I guess there is a nuget ...
0
votes
1
answer
35
views
Screen views and screen/Session is not working - How to fix it
Real time I am able to see but screen views and screen/session is zero.
1
vote
1
answer
43
views
Best way to wrangle json data to remove field labels
I am looking to try make it easier to use the Google Analytics data in Google sheets.
The outputs that I receive from the api look like :
[
{
"dimensionValues": [
{
&...
1
vote
1
answer
59
views
How do I add a metric name to MetricOrderBy when using Google.Analytics.Data.V1Beta?
I am writing come code in c# with Visual Studio 2022 to fetch Google G4 analytics data and cannot get one piece to work correctly. It is the part where a create an "OrderBy" list for the &...