Google Analytics Utilities
This is not an officially supported Google product.
This repository contains an app script that can be used in combination with a Google Spreadsheet to save various information in bulk or individually about your Google Analytics 4 settings to a spreadsheet.
If you find this tool useful, please consider leaving feedback by filling out this quick, anonymous survey.
The script currently performs the following functions:
Resource |
Capabilities |
Account Summaries |
List |
Properties |
List, Create, Delete, Update |
Data Streams |
List, Create, Delete, Update |
Custom Dimensions |
List, Create, Archive, Update |
Custom Metrics |
List, Create, Archive, Update |
Calculated Metrics |
List, Create, Archive, Update |
Key Events |
List, Create, Delete |
Firebase Links |
List, Create, Delete |
Google Ads Links |
List, Create, Delete, Update |
DV360 Links |
List, Create, Delete, Update |
Audiences Settings |
List, Create, Delete, Update |
SA360 Links |
List, Create, Delete, Update |
BigQuery Links |
List |
User Access Bindings |
List, Create, Delete, Update |
Settings Report |
Create |
Expanded Data Sets |
List, Create, Delete, Update |
Easy Property Creation |
Create |
Channel Groups |
List, Create, Delete, Update |
Measurement Protocol Secrets |
List, Create, Delete, Update |
AdSense Links |
List, Create, Delete |
Event Create Rules |
List, Create, Delete, Update |
Audience Lists |
List, Create, Check, Export |
Subproperty Event Filters |
List, Create, Delete, Update |
Rollup Property Source Links |
List, Create, Delete |
User Access Report |
Create |
These tasks can be completed by joining the Google Group, copying the template spreadsheet, and clicking on various options under the Google Analytics Utilities menu.
To access information about a given Analytics account, a user must have at least viewer permissions for the accounts, properties, and views they are interested in. If a user wants to create or update settings, they must have editor permissions.
All API requests are subject to the limitations documented here.
How to Access the Spreadsheet
It is strongly recommended that you use the template spreadsheet to use the Google Analytics Utilities script. Follow these steps to make a copy of the template spreadsheet and start using the script:
- Join this group to access the spreadsheet.
- Create a copy of this spreadsheet.
The spreadsheet is now ready to use the Google Analytics Utilities script. The first time you run a function from the menu, you will need to authorize the permissions for the script and then run the function a second time. You may see a warning that the script is unauthorized. You should be able to proceed anyway. The script does not collect any information.
APIs and Access Permissions
The script makes use of the following APIs/advanced app script services:
- Google Analytics Admin API
- Google Analytics Data API
- Google Drive API
- BigQuery API
Limited Scope Template
If you are concerned about the access permissions required for the script, then please use this sheet instead. This sheet lacks some of the more advanced features, but it has more restricted scopes.
Check for Updates
It is recommended to periodically run the "Check for Updates" menu item to see if a new version of the tool has been released.
Features
Color Coding
For the GA4 functions, whenever you check a box to archive/delete, create, or update, the sheet will highlight specific cells in each row that need to have values for the given setting to be modified or created. Please see additional details below:
- If a highlighted cell is empty, a row will remain white.
- When all the necessary fields have been entered to archive/delete a setting, the row will turn red.
- When all the necessary fields have been entered to create a setting, the row will turn green.
- When all the necessary fields have been entered to update a setting, the row will turn blue.
Action Taken Messages
If you archive, delete, create, or update a GA4 setting, then a corresponding action taken will be recorded in the same row. Errors will also be recorded in the "Action Taken" column. If you are missing a necessary value when trying to modify a setting, then that will likely be recorded in the "Action Taken" column taken. If you see "Error 404: HttpResponseException" then you are likely missing a value in the resource name column (or the account ID column in the Property Details sheet) and should probably list your values again.
Account Summaries
List
- Navigate to "Account Summaries"
- Click on Google Analytics Utilities > List Account Summaries.
- The script will identify all the Google Analytics 4 properties your email has access to and list a flattened table of accounts and properties in the "Account Summaries" sheet.
- This sheet can then be used to select specific accounts and properties for other functions.
Properties
List
- List GA4 account summaries.
- Select each property for which you want to see details.
- Navigate to the "Property Details" sheet.
- Click on Google Analytics Utilities > Properties > List.
- The selected property details will be listed in the "Property Details" sheet.
Create
- Navigate to the "Property Details" sheet.
- Each row represents a separate data stream. Enter the following information:
- Account ID
- Property name
- Industry category
- Time zone
- Currency code
- Data Retention Duration
- Note - The following values are only available for 360 properties:
- TWENTY_SIX_MONTHS
- THIRTY_EIGHT_MONTHS
- FIFTY_MONTHS
- Reset User Data on New Activity
- Check the box for "Create"
- Click on Google Analytics Utilities > Properties > Modify.
- The script will attempt to create the selected properties.
Delete
- After listing your GA4 data streams, navigate to the "Property Details" sheet.
- Select the data streams you want to delete.
- Click on Google Analytics Utilities > Properties > Modify.
- The script will attempt to delete the selected properties.
Update
- After listing your GA4 data streams, navigate to the "Property Details" sheet.
- Modify any of the following for a given property:
- Property Name
- Industry category
- Time zone
- Currency code
- Data Retention Duration
- Note - The following values are only available for 360 properties:
- TWENTY_SIX_MONTHS
- THIRTY_EIGHT_MONTHS
- FIFTY_MONTHS
- Reset User Data on New Activity
- Check the "Update" box for each property you want to update.
- Click on Google Analytics Utilities > Properties > Modify.
- The script will attempt to update the selected properties.
Data Streams
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve data streams.
- Navigate to the "Data Streams" sheet.
- Click on Google Analytics Utilities > Data Streams > List.
- The data streams for the selected properties will be listed in the "Data Streams" sheet.
Create
- Navigate to the "Data Streams" sheet.
- Each row represents a separate data stream. Enter the following information:
- Property ID
- Stream Name
- Stream type:
- WEB_DATA_STREAM
- Enter the relevant Enhanced Measurement Settings
- Enter the default URI
- ANDROID_APP_DATA_STREAM
- Enter package ID
- IOS_APP_DATA_STREAM
- Enter bundle ID
- Check the box for "Create"
- Click on Google Analytics Utilities > Data Streams > Modify.
- The script will attempt to create the selected data streams.
Delete
- After listing your GA4 data streams, navigate to the "Data Streams" sheet.
- Select the data streams you want to delete.
- Click on Google Analytics Utilities > Data Streams > Modify.
- The script will attempt to delete the selected data streams.
Update
- After listing your GA4 data streams, navigate to the "Data Streams" sheet.
- Enter a new stream name for a given data stream.
- If the the stream type is WEB_DATA_STREAM, then you can enter the relevant Enhanced Measurement Settings
- Check the "Update" box for each data stream you want to update.
- Click on Google Analytics Utilities > Data Streams > Modify.
- The script will attempt to update the selected data streams.
Custom Dimensions
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve custom dimensions.
- Navigate to the "Custom Dimensions" sheet.
- Click on Google Analytics Utilities > Custom Dimensions > List.
- The custom dimensions for the selected properties will be listed in the "Custom Dimensions" sheet.
Create
- Navigate to the "Custom Dimensions" sheet.
- Enter the following:
- Property ID
- Custom dimension name (the name displayed in the UI)
- Parameter name (the name collected in the code/tags)
- Scope
- Description
- Whether or not ads personalization is disallowed (true or false)
- Check the box for "Create"
- Repeat these steps in a new row for each custom dimension you want to create
- Click on Google Analytics Utilities > Custom Dimensions > Modify.
- The script will attempt to create the selected custom dimensions.
Archive
- After listing your GA4 custom dimensions, navigate to the "Custom Dimensions" sheet.
- Check the "Archive" box for each custom dimension you want to archive.
- Click on Google Analytics Utilities > Custom Dimensions > Modify.
- The script will attempt to archive the selected custom dimensions.
Update
- After listing your GA4 custom dimensions, navigate to the "Custom Dimensions" sheet.
- Enter a new custom dimension name or description for a given custom dimension.
- Check the "Update" box for each custom dimension you want to update.
- Click on Google Analytics Utilities > Custom Dimensions > Modify.
- The script will attempt to update the selected custom dimensions.
Custom Metrics
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve custom dimensions.
- Navigate to the "Custom Metrics" sheet.
- Click on Google Analytics Utilities > Custom Metrics > List.
- The custom dimensions for the selected properties will be listed in the "Custom Metrics" sheet.
Create
- Navigate to the "Custom Metrics" sheet.
- Enter the following:
- Property ID
- Custom metric name (the name displayed in the UI)
- Parameter name (the name collected in the code/tags)
- Scope
- Measurement Unit
- Description
- Check the box for "Create"
- Repeat these steps in a new row for each custom metric you want to create
- Click on Google Analytics Utilities > Custom Metrics > Modify.
- The script will attempt to create the selected custom metrics.
Archive
- After listing your GA4 custom metrics, navigate to the "Custom Metrics" sheet.
- Check the "Archive" box for each custom metric you want to archive.
- Click on Google Analytics Utilities > Custom Metrics > Modify.
- The script will attempt to archive the selected custom metrics.
Update
- After listing your GA4 custom metrics, navigate to the "Custom Metrics" sheet.
- Enter a new custom metric name, description, or measurement unit for a given custom metric.
- Check the "Update" box for each custom metric you want to update.
- Click on Google Analytics Utilities > Custom Metrics > Modify.
- The script will attempt to update the selected custom metrics.
Calculated Metrics
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve custom dimensions.
- Navigate to the "Calculated Metrics" sheet.
- Click on Google Analytics Utilities > Calculated Metrics > List.
- The custom dimensions for the selected properties will be listed in the "Calculated Metrics" sheet.
Create
- Navigate to the "Calculated Metrics" sheet.
- Enter the following:
- Property ID
- Calculated metric name (the name displayed in the UI)
- Optional: Description
- Metric Unit
- Formula
- Check the box for "Create"
- Repeat these steps in a new row for each custom metric you want to create
- Click on Google Analytics Utilities > Caluclated Metrics > Modify.
- The script will attempt to create the selected calculated metrics.
Delete
- After listing your GA4 calculated metrics, navigate to the "Calculated Metrics" sheet.
- Check the "Delete" box for each calculated metric you want to archive.
- Click on Google Analytics Utilities > Calculated Metrics > Modify.
- The script will attempt to delete the selected calculated metrics.
Update
- After listing your GA4 calculated metrics, navigate to the "Calculated Metrics" sheet.
- Enter a new calculated metric name, description, or metric unit for a given calculated metric.
- Check the "Update" box for each calculated metric you want to update.
- Click on Google Analytics Utilities > Calculated Metrics > Modify.
- The script will attempt to update the selected custom metrics.
Key Events
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve key events.
- Navigate to the "Key Events" sheet.
- Click on Google Analytics Utilities > Key Events > List.
- The key events for the selected properties will be listed in the "Key Events" sheet.
Create
- Navigate to the "Key Events" sheet.
- Enter the following:
- Property ID
- Event name
- Check the box for "Create"
- Repeat these steps in a new row for each key event you want to create
- Click on Google Analytics Utilities > Key Events > Modify.
- The script will attempt to create a new key event based on the information in each row.
Delete
- After listing your GA4 key events, navigate to the "Key Events" sheet.
- Check the "Delete" box for each key event you want to delete.
- Click on Google Analytics Utilities > Key Events > Modify.
- The script will attempt to delete the selected key events.
Firebase Links
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve Firebase links.
- Navigate to the "Firebase Links" sheet.
- Click on Google Analytics Utilities > Firebase Links > List.
- The Firebase links for the selected properties will be listed in the "Firebase Links" sheet.
Create
- Navigate to the "Firebase Links" sheet.
- Enter the following:
- Property ID
- Firebase project ID or name
- Check the box for "Create"
- Repeat these steps in a new row for each Firebase link you want to create
- Click on Google Analytics Utilities > Firebase Links > Modify.
- The script will attempt to create a new Firebase link based on the information in each row.
Delete
- After listing your GA4 firebase links, navigate to the "Firebase Links" sheet.
- Check the "Delete" box for each Firebase link you want to delete.
- Click on Google Analytics Utilities > Firebase Links > Modify.
- The script will attempt to delete the selected Firebase links.
Google Ads Links
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve Google Ads links.
- Navigate to the "Google Ads Links" sheet.
- Click on Google Analytics Utilities > Links > Google Ads > List.
- The Google Ads links for the selected properties will be listed in the "Google Ads Links" sheet.
Create
- Navigate to the "Google Ads Links" sheet.
- Enter the following:
- Property ID
- Google Ads client ID
- True or false for "Ads Personalization Enabled"
- Check the box for "Create"
- Repeat these steps in a new row for each Google Ads link you want to create
- Click on Google Analytics Utilities > Links > Google Ads > Modify.
- The script will attempt to create a new Google Ads link based on the information in each row.
Delete
- After listing your GA4 Google Ads links, navigate to the "Google Ads Links" sheet.
- Check the "Delete" box for each Google Ads link you want to delete.
- Click on Google Analytics Utilities > Links > Google Ads > Modify.
- The script will attempt to delete the selected Google Ads links.
Update
- After listing your GA4 Google Ads links, navigate to the "Google Ads Links" sheet.
- Enter true or false for "Ads Personalization Enabled"
- Check the "Update" box for each Google Ads link you want to update.
- Click on Google Analytics Utilities > Links > Google Ads > Modify.
- The script will attempt to update the selected Google Ads links.
DV360 Links
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve DV360 links.
- Navigate to the "DV360 Links" sheet.
- Click on Google Analytics Utilities > Links > DV360 > List.
- The DV360 links for the selected properties will be listed in the "DV360 Links" sheet.
Create
- Navigate to the "DV360 Links" sheet.
- Enter the following:
- Property ID
- Advertiser ID
- True or false for "Ads Personalization Enabled"
- True or false for "Campaign Data Sharing Enabled"
- True or false for "Cost Data Sharing Enabled"
- Check the box for "Create"
- Repeat these steps in a new row for each DV360 link you want to create
- Click on Google Analytics Utilities > Links > DV360 > Modify.
- The script will attempt to create a new DV360 link based on the information in each row.
Delete
- After listing your GA4 DV360 links, navigate to the "DV360 Links" sheet.
- Check the "Delete" box for each DV360 link you want to delete.
- Click on Google Analytics Utilities > Links > DV360 > Modify.
- The script will attempt to delete the selected DV360 links.
Update
- After listing your GA4 DV360 links, navigate to the "DV360 Links" sheet.
- Enter true or false for "Ads Personalization Enabled"
- Check the "Update" box for each DV360 link you want to update.
- Click on Google Analytics Utilities > Links > DV360 > Modify.
- The script will attempt to update the selected DV360 links.
GA4 Audiences
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve audiences.
- Navigate to the "Audiences" sheet.
- Click on Google Analytics Utilities > Audiences > List.
- The audiences for the selected properties will be listed in the "Audiences" sheet.
Create
- Navigate to the "Audiences" sheet.
- Enter the following:
- Property ID
- Audience Name
- Audience Description
- Membership Duration
- Filter Clauses
- (Optional) Event Trigger Name
- (Optional) Event Trigger Log Condition
- (Only set with exclusion filter conditions) Exclusion Duration Mode
- Repeat these steps in a new row for each audience you want to create
- Click on Google Analytics Utilities > Audiences > Modify.
- The script will attempt to create a new audience based on the information in each row.
Delete
- After listing your GA4 audiences, navigate to the "Audiences" sheet.
- Check the "Delete" box for each audience link you want to delete.
- Click on Google Analytics Utilities > Audiences > Modify.
- The script will attempt to delete the selected audiences.
Update
- After listing your GA4 audiences, navigate to the "Audiences" sheet.
- The following can be updated:
- Audience Name
- Audience Description
- Check the "Update" box for each audience you want to update.
- Click on Google Analytics Utilities > Audience > Modify.
- The script will attempt to update the selected audience.
SA360 Links
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve SA360 links.
- Navigate to the "SA360 Links" sheet.
- Click on Google Analytics Utilities > Links > SA360 > List.
- The SA360 links for the selected properties will be listed in the "SA360 Links" sheet.
Create
- Navigate to the "SA360 Links" sheet.
- Enter the following:
- Property ID
- Advertiser ID
- True or false for "Ads Personalization Enabled"
- True or false for "Campaign Data Sharing Enabled"
- True or false for "Cost Data Sharing Enabled"
- True or false for "Site States Sharing Enabled"
- Check the box for "Create"
- Repeat these steps in a new row for each SA360 link you want to create
- Click on Google Analytics Utilities > Links > SA360 > Modify.
- The script will attempt to create a new SA360 link based on the information in each row.
Delete
- After listing your GA4 SA360 links, navigate to the "SA360 Links" sheet.
- Check the "Delete" box for each SA360 link you want to delete.
- Click on Google Analytics Utilities > Links > SA360 > Modify.
- The script will attempt to delete the selected SA360 links.
Update
- After listing your GA4 SA360 links, navigate to the "SA360 Links" sheet.
- Edit the following:
- Enter true or false for "Ads Personalization Enabled"
- Enter true or false for "Site States Sharing Enabled"
- Check the "Update" box for each SA360 link you want to update.
- Click on Google Analytics Utilities > Links > SA360 > Modify.
- The script will attempt to update the selected SA360 links.
BigQuery Links
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve BigQuery links.
- Navigate to the "BigQuery Links" sheet.
- Click on Google Analytics Utilities > Links > BigQuery > List.
- The BigQuery links for the selected properties will be listed in the "BigQuery Links" sheet.
Expanded Data Sets
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve expanded data sets.
- Navigate to the "Expanded Data Sets" sheet.
- Click Google Analytics Utilities > Expanded Data Sets > List.
- Expanded data sets for the selected properties will be listed in the "Expanded Data Sets" sheet.
Create
- Navigate to "Expanded Data Sets".
- Enter the following for each expanded data set you want to create:
- Property ID
- Expanded data set name
- Description (optional)
- A comma separated list of dimension names
- A comma separated list of metric names
- A filter expression (optional)
- Check the "Create" box
- Click Google Analytics Utilities > Expanded Data Sets > Modify.
- The script will attempt to create new expanded data sets. NOTE: The script will not validate if a given combination of dimensions and metrics can be used in an expanded data set.
Update
- List your expanded data sets.
- Navigate to "Expanded Data Sets".
- Modify the following for each expanded data set you want to update:
- Display Name
- Description
- Check the "Update" box
- Click Google Analytics Utilities > Expanded Data Sets > Modify.
- The script will attempt to update the expanded data sets.
Delete
- List your expanded data sets.
- Navigate to "Expanded Data Sets".
- Check the "Delete" box for the expanded data sets you want to delete.
- Click Google Analytics Utilities > Expanded Data Sets > Modify.
- The script will attempt to delete the expanded data sets.
GA4 Users
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve access bindings.
- Navigate to the "Users" sheet.
- Click on Google Analytics Utilities > Users > List.
- The access bindings for the selected properties will be listed in the "Users" sheet. Access bindings will only be displayed if the user requesting the information has the necessary permissions. If possible, the access bindings for the accounts associated with each property will also be listed.
Create
- Navigate to the "Users" sheet.
- Enter the following in a new row:
- Account Access Binding:
- Account ID
- User Email
- Primary permissions - Must be one of the following:
- predefinedRoles/viewer
- predefinedRoles/analyst
- predefinedRoles/editor
- predefinedRoles/admin
- Secondary Permissions - Can be one of the following:
- Blank
- predefinedRoles/no-cost-data
- predefinedRoles/no-revenue-data
- predefinedRoles/no-cost-data, predefinedRoles/no-revenue-data
- Property Access Binding:
- Account ID
- Property ID
- User Email
- Primary permissions - Must be one of the following:
- predefinedRoles/viewer
- predefinedRoles/analyst
- predefinedRoles/editor
- predefinedRoles/admin
- Secondary Permissions - Can be one of the following:
- Blank
- predefinedRoles/no-cost-data
- predefinedRoles/no-revenue-data
- predefinedRoles/no-cost-data, predefinedRoles/no-revenue-data
- Check the "Create" box for the row.
- Click on Google Analytics Utilities > Users > Modify.
- The script will attempt to create a new access binding based on the information in each row. Batching is not used.
Delete
- After listing your GA4 access bindings, navigate to the "Users" sheet.
- Check the "Delete" box for each access binding you want to delete.
- Click on Google Analytics Utilities > Users > Modify.
- The script will attempt to delete the selected access bindings. Batching is not used.
Update
- After listing your GA4 access bindings, navigate to the "Users" sheet.
- The following can be updated:
- Primary Permissions
- Secondary Permissions
- Check the "Update" box for each access binding you want to update.
- Click on Google Analytics Utilities > Users > Modify.
- The script will attempt to update the selected access bindings. Batching is not used.
GA4 Settings Report
Create a Report
- List GA4 account summaries.
- Select the properties for which you want to generate a report.
- Navigate to the "Report Settings" sheet.
- Enter the information as indicated for rows 4-9.
- If the "Template Slides URL" value is left as "Default" or is blank, then the default template will be used. Otherwise, a Google Slides URL of a template presentation must be provided.
- If the box for "Request New Settings Information" is checked, then GA Utilities will automatically list new information for several different GA4 sheets. This newly listed information will clear any existing settings listed in the sheets. This includes the following sheets:
- GA4 Property Details
- GA4 Audiences
- GA4 Data Streams
- GA4 Key Events
- GA4 Custom Dimensions
- GA4 Custom Metrics
- GA4 Google Ads Links
- GA4 DV360 Links
- GA4 Firebase Links
- The placeholder rows starting at row 10 can be added to, removed, or changed as you prefer. Each column works in the following way:
- Placeholder Text: This is the placeholder text found in the template spreadsheet. Each placeholder text can only be used once per slide. A placeholder can be whatever you want, but the behavior of the script will change if any of the following words are used:
- percent: If the word "percent" (all in lowercase) is used in the placeholder, then the value in the slide will be properly formatted as a percent and will change color depending on the information entered for the percent range color scale. The value in the spreadsheet must be a number.
- image, graphic, or logo: If the image, graphic, or logo (all lowercase) are used in the placeholder, then the value must be a URL that points to an image. The script will then try to swap out the placeholder in the template with the image from the URL.
- list: If the word "list" is used in the placeholder, then the script will try to create a bulleted list in the slide based on the value in the spreadsheet. The value in the spreadsheet will be split by the presence of double semicolons (;;). For example, the following would be split into two bullet points:
hello, world;;example list
. You can either construct a list value in a single line, or you can have multiple rows with the exact same placeholder name and the script will create a list for you from those rows.
- Template Slide: The template slide column is used to determine which slide a given placeholder text belongs to. The template slide text must exist in the speaker notes section for a given slide in order for the script to identify the correct slide.
- Include: Either check the box or use a formula to determine if a placeholder should be considered when building the final presentation.
- Value: The final value that will appear on the slide where the placeholder text is present.
- If your template includes one or more slides that need to be duplicated, then you must navigate to the "Report Settings - Snapshot" sheet and enter settings for those slides. This sheet can be customized in the following way:
- Column A: Contains the property ID for a given GA4 property and is included to make it easier to create formulas in other columns.
- Column B: Contains the template slide placeholder and is used to identify the template slide.
- Columns C+: The headers for these columns should contain the placeholder text that will be swapped with a real value when the report is complete. Every row after the header should have a value for that specific property. These values can be derived from the other GA Utilities sheets or entered as plain text. The placeholder name rules are the same as previously stated: percent formats the number value as a percent on the slide, list creates a bulleted list, image/graphic/logo uses a provided URL as an image, and any other name just replaces the value on the slide as is.
- Once all values have been entered, click GA Utilities > Advanced > Health Report > Create Report
- Once the health report has been created, a link to the report and the date of its creation will be appended to columns F and G in the "Report Settings" sheet. The date of creation will default to MM-DD-YYYY format, but that can be reformatted if you so wish.
- Review the new report and make any necessary adjustments. There may be some placeholders that aren’t removed if said placeholder was not included in the sheet but was present in the template. This is expected and you should delete the placeholder manually. You may also need to adjust image sizes, which is expected.
Easy Property Creation
List
- List GA4 account summaries.
- Select the properties you want to use as templates.
- Navigate to the "Easy Property Creation" sheet.
- Click on Google Analytics Utilities > Advanced > Easy Property Creation > List Templates.
- The selected properties and many of their associated settings will be listed in the "Easy Property Creation" sheet.
Create
- Navigate to the "Easy Property Creation" sheet.
- Enter the following in the row for the property you want to make a copy of. If necessary, you can make copy the property settings into multiple rows:
- Account ID for New Property
- New Property Name
- (Optional) If necessary, edit, add, or remove any of the settings in the various columns.
- Check the "Create" box for each row you want to use to make a property.
- Click on Google Analytics Utilities > Advanced > Easy Property Creation > Create Properties.
- The script will attempt to create a new property for each selected row and will also create the various settings (i.e. data streams, audiences, key events, etc.) in the columns. Note: Due to limitations with the API, Google Signals will not be enabled in the newly created properties even if the template properties had Google Signals enabled.
Channel Groups
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve channel groups.
- Navigate to the "Channel Groups" sheet.
- Click Google Analytics Utilities > Channel Groups > List.
- Channel Groups for the selected properties will be listed in the "Channel Groups" sheet.
Create
- Navigate to "Channel Groups".
- Enter the following for each channel group you want to create:
- Property ID
- Channel group name
- Description (optional)
- Grouping rule as defined here
- Check the "Create" box
- Click Google Analytics Utilities > Channel Groups > Modify.
- The script will attempt to create new channel groups.
Update
- List your channel groups.
- Navigate to "Channel Groups".
- Modify the following for each channel group you want to update:
- Channel Group Name
- Description
- Grouping rule
- Check the "Update" box
- Click Google Analytics Utilities > Channel Groups > Modify.
- The script will attempt to update the channel groups.
Delete
- List your channel groups.
- Navigate to "Channel Groups".
- Check the "Delete" box for the channel groups you want to delete.
- Click Google Analytics Utilities > Channel Groups > Modify.
- The script will attempt to delete the channel groups.
Measurement Protocol Secrets
List
- List GA4 account summaries.
- Select the properties for which you want to list their data streams.
- Navigate to "Data Stream Selection".
- Click Google Analytics Utilities > List Data Stream Selection.
- Select the data streams for which you want to list their measurement protocol secrets.
- Click Google Analytics Utilities > Measurement Protocol Secrets > List.
- Measurement Protocol Secrets for the selected data streams will be listed in the "Measurement Protocol Secrets" sheet.
Create
- Navigate to "Measurement Protocol Secrets".
- Enter the following for each measurement protocol secret you want to create:
- Property ID
- Data Stream ID
- Measurement Protocol Secret Name
- Check the "Create" box
- Click Google Analytics Utilities > Measurement Protocol Secrets > Modify.
- The script will attempt to create new measurement protocol secrets.
Update
- List your measurement protocol secrets.
- Navigate to "Measurement Protocol Secrets".
- Modify the following for each measurement protocol secret you want to update:
- Measurement Protocol Secret Name
- Check the "Update" box
- Click Google Analytics Utilities > Measurement Protocol Secrets > Modify.
- The script will attempt to update the measurement protocol secrets.
Delete
- List your measurement protocol secrets.
- Navigate to "Measurement Protocol Secrets".
- Check the "Delete" box for the measurement protocol secrets you want to delete.
- Click Google Analytics Utilities > Measurement Protocol Secrets > Modify.
- The script will attempt to delete the measurement protocol secrets.
AdSense Links
List
- List GA4 account summaries.
- Select the properties from which you want to retrieve AdSense Links.
- Navigate to the "AdSense Links" sheet.
- Click Google Analytics Utilities > Links > AdSense > List.
- AdSense links for the selected properties will be listed in the "AdSense Links" sheet.
Create
- Navigate to "AdSense Links".
- Enter the following for each AdSense link you want to create:
- Property ID
- Ad Client ID
- Check the "Create" box
- Click Google Analytics Utilities > Links > AdSense > Modify.
- The script will attempt to create new AdSense links.
Delete
- List your AdSense links.
- Navigate to "AdSense Links".
- Check the "Delete" box for the AdSense links you want to delete.
- Click Google Analytics Utilities > Links > AdSense > Modify.
- The script will attempt to delete the AdSense links.
Event Create Rules
List
- List GA4 account summaries.
- Select the properties for which you want to list their data streams.
- Navigate to "Data Stream Selection".
- Click Google Analytics Utilities > List Data Stream Selection.
- Select the data streams for which you want to list their event create rules.
- Click Google Analytics Utilities > Event Create Rules > List.
- Event Create Rules for the selected data streams will be listed in the "Event Create Rules" sheet.
Create
- Navigate to "Event Create Rules".
- Enter the following for each event create rule you want to create:
- Property ID
- Data Stream ID
- Destination Event Name
- (Optional) Copy Source Parameters
- (Optional) Event Conditions
- (Optional) Parameter Mutations
- Check the "Create" box
- Click Google Analytics Utilities > Event Create Rules > Modify.
- The script will attempt to create new event create rules.
Update
- List your event create rules.
- Navigate to "Event Create Rules".
- Modify the following for each event create rule you want to update:
- Destination Event Name
- (Optional) Copy Source Parameters
- (Optional) Event Conditions
- (Optional) Parameter Mutations
- Check the "Update" box
- Click Google Analytics Utilities > Event Create Rules > Modify.
- The script will attempt to update the event create rules.
Delete
- List your event create rules.
- Navigate to "Event Create Rules".
- Check the "Delete" box for the event create rules you want to delete.
- Click Google Analytics Utilities > Event Create Rules > Modify.
- The script will attempt to delete the event create rules.
Audience Lists
List
- List GA4 account summaries.
- Select the properties for which you want to list audience lists.
- Navigate to the "Audience Lists" sheet.
- Click Google Analytics Utilities > Advanced > Audience Lists > List Audience Lists.
- The Audience Lists for the selected properties will be listed in the "Audience Lists" sheet.
Create
- Navigate to "Audience Lists".
- Enter the following for each event create rule you want to create. It is suggesteed that you click Google Analytics Utilities > Advanced > Audience Lists > List Existing Audiences to list the following information automatically in your sheet:
- Property ID
- Audience Resource Name
- A comma separated list of dimensions (E.g. deviceId, userId)
- Check the "Create" box
- Click Google Analytics Utilities > Advanced > Audience Lists > Create Audience Lists.
- The script will attempt to create audience lists.
Check State
To check the state of your audience lists, you can either list the audience lists in a property or retrieve the state for a single audience list by going through the following steps.
- Navigate to "Audience Lists".
- Enter the following for each audience list you want to check:
- Audience List Resource Name
- Check the "Check State" box
- Click Google Analytics Utilities > Advanced > Audience Lists > Check Audience List States.
- The script will attempt to check the state for the selected audience lists.
Export
Currently, the Google Anaytics Utilities can export audience list dimensions either to a new spreadsheet, and existing spreadsheet, or an existing empty BigQuery table. It is not recommended that you try to export more than 100 - 150 thousand users total at one time across all of your audience lists selected for export. If you choose more than this, the scritp may throw an error and fail to properly export the users in one or more audience lists.
- Navigate to "Audience Lists".
- List your audience lists by clicking on Google Analytics Utilities > Advanced > Audience Lists > List Audience Lists.
- For a given audience, make sure the following is entered:
- Audience List Resource Name
- Output Location is set to either "Spreadsheet" or "BigQuery"
- If the output location is "Spreadsheet":
- If you want to export to a new spreadsheet, check the new spreadsheet box
- If you want to export to an existing spreadsheet, leave the new spreadsheet box unchecked and enter the URL for the new spreadsheet.
- If the output location is "BigQuery":
- Enter the existing project and dataset names.
- Enter the name for new table that will be created by the script and poplulated with the audience export data. The table should not already exist in BigQuery.
- Check the "Export" box
- Click Google Analytics Utilities > Advanced > Audience Lists > Export Audience Lists.
- The script will attempt to export the audience lists users to a the chosen export locations. As indicated above, if the audience lists are too large, the export may fail.
Subproperty Event Filters
List
- List GA4 account summaries.
- Select the properties for which you want to list their subproperty filter events.
- Navigate to "Subproperty Filter Events".
- Click Google Analytics Utilities > Subproperty Filter Events > List.
- Subproperty event filters for the selected properties will be listed in the "Subproperty Event Filters" sheet.
Create
- Navigate to "Subproperty Event Filters".
- Enter the following for each subproperty event filter you want to create:
- Property ID (this is the parent property)
- Apply to property (this is the subproperty the filter will be applied to)
- Filter clauses
- Check the "Create" box
- Click Google Analytics Utilities > Subproperty Event Filters > Modify.
- The script will attempt to create new subproperty event filters.
Update
- List your subproperty event filters.
- Navigate to "Subproperty Event Filters".
- Modify the following for each subproperty event filter you want to update:
- Filter clauses
- Check the "Update" box
- Click Google Analytics Utilities > Subproperty Event Filters > Modify.
- The script will attempt to update the subproperty event filters.
Delete
- List your subproperty event filters.
- Navigate to "Subproperty Event Filters".
- Check the "Delete" box for the subproperty event filters you want to delete.
- Click Google Analytics Utilities > Subproperty Event Filters > Modify.
- The script will attempt to delete the subproperty event filters.
Rollup Property Source Links
List
- List GA4 account summaries.
- Select the properties for which you want to list their rollup property source links.
- Navigate to "Rollup Property Source Links".
- Click Google Analytics Utilities > Rollup Property Source Links > List.
- Rollup property source links for the selected properties will be listed in the "Rollup Property Source Links" sheet.
Create
- Navigate to "Rollup Property Source Links".
- Enter the following for each rollup property source link you want to create:
- Property ID (this is the rollup property)
- Source Link ID (this is the property ID for the source property in the format properties/ID_NUMBER)
- Check the "Create" box
- Click Google Analytics Utilities > Rollup Property Source Links > Modify.
- The script will attempt to create new rollup property source links.
Delete
- List your rollup property source links.
- Navigate to "Rollup Property Source Links".
- Check the "Delete" box for the rollup property source links you want to delete.
- Click Google Analytics Utilities > Rollup Property Source Links > Modify.
- The script will attempt to delete the rollup property source links.
User Access Report
Create
- List GA4 account summaries.
- Select the properties for which you want to run user access reports. If you want to run reports for accounts, select one row for a given account.
- Navigate to the "User Access Report Settings" sheet.
- Enter the settings for the reports you want to run.
- Enter the start date for the report.
- Enter the end date for the report.
- Optional: Enter a second start and end data for the report.
- Select the dimensions you want to include in the report. You can select up to 9 dimensions.
- Select the metrics you want to include in the report. You can select up to 10 metrics.
- Optional: Set the report offset.
- Optional: Set the report limit (defaults to 10000 if not set).
- Set the time zone for the report.
- Optional: Include all users by checking the box.
- Optional: Expand user groups. This is only an option if you check the box for include all users.
- The "Account Level Report" setting specifies if you are running access reports at the account level or property level. If you leave the box unchecked, then a property level user access report will be run for each of the properties you selected in step 2. If you check the box, then account level user access reports will be run for each of properties you selected in step 2. If multiple rows were selected that contain the same account, only one user access report will be run for said account.
- Click Google Analytics Utilities > Advanced > User Access Report > Run Report.
- The script will attempt to run a user access report for each of the properties or accounts you selected. The results will be written to the "User Access Report" sheet. Please note that the information in the "User Access Report" will be cleared whenever a new report is run.