All Questions
Tagged with google-analytics google-api
426 questions
0
votes
0
answers
67
views
Get page views from google analytic 4 in React
I have a react nodejs project and have some products in my site. I setup Google Analytic 4 with package 'react-ga4', Now i simply want to get a number of views for every product. I searched and came ...
0
votes
1
answer
322
views
Access Google Analytics API with OAuth credentials
I am attempting to use the Analytics Data API from a node project
The API is accessed using the BetaAnalyticsDataClient
I can find examples of using the client with a service account but not with ...
0
votes
0
answers
54
views
Google Analytics Data Api (GA4) Get Transccation with depended infromation
we are moved to GA4 and now i'm trying to get data from GA4, but i cant move some part of code
$filters = ['dimensions' => 'ga:transactionId,ga:deviceCategory,ga:channelGrouping'];
...
0
votes
0
answers
130
views
Manage user permission Google Analytics API v3
I'm using the Google Analytics API to add users to a Google Analytics account.
I'm using the following POST endpoint to do so.
https://www.googleapis.com/analytics/v3/management/accounts/${accountID}/...
1
vote
0
answers
616
views
PHP Google Analytics Data API V1 (Beta) (GA4) : BetaAnalyticsDataGapicClient::runReport() must be of the type array
I am trying to fetch data from G4A using this guide:
https://github.com/GoogleCloudPlatform/php-docs-samples/blob/main/analyticsdata/quickstart.php
Here is my code:
use Google\Analytics\Data\V1beta\...
0
votes
2
answers
957
views
Google Analytics Data API (GA4) Setup - Unable to Read Credential File Despite Correct Path
I have been facing a persistent issue while trying to set up the Google Analytics Data API (GA4) using the quickstart guide provided by Google (quickstart guide).
The specific problem arises when I'm ...
1
vote
1
answer
160
views
Google Analytics API createProperty() missing array args
I am working with the Google Cloud PHP API. I am hooked up and everything works great when pulling admin info like accounts and properties.
I am trying to create a basic property within an account ...
3
votes
2
answers
2k
views
Google Analytics 4 - simple example of service account API usage in Java?
I've spent a few days trying to get an example of how to do the above - use a service account to non-interactively get Google Analytics metrics using the GA4 API from Java.
The official example at
...
0
votes
1
answer
903
views
Error Message "User does not have sufficient permissions for this profile" while Executing Google Analytics API Code
Hello StackOverflow community,
I am currently working on implementing the Google Analytics API in PHP using the example code provided in this link: https://developers.google.com/analytics/devguides/...
0
votes
0
answers
60
views
Can not get "setPropertyId" in "Google_Service_AnalyticsReporting_ReportRequest"
I have a GA4 account and propertyId created, I have created the service account and got the JSON file also.
I am implementing a code in which I want to get the Google Analytics data for my PHP ...
0
votes
1
answer
788
views
Is there a way to access GA4 data with PHP without composer?
Before GA4, I was able to get page views from UA via the old google api. That worked great. After we switched to GA4 though, we are no longer seeing new page views.
It's my understanding I have to ...
-1
votes
1
answer
154
views
how to get all the keywords searched by users on google to come to your website through google analytics v4?
I want to get keywords listing that users searched through google search.
To track the keywords searched by users on Google and have them appear in your website's Google Analytics (GA) data, you'll ...
0
votes
1
answer
262
views
google analytic 4 (ga4) return Invalid JSON payload
I'm trying get data from google analytics api 4 (ga4), I send the request in postmen:
my url:
https://analyticsreporting.googleapis.com/v4/reports:batchGet
method: POST
body:
{
"...
0
votes
2
answers
617
views
Google Analytics Reporting v4 with streams instead of views
I've just created a new Google Analytics property and it now defaults to data streams instead of views.
I had some code that was fetching reports through the API that I now need to updated to work ...
0
votes
0
answers
51
views
How to get Uinversal Analytics sales performance report using Google API (Node js)
I am trying to automate the UA (Universal Analytics) Ecommerce- sales Performance Report using Google API
But i could not find the API for that can any help with this
Need Ecommerce- sales Performance ...