Skip to main content

All Questions

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
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
0 votes
0 answers
234 views

How to set website URL in GA4 data stream using Google Analytics Admin API?

I'm trying to create GA4 data stream using Google Analytics Admin API. Although the creation itself is completed without any error, website URL is not set. I don't know how to set it. I'm using GAS. I ...
user20829410'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
1 vote
1 answer
56 views

Google Apps Script stops during loop instead of continuing to next item

I'm making a script that will populate a Google Sheet with info about our GA4 analytics properties. It starts by listing all our accounts, then looping through them and listing any GA4 properties in ...
EthanB40's user avatar
0 votes
0 answers
592 views

Pull List Account structure Ga4 + export Google Sheets

I would like to pull my Account structure from GA4 in bulk. I have found several scripts but nothing works perfectly (info would be, account title, property ID & Stream ID). Google provides a ...
Tummy's user avatar
  • 1
-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
0 answers
473 views

Response Code: 404 when calling Google Analytics admin api

when i am calling function getDataStreams() { const parent = 'properties/<my_property>' try { const request = { parent }; Logger.log(request); const response = ...
Philipp Beckmann's user avatar
0 votes
1 answer
2k views

Using App Script to Pull Reports from GA4 Data API

I am Kinda new to AppScript and wanted to know how I can add multiple dimensions and metrics to the code below as well as how the filtering works. Your help is much appreciated. Here is my reference ...
amirali marvian's user avatar
0 votes
1 answer
937 views

Google Analytics Data API - HTML to Apps Script: gapi is not defined

I am trying to execute a Report with the Google Analytics Data API. I built the request using Google's documentation and I get this script. The script works well if I execute it directly with the &...
Riccardo Destratis's user avatar
1 vote
1 answer
67 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": [ { &...
UKDataGeek's user avatar
  • 6,862
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
438 views

Pulling Data For A List Of URLs Using The Google Analytics Sheets Add-On

I've been looking into The Google Analytics Spreadsheet Add-on, however, currently, it pulls the data for the entire account, I want to pull the data only for specific URLs (new blog posts uploaded ...
seo4lyf'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

15 30 50 per page
1
2 3 4 5
7