Google Analytics Embed API
Google Analytics Embed API documentation: https://developers.google.com/analytics/devguides/reporting/embed/v1/getting-started
How to adapt it in Google Apps Script:
-
Create a standalone Google Apps Script;
-
Convert project from default to standard in GCP: https://developers.google.com/apps-script/guides/cloud-platform-projects#switching_to_a_different_standard_gcp_project
-
Create an ID Client in GCP;
-
Replace in index.html file the placeholder REPLACE_WITH_YOUR_CLIENT_ID with the ID Client;
-
Enable Google Analytics API in script editor and GCP;
-
Deploy script as web application: