Import Google Analytics 4 (GA4) Data to Google Sheets for free
We already know when Google Analytics Universal will stop working, but Google still didn't share free add-on like for Google Analytics Universal which enables downloading data directly in Google Sheets and most important to schedule it. Maybe my solution isn't perfect but it's for free and you don't need to use any servers etc. What did I do? 1) Under Extension I selected Apps Script 2) I added new Service AnalyticsData (v1beta version) 3) I clicked See documentation to find good example how to apply it in Google Apps Script https://developers.google.com/apps-script/advanced/analyticsdata?authuser=0 4) I copied code from the documentation into my sheet and launched some changes - instead of creating a new sheet every time I seleced a sheet name where generated data should be pasted (marked by pink) 5) Last step was running the code - before it is run for the first time you will be asked about permission This is example of very simple report in GA4, without ...