Skip to main content

All Questions

0 votes
0 answers
106 views

Detect duplicate GA4 page views in google sheet via appscript?

Overview I am building an application where I want to check for duplicate ga4 page view codes for a client's websites via app script. Once the data is retrieved, I want to paste this data into my ...
Arif Ahmed's user avatar
0 votes
1 answer
63 views

How to combine values from different arrays of object into an array

I want to capture the parameter Unassigned with value 64314 from the API output. My objective is to capture this information in an array such as ['Unassigned',64314] I used this for-in loop to achieve ...
Arif Ahmed's user avatar
1 vote
0 answers
98 views

Unable to debug the C# code to call API for google analytics data GA4

I am trying to debug the below code using the SSIS script task but every time it is getting failed with the generic error "Exception has been thrown by the target of an invocation.". I am ...
DUSHYANT KUMAR Singh's user avatar
0 votes
1 answer
431 views

Loop not working while pulling data from a Google Analytics 4 API - App Script (overcome 10K of rows limit)

I'm trying to retrieve data from a google analytics account. So far, the app script code is working. function runReport(sheetName, dimensionArr, metricArr, startDate, endDate, filters) { let ...
Herman K's user avatar
1 vote
1 answer
92 views

GA4 Admin API for data retention method via Google App Script not working?

I am unable to pull data retention settings from GA4 Admin API via Google App Script. I am using the below code. I am using this documentation. function getDataRetention() { var data = AnalyticsAdmin....
Arif Ahmed's user avatar
0 votes
0 answers
241 views

Google Analytics Data API script not working on google scripts

I am writing a script to export events with a certain name from GA and into Google Sheets, but I am running into an issue every time. All the time I am getting the Info Failed with error: undefined ...
Vedran Korponajic's user avatar
0 votes
0 answers
151 views

Script to "click" on a drawn button on a Google Sheet for Analytics v4 Report?

I have a Google Sheets Apps Script question related to an extension I use. We use Google Analytics v4 for data on our app's activity, and I pull daily numbers on that into a Google Sheet to create ...
Mark Feuerborn's user avatar
-1 votes
1 answer
393 views

How can I send GA4 events from apps-script?

I tried to call it like that, but got an error. How can I make this work?
Elad Benda's user avatar
  • 36.6k
0 votes
1 answer
411 views

Google Apps Script not sending email

We are trying to get e-mail notifications in cases there would be some dramatic changes in our revenue data. Could anyone please indicate possible errors why it wouldn't send e-mail? function ...
Madara Kļavinska's user avatar
2 votes
2 answers
5k views

How To use FilterExpression in Google Analytics Data API in Google Apps Script

I'm trying to use the new Google Analytics Data API to pull in some very simple data from our GA4 property and into a spreadsheet. This all works great. However I now want to apply some Dimension ...
DarkUFO's user avatar
  • 692
3 votes
1 answer
3k views

Pull List of GA4 Properties Using Google Analytics Admin API and App Script

Wondering if anyone has experience exporting a list of GA accounts and properties to a spreadsheet using the new Analytics Admin API. I've used the Management API for this purpose in the past but that ...
Geoffrey Bell's user avatar
0 votes
1 answer
1k views

GA4 | Google Analytics Admin API | Apps Script

I am trying to call the (new) alpha GA Admin API for the simple task of listing all the Accounts that I have access to... I am at a stage where I call the API but I do not get any error message nor I ...
vmorais's user avatar
1 vote
1 answer
355 views

Using Google Analytics to track impressions of shpreadsheet+appscript as UI and BE instead of a website

I want to use apps script as the backend of a spreadhsheet (as the UI. Both serve as a complete website sort of) and track the impressions or click on the spreadsheet buttons. I want to call GA4 from ...
Elad Benda's user avatar
  • 36.6k
0 votes
0 answers
216 views

Google analytics for Google apps-script doesn't show any data after a few weeks

I have an apps-script that I want to impression count in Google-Analytics. I have created a new GA account + data stream. Copied it's measurement id and put it in my app-script code: /** * Function ...
Elad Benda's user avatar
  • 36.6k
0 votes
1 answer
2k views

Google Analytics Data API has not been used in project 12345, but I have no access to this project

I'm running this code: var auth = "Bearer " + token; var myHeaders = { "Authorization": auth } var rawdata = JSON.stringify({ "dimensions": [ { "name&...
Elad Benda's user avatar
  • 36.6k

15 30 50 per page