To set up a new Universal Analytics tag:
- On the Workspace Overview screen, click New Tag. Or from anywhere in your container, click Tags > New. A new tag definition screen will appear.
- Click Tag Configuration and choose Universal Analytics.
- Select the desired Track Type. (For example, use Page View on a website to measure which pages your users visit. Use Event if you want to measure a specific interaction, such as a button click on a promotion.)
- Select or create a Google Analytics Settings variable:
- To select a Google Analytics Settings variable:
- Select the desired variable from the menu. Your Google Analytics ID and all other settings from that variable will be applied to your tag.
- To create a Google Analytics Settings variable:
- Select New Variable…
- In the Variable Configuration screen, enter your Google Analytics ID.
- Cookie Domain: If you have no other Google Analytics tags deployed on your site via analytics.js or from Tag Manager, you should leave this value set to "auto". If you have other Google Analytics tags setup on your site or in Tag Manager, you should confirm that the Cookie Domain value is consistent.
- If you require additional settings such as setting custom fields, custom dimensions, custom metrics, content groups, display advertising features, Enhanced Ecommerce features, or cross domain measurement, click More Settings and configure the relevant fields.
- Click Save.
- You will be prompted to rename the variable if you have not done so already. You may opt to choose to accept the default setting or enter a name of your own. Click Save to complete the tag setup.
- To select a Google Analytics Settings variable:
- If required, configure your tag to dynamically disable Advertising Features or Advertising Personalization.
- Click Triggering to choose a trigger that will make the tag fire. You may select an existing trigger, or click the + icon to define a new one.
Some examples of the possible Google Analytics tag configurations that can be set up from Tag Manager include:
- Basic web page activity: This is the most common implementation of Google Analytics. Set Track Type to “Page View”, and in the Triggering section select a trigger that will fire on all pages.
- Measure events: You can use Tag Manager to configure and deploy Google Analytics tags that will measure specific events, such as clicks on links or buttons on a web page. Learn more.
- Measure activity across domains: Use Tag Manager to understand user activity across multiple domains. Learn more.
- Ecommerce: Measure ecommerce usage.
- Dynamic remarketing: Implement dynamic remarketing with Google Analytics to show your users ads that contain products and services that they previously viewed.
Configuration settings for Universal Analytics tags
Google Analytics tags can be configured within Google Tag Manager to have the same functionality as most manual code implementations. (Note: custom Universal Analytics plugins are not currently supported in Tag Manager). Configuration settings are found in the Google Analytics settings variable configuration, or can be set at the tag level in Enable overriding settings in this tag > More Settings:
Fields to set: Use the +Add Field button to create field name/value pairs.
Custom Dimensions: Use the +Add Custom Dimension button to add custom dimensions. Provide an Index and Dimension Value for each entry. Learn more about using custom dimensions.
Custom Metrics: Use the +Add Custom Metric button to add custom metrics. Provide an Index and Metric Value for each entry. Learn more about using custom metrics.
Content Groups: Use the +Add Custom Content Group button to add custom content groups. Provide an Index and Content Group for each entry. Learn more about using content groups.
Enable Display Advertising Features: Enables the
Enhanced Ecommerce: Send data that measures ecommerce-related interactions such as when customers have added items to their orders, when they have started the checkout process, and when they have completed a purchase. You can use enhanced ecommerce to identify segments of customers who fall out of the ecommerce funnel. Learn more
Cross Domain Tracking: Measure separate, top-level domains as a single entity to combine data for those domains together in the same Google Analytics reports. Learn more about cross domain measurement. Additional options include:
- Auto Link Domains: Enter a comma-separated list of domains to automatically share a client ID across multiple domains.
- Use Hash As Delimiter: Use an octothorpe (#) instead of a question mark (?) to append cookie values to URLs. Set this value to true, false, or to a Tag Manager variable that returns either true or false.
- Decorate Forms: Adds measurement information to the form action. Set this value to true, false, or to a Tag Manager variable that returns either true or false.
Advanced Configuration: These controls provide extended functionality and should be used by experienced users only.
- Global Function Name: Rename the global function used by the Universal Analytics Tag. Learn more.
- Enable Enhanced Link Attribution: Enhanced Link Attribution improves the accuracy of your In-Page Analytics report. When a page contains multiple links to the same URL, it adds a unique element ID to each link. Set this value to true, false, or to a Tag Manager variable that returns either true or false. Learn more
- Set Tracker Name: Use of named trackers is highly discouraged in Tag Manager. Learn more