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 Universal Google Analytics accounts, properties, or views to a spreadsheet. Additional information about Google Analytics 4 properties can be saved.
The script makes use of the following APIs:
- Google Analytics Management API
- Google Analytics Reporting API version 4
- Google Analytics Admin API
- Google Analytics Data API
- Google Drive API
The script currently performs the following functions:
- Universal Analytics
- Account Summaries
- List
- View Details
- List
- List up to 1000 unique event category, action, and label combinations per view
- Report on specific metrics for selected views
- Custom dimensions
- List, Create, Update
- Custom metrics
- List, Create, Update
- List view level filter settings
- Audiences
- List settings, Delete
- Goal settings
- List, Create
- Users
- List
- Account Summaries
- Google Analytics 4
- Account Summaries,
- List
- Properties
- List, Create, Delete, Update
- Data Streams
- List, Create, Delete, Update
- GA4 custom dimensions
- List, Create, Archive, Update
- GA4 custom metrics
- List, Create, Archive, Update
- Conversion events
- List, Create, Delete
- Firebase links
- List, Create, Delete
- GA4 Google Ads links
- List, Create, Delete, Update
- DV360 Links
- List, Create, Delete, Update
- GA4 Audiences
- List, Create, Delete, Update
- Users
- List, Create, Delete, Update
- Settings Report
- Create
- Account Summaries,
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 normal limitations documented here.
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 gain access to the spreadsheet.
- Create a copy of this spreadsheet.
The spreadsheet is now ready to use the Google Analytics Utilities sheet. 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.
If you are not copying the script, then the Google Analytics API and Analytics Reporting API services need to be enabled.
To make managing the sheets easier, you can show or hide sheets related to Universal Analytics and Google Analytics 4.
- Navigate to the “UA Account Summaries” sheet.
- Click on Google Analytics Utilities > Universal Analytics > List Account Summaries.
- The script will identify all the Google Analytics accounts your email has access to and list a flattened table of accounts, properties, and views in the “UA Account Summaries” sheet.
- This sheet can then be used to select specific accounts, properties, or views for other functions, like listing custom dimensions or view settings.
- List account summaries.
- Select the specific views from which you want to retrieve view details.
- Navigate to the “View Details List” sheet.
- Click on Google Analytics Utilities > Universal Analytics > List View Details.
- The script will save most of the information indicated here for each selected view in the “View Details List” sheet.
- List account summaries.
- Select the specific views from which you want to retrieve event data.
- Navigate to the “Settings” sheet and enter the start date and end date for the time frame you are interested in.
- Navigate to the “Events” sheet.
- Click on Google Analytics Utilities > Universal Analytics > List Events.
- The script will save up to 1000 unique combinations of the event category, action, and label values in the view to the “Events” sheet. If no events existed in the view for the selected view, a row will be added for the view, but the event information will be set to “No Events”.
- List account summaries.
- Select the specific views from which you want to retrieve metric data.
- Navigate to the “Settings” sheet and enter the start date and end date for the time frame you are interested in.
- Navigate to the “UA Metrics Request” sheet.
- In row 1, specify the metric data you would like to retrieve from a given view by selecting a metric from the dropdown. You can also create expressions like ga:sessions/ga:users.
- Click on Google Analytics Utilities > Universal Analytics > List Metrics.
- This script will retrieve the specific metric data for each view and save the data from each view on a separate line.
- List account summaries.
- Since the account summaries sheet lists each sheet as a different row but custom dimensions exist at the property level, select one view per property for which you are interested and the script will identify the correct property.
- Navigate to the “UA Custom Dimensions” sheet.
- Click on Google Analytics Utilities > Universal Analytics > Custom Dimensions > List Custom Dimensions.
- The script will save all the custom dimensions for the selected properties to the “UA Custom Dimensions” sheet.
- Navigate to the UA Custom Dimensions - Modify sheet
- Enter the template property information that has the custom dimensions you want to copy to other properties
- Click on Google Analytics Utilities > Universal Analytics > Custom Dimensions > Modify Custom Dimensions > List Template Dimensions
- Check the boxes for the custom dimensions you want to copy to other properties
- Set “Overwrite Existing CD Settings” to True if the script should overwrite any existing custom dimension settings at the same index for the selected dimensions.
- Set the placeholder custom dimension name, scope, and if it should be active. A placeholder will be created if there is a gap between the custom dimensions that exist in a property and the custom dimensions that are selected to be created. (E.g. If there are 5 dimensions in the destination property but custom dimensions 10 - 15 are selected to be copied from the template, then custom dimensions 6-9 will be created as placeholders.)
- Note: If no placeholder information is provided, then it will default to these values:
- Name: Placeholder
- Scope: Hit
- Active: False
- Note: If no placeholder information is provided, then it will default to these values:
- Click on Google Analytics Utilities > Universal Analytics > Custom Dimensions > Modify Custom Dimensions > List Destination Properties
- Select the destination properties where the custom dimensions will be copied to.
- Click on Google Analytics Utilities > Universal Analytics > Custom Dimensions > Modify Custom Dimensions > Modify Custom Dimensions
- The script will now go through the process of updating and/or creating custom dimensions. The results will be recorded in the UA Custom Dimensions - Modify - Results sheet.
- List account summaries.
- Since the account summaries sheet lists each sheet as a different row but custom metrics exist at the property level, select one view per property for which you are interested and the script will identify the correct property.
- Navigate to the “UA Custom Metrics” sheet.
- Click on Google Analytics Utilities > Universal Analytics > Custom Metrics > List Custom Metrics.
- The script will save all the custom metrics for the selected properties to the “UA Custom Metrics” sheet.
- Navigate to the UA Custom Metrics - Modify sheet
- Enter the template property information that has the custom metrics you want to copy to other properties
- Click on Google Analytics Utilities > Universal Analytics > Custom Metrics > Modify Custom Metrics > List Template Metrics
- Check the boxes for the custom metrics you want to copy to other properties
- Set “Overwrite Existing CD Settings” to True if the script should overwrite any existing custom metric settings at the same index for the selected metrics.
- Set the placeholder custom metric name, scope, if it should be active, min value, max value, and type . A placeholder will be created if there is a gap between the custom metrics that exist in a property and the custom metrics that are selected to be created. (E.g. If there are 5 metrics in the destination property but custom metrics 10 - 15 are selected to be copied from the template, then custom metrics 6-9 will be created as placeholders.)
- Note: If no placeholder information is provided, then it will default to these values:
- Name: Placeholder
- Scope: Hit
- Active: False
- Min Value: blank
- Max Value: blank
- Type: Integer
- Note: If no placeholder information is provided, then it will default to these values:
- Click on Google Analytics Utilities > Universal Analytics > Custom Metrics > Modify Custom Metrics > List Destination Properties
- Select the destination properties where the custom metrics will be copied to.
- Click on Google Analytics Utilities > Universal Analytics > Custom Metrics > Modify Custom Metrics > Modify Custom Metrics
- The script will now go through the process of updating and/or creating custom metrics. The results will be recorded in the UA Custom Metrics - Modify - Results sheet.
Note: TIME event types must have a minimum value of at least 0 and cannot be left blank. If the event type is TIME, then the default value will be set to 0. If the max value is set to greater than the minimum value for a given metric, then the max value will be removed from any update or create request.
- List account summaries.
- Select the specific views from which you want to retrieve filters settings.
- Navigate to the “Filters” sheet.
- Click on Google Analytics Utilities > Universal Analytics > List Filters.
- The script will save all of the filters and their settings that are applied to the selected views to the “Filters” sheet.
- Since the same filter may be applied to multiple views, that filter and its settings may appear in the sheet multiple times. A filter will not show up in the sheet if it is not applied to one of the selected views.
- List account summaries.
- Since the account summaries sheet lists each sheet as a different row but audiences exist at the property level, select one view per property for which you are interested and the script will identify the correct property.
- Navigate to the “UA Audiences” sheet.
- Click on GA Utilities > Universal Analytics > Remarketing Audiences > List Settings.
- The script will save all the audiences and their respective settings that exist for the selected properties to the “UA Audiences” sheet. Audience size cannot be retrieved via the Google Analytics Management API and will not be saved to the sheet.
- List account summaries.
- Since the account summaries sheet lists each sheet as a different row but audiences exist at the property level, select one view per property for which you are interested and the script will identify the correct property.
- Navigate to the “UA Audiences” sheet.
- Click on Google Analytics Utilities > Universal Analytics > Remarketing Audiences > List Settings.
- Check the “Delete” box for each audience you want to delete.
- Click on Google Analytics Utilities > Universal Analytics > Remarketing Audiences > Modify.
- The script will attempt to delete the selected audiences.
- List account summaries.
- Select the specific views from which you want to retrieve the goal settings.
- Navigate to the “Goal Settings” sheet.
- Click on Google Analytics Utilities > Universal Analytics > Goals > List Goals.
- The script will save all of the goal settings for the selected views to the “Goal Settings” sheet. The number of goal completions will not be saved to the sheet.
- Enter the goals settings for the goals that are to be created in the “Goal Settings” sheet.
- Note: This process does not use or reference information in the “Account Summaries” sheet.
- Select which goals that are going to be created by checking the box under column W.
- Click on Google Analytics Utilities > Universal Analytics > Goals > Create Goals.
- The script will create the goals in the specified views based on the information entered in the “Goal Settings” sheet.
- List UA account summaries.
- When listing users, the script will automatically loop through all of the properties and views under a selected account, so you only need to select one row for any account you are interested in.
- Navigate to the “UA Users” sheet.
- Click on Google Analytics Utilities > Universal Analytics > Users > List Users.
- The script will save all of the account, property, and view user links for the selected accounts to the sheet. Only direct permissions will be listed. Batching of requests is not enabled. User information will only be listed if you have the necessary permissions.
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.
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.
- Navigate to “GA4 Account Summaries”
- Click on Google Analytics Utilities > Google Analytics 4 > 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 “GA4 Account Summaries” sheet.
- This sheet can then be used to select specific accounts and properties for other functions.
- List GA4 account summaries.
- Select each property for which you want to see details.
- Navigate to the “GA4 Property Details” sheet.
- Click on Google Analytics Utilities > Google Analytics 4 > Properties > List.
- The details for the selected properties will be listed in the “GA4 Property Details” sheet.
- Navigate to the “GA4 Property Details” sheet.
- Each row represents a separate data stream. Enter the following information:
- Account ID
- Property name
- Industry category
- Time zone
- Currency code
- Check the box for “Create”
- Click on Google Analytics Utilities > Google Analytics 4 > Properties > Modify.
- The script will attempt to create the selected properties.
- After listing your GA4 data streams, navigate to the “GA4 Property Details” sheet.
- Select the data streams you want to delete.
- Click on Google Analytics Utilities > Google Analytics 4 > Properties > Modify.
- The script will attempt to delete the selected properties.
- After listing your GA4 data streams, navigate to the “GA4 Property Details” sheet.
- Enter a new property name, industry category, time zone, or currency code for a given property.
- Check the “Update” box for each property you want to update.
- Click on Google Analytics Utilities > Google Analytics 4 > Properties > Modify.
- The script will attempt to update the selected properties.
- List GA4 account summaries.
- Select the properties from which you want to retrieve data streams.
- Navigate to the “GA4 Data Streams” sheet.
- Click on Google Analytics Utilities > Google Analytics 4 > Data Streams > List.
- The data streams for the selected properties will be listed in the “GA4 Data Streams” sheet.
- Navigate to the “GA4 Data Streams” sheet.
- Each row represents a separate data stream. Enter the following information:
- Property ID
- Stream Name
- Stream type: WEB_DATA_STREAM, ANDROID_APP_DATA_STREAM, or IOS_APP_DATA_STREAM
- Default URI, bundle ID, package ID (as relevant to the respective stream type)
- Check the box for “Create”
- Click on Google Analytics Utilities > Google Analytics 4 > Data Streams > Modify.
- The script will attempt to create the selected data streams.
- After listing your GA4 data streams, navigate to the “GA4 Data Streams” sheet.
- Select the data streams you want to delete.
- Click on Google Analytics Utilities > Google Analytics 4 > Data Streams > Modify.
- The script will attempt to delete the selected data streams.
- After listing your GA4 data streams, navigate to the “GA4 Data Streams” sheet.
- Enter a new stream name for a given data stream.
- Check the “Update” box for each data stream you want to update.
- Click on Google Analytics Utilities > Google Analytics 4 > Data Streams > Modify.
- The script will attempt to update the selected data streams.
- List GA4 account summaries.
- Select the properties from which you want to retrieve custom dimensions.
- Navigate to the “GA4 Custom Dimensions” sheet.
- Click on Google Analytics Utilities > Google Analytics 4 > Custom Dimensions > List.
- The custom dimensions for the selected properties will be listed in the “GA4 Custom Dimensions” sheet.
- Navigate to the “GA4 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 > Google Analytics 4 > Custom Dimensions > Modify.
- The script will attempt to create the selected custom dimensions.
- After listing your GA4 custom dimensions, navigate to the "GA4 Custom Dimensions” sheet.
- Check the “Archive” box for each custom dimension you want to archive.
- Click on Google Analytics Utilities > Google Analytics 4 > Custom Dimensions > Modify.
- The script will attempt to archive the selected custom dimensions.
- After listing your GA4 custom dimensions, navigate to the "GA4 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 > Google Analytics 4 > Custom Dimensions > Modify.
- The script will attempt to update the selected custom dimensions.
- List GA4 account summaries.
- Select the properties from which you want to retrieve custom dimensions.
- Navigate to the “GA4 Custom Metrics” sheet.
- Click on Google Analytics Utilities > Google Analytics 4 > Custom Metrics > List.
- The custom dimensions for the selected properties will be listed in the “GA4 Custom Metrics” sheet.
- Navigate to the “GA4 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 > Google Analytics 4 > Custom Metrics > Modify.
- The script will attempt to create the selected custom metrics.
- After listing your GA4 custom metrics, navigate to the "GA4 Custom Metrics” sheet.
- Check the “Archive” box for each custom metric you want to archive.
- Click on Google Analytics Utilities > Google Analytics 4 > Custom Metrics > Modify.
- The script will attempt to archive the selected custom metrics.
- After listing your GA4 custom metrics, navigate to the "GA4 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 > Google Analytics 4 > Custom Metrics > Modify.
- The script will attempt to update the selected custom metrics.
- List GA4 account summaries.
- Select the properties from which you want to retrieve conversion events.
- Navigate to the “GA4 Conversion Events” sheet.
- Click on Google Analytics Utilities > Google Analytics 4 > Conversion Events > List.
- The conversion events for the selected properties will be listed in the “GA4 Conversion Events” sheet.
- Navigate to the “GA4 Conversion Events” sheet.
- Enter the following:
- Property ID
- Event name
- Check the box for “Create”
- Repeat these steps in a new row for each conversion event you want to create
- Click on Google Analytics Utilities > Google Analytics 4 > Conversion Events > Modify.
- The script will attempt to create a new conversion event based on the information in each row.
- After listing your GA4 conversion events, navigate to the "GA4 Conversion Events” sheet.
- Check the “Delete” box for each conversion event you want to delete.
- Click on Google Analytics Utilities > Google Analytics 4 > Conversion Events > Modify.
- The script will attempt to delete the selected conversion events.
- List GA4 account summaries.
- Select the properties from which you want to retrieve Firebase links.
- Navigate to the “GA4 Firebase Links” sheet.
- Click on Google Analytics Utilities > Google Analytics 4 > Firebase Links > List.
- The Firebase links for the selected properties will be listed in the “GA4 Firebase Links” sheet.
- Navigate to the “GA4 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 > Google Analytics 4 > Firebase Links > Modify.
- The script will attempt to create a new Firebase link based on the information in each row.
- After listing your GA4 firebase links, navigate to the “GA4 Firebase Links” sheet.
- Check the “Delete” box for each Firebase link you want to delete.
- Click on Google Analytics Utilities > Google Analytics 4 > Firebase Links > Modify.
- The script will attempt to delete the selected Firebase links.
- List GA4 account summaries.
- Select the properties from which you want to retrieve Google Ads links.
- Navigate to the “GA4 Google Ads Links” sheet.
- Click on Google Analytics Utilities > Google Analytics 4 > Google Ads Links > List.
- The Google Ads links for the selected properties will be listed in the “GA4 Google Ads Links” sheet.
- Navigate to the “GA4 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 > Google Analytics 4 > Google Ads Links > Modify.
- The script will attempt to create a new Google Ads link based on the information in each row.
- After listing your GA4 Google Ads links, navigate to the “GA4 Google Ads Links” sheet.
- Check the “Delete” box for each Google Ads link you want to delete.
- Click on Google Analytics Utilities > Google Analytics 4 > Google Ads Links > Modify.
- The script will attempt to delete the selected Google Ads links.
- After listing your GA4 Google Ads links, navigate to the “GA4 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 > Google Analytics 4 > Google Ads Links > Modify.
- The script will attempt to update the selected Google Ads links.
- List GA4 account summaries.
- Select the properties from which you want to retrieve DV360 links.
- Navigate to the “GA4 DV360 Links” sheet.
- Click on Google Analytics Utilities > Google Analytics 4 > DV360 Links > List.
- The DV360 links for the selected properties will be listed in the “GA4 DV360 Links” sheet.
- Navigate to the “GA4 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 > Google Analytics 4 > DV360 Links > Modify.
- The script will attempt to create a new DV360 link based on the information in each row.
- After listing your GA4 DV360 links, navigate to the “GA4 DV360 Links” sheet.
- Check the “Delete” box for each DV360 link you want to delete.
- Click on Google Analytics Utilities > Google Analytics 4 > DV360 Links > Modify.
- The script will attempt to delete the selected DV360 links.
- After listing your GA4 DV360 links, navigate to the “GA4 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 > Google Analytics 4 > DV360 Links > Modify.
- The script will attempt to update the selected DV360 links.
- List GA4 account summaries.
- Select the properties from which you want to retrieve audiences.
- Navigate to the “GA4 Audiences” sheet.
- Click on Google Analytics Utilities > Google Analytics 4 > Audiences > List.
- The audiences for the selected properties will be listed in the “GA4 Audiences” sheet.
- Navigate to the “GA4 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 > Google Analytics 4 > Audiences > Modify.
- The script will attempt to create a new audience based on the information in each row.
- After listing your GA4 audiences, navigate to the “GA4 Audiences” sheet.
- Check the “Delete” box for each audience link you want to delete.
- Click on Google Analytics Utilities > Google Analytics 4 > Audiences > Modify.
- The script will attempt to delete the selected audiences.
- After listing your GA4 audiences, navigate to the “GA4 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 > Google Analytics 4 > Audience > Modify.
- The script will attempt to update the selected audience.
- List GA4 account summaries.
- Select the properties from which you want to retrieve user links.
- Navigate to the “GA4 Users” sheet.
- Click on Google Analytics Utilities > Google Analytics 4 > Users > List.
- The user links for the selected properties will be listed in the “GA4 Users” sheet. User links will only be displayed if the user requesting the information has the necessary permissions. If possible, the user links for the accounts associated with each property will also be listed. Only direct roles will be listed.
- Navigate to the “GA4 Users” sheet.
- Enter the following in a new row:
- Account User Link:
- Account ID
- User Email
- Permissions - Must be one of the following:
- predefinedRoles/viewer
- predefinedRoles/analyst
- predefinedRoles/editor
- predefinedRoles/admin
- predefinedRoles/no-cost-data
- predefinedRoles/no-revenue-data
- Property User Link: 4. Account ID 5. Property ID 6. User Email 7. Permissions - Must be one of the following: 7. predefinedRoles/viewer 8. predefinedRoles/analyst 9. predefinedRoles/editor 10. predefinedRoles/admin 11. predefinedRoles/no-cost-data 12. predefinedRoles/no-revenue-data
- Account User Link:
- Check the “Create” box for the row.
- Click on Google Analytics Utilities > Google Analytics 4 > Users > Modify.
- The script will attempt to create a new user link based on the information in each row. Batching of requests is not enabled.
- After listing your GA4 user links, navigate to the “GA4 Users” sheet.
- Check the “Delete” box for each user link you want to delete.
- Click on Google Analytics Utilities > Google Analytics 4 > Users > Modify.
- The script will attempt to delete the selected user links. Batching of requests is not enabled.
- After listing your GA4 user links, navigate to the “GA4 Users” sheet.
- The following can be updated:
- Permissions
- Check the “Update” box for each user link you want to update.
- Click on Google Analytics Utilities > Google Analytics 4 > Users > Modify.
- The script will attempt to update the selected user links. Batching of requests is not enabled.
- List GA4 account summaries.
- Select the properties for which you want to generate a report.
- Navigate to the “GA4 Report Settings” sheet.
- Enter the information as indicated for rows 4 - 7.
- 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 Conversions
- 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.
- 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:
- If your template includes one or more slides that need to be duplicated, then you must navigate to the “GA4 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 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 > Health Report > Create Report
- Once the health report has been created, a link to the report will be placed in cell D1 in the “GA4 Report Settings” sheet.
- 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.