GsGACustomDimensions
A Google Script / Google Sheets project to download/upload custom dimensions from/to the Google Analytics Management API.
Install / Use
/learn @juliencoquet/GsGACustomDimensionsREADME
gsGACustomDimensions
A Google Script / Google Sheets project to download/upload custom dimensions from/to the Google Analytics Management API.
-
Installation
- Copy the code in Code.gs file
- Create a new Google Sheet, with two tabs labeled
SettingsandData - In the
Settingstab, insert your GA Property ID (UA-123456-1) in cellB2and the GA Account ID (123456) - Navigate to
Tools>Script Editor - Paste the code. Save.
- From the Script Editor, go to
Resources>Advanced Google Services, search for the Google Analytics API and enable it.
-
Usage
- A menu labeled
Custom Dimension Managementshould be available upon opening the sheet - From the menu, select either
Download Custom DimensionsorUpload Custom Dimensions Download Custom Dimensionswill... download the custom dimension definition into theDatatabUpload Custom Dimensionswill upload (insert) the custom dimension definition in theDatatab up to the Google Analytics property ID defined in theSettingstab- If the menu is not available, you can run the
getCustomDims()orsetCustomDims()functions directly from the Script Editor.
- A menu labeled
-
Pre-requisites:
- Google Analytics property
- Google Sheet with access granted to Google Analytics API
-
Reference:
- Google Analytics Management API (v3)
- Example Google Sheet
-
TODO:
- Add account/property selection dialog
- Option to prefill property with placeholder dimensions
- Option to update and not insert
Related Skills
feishu-drive
354.0k|
things-mac
354.0kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
354.0kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
postkit
PostgreSQL-native identity, configuration, metering, and job queues. SQL functions that work with any language or driver
