Google Universal Analytics tool
Configuration options in Dynamic Tag Management for Google Universal Analytics.
<Web Property Name> > Overview > Add a Tool > Google Universal Analytics
Google Universal Analytics is configured as a tool in the Dynamic Tag Management interface.
Add a tool
The name of this instance of Google Analytics.
Production Account ID
Dynamic Tag Management allows you to point to production and staging accounts for data collection. Your staging account number will be used in your development or test environment, and will keep your testing data separate from production. Dynamic Tag Management will automatically install the correct account in each environment.
Enable support for Google Universal Analytics Premium features
Enables the max dimensions and metrics increase from 20 to 200.
Google Universal Analytics page code is already present
Prevents Dynamic Tag Management from installing Google Analytics page code if it is already present on your site. This feature allows you to use Dynamic Tag Management to add to your existing implementation, rather than starting from scratch. Ensure that you properly set your tracker name when checking this box.
Enable EU compliance for Google Universal Analytics
Enables or disables tracking based on the EU privacy cookie.
When a page is loaded, the system checks to see if a cookie called sat_track is set (or the custom cookie name specified on the Edit Property page). Consider the following information:
You are responsible for setting the sat_track (or custom named) cookie to false if a visitor opts out. You can accomplish this using custom code:
You must also have a mechanism to set that cookie to true if you want a visitor to be able to opt in later:
Anonymize IP addresses
Ensures that IP addresses are never recorded.
Forces the use of HTTPS.
The tracker name you want to use for your Google Analytics installation. If you specified that Google Analytics is already installed on your site's pages, you must use the same name here for proper data collection. The default tracker name for Google Analytics is blank.
Google Analytics Code
There are two ways to host Google Analytics code:
To have Google Analytics only capture a sample of your site's data, specify the sample rate for Data Sample. To gather all data, leave at 100%.
Site Speed Sample
You can also specify the sample rate for capturing data on site speed and page performance. The Google Analytics default is 1%.
Social - Track Facebook like, unlike, and share
Enables automatic link tracking on the above social buttons on your site.
Social - Track official Twitter button use
Enables automatic link tracking on the Twitter button on your site.
|Force lowercase on all pageview, event, and custom variable calls|
Force all page views, events, and custom variables sent to GA to be in all lowercase letters (a best-practice recommendation).
Always send HTTP referrer URL
Typically, HTTP referrals come from outside the domain on which you implemented Google Universal Analytics. Enable this setting if you have many subdomains and want all URLs to be sent.
Load Google Analytics page code at Page Top or Page Bottom
You can control where and when to load the page code (on a rule-by-rule basis).
Global Settings - Enable automatic linker link tracking
For more information from Google, click here .
|Visitor Cookie Timeout|
Control how long a cookie lasts for a visitor to count as a repeat visitor. The default value is two years.
Name of the cookie used to store analytics data.
You can restrict whether a Google Analytics cookie only functions with a specific folder on your site.
You can change the default cookie domain. If you specified that your web property spans multiple domains or subdomains, Dynamic Tag Management configures this automatically.
Legacy Cookie Domain
This field is used to configure how analytics.js searches for cookies generated by earlier Google Analytics tracking scripts such as ga.js and urchin.js .
If your campaign parameters do not show up in the default variables (like utm_source, etc.) configure those here.
Set # as a query string delimiter
Allows Dynamic Tag Management to recognize values in the URL after the # symbol as URL parameters.
The code you add here is executed after each hit has successfully been reported to Google Analytics.
Use the editor to customize the page code. This code is inserted into every page immediately before the call to track the page view. If you want to cancel the initial default _trackPageview command and write your own to customize page names, be sure to "return false;" at the end of the script.
Customize page code
Use Tracker Name field to customize the page code. This code is inserted into every page immediately before the call to track the page view.
If you want to cancel the initial default pageview command and write your own to customize page names, be sure to "return false;"
Call Google Universal Analytics objects in DTM using scripts
When you create a Google Analytics Universal tool, you can choose between using the GA Default Name, DTM Generated Name, or Specific Name.
GA default name
When using the GA default name, you can use Google Analytics Universal as follows in script:
DTM generated name
When using the GA DTM generated name, you can use Google Analytics Universal as follows in script.
In this example, the tracker name is pulled from the DTM Google Analytics Universal interface:
When using Specific Name, you can use Google Analytics Universal as follows in script.