Google Analytics Tool

Configuration options in dynamic tag management for Google Analytics.

<Web Property Name> > Overview > Add a Tool > Google Analytics

Google Analytics is configured as a tool in the dynamic tag management interface.

Setting Description
Tool Name

The name of this instance of Google Analytics.

Production Account ID

You can point to production or staging accounts for data collection. Your staging account number is used in your development or test environment. It keeps your testing data separate from production. Dynamic tag management automatically installs the correct account in each environment.

Staging Account ID
Enable support for Google Analytics Premium features

Enable if you are a Google Analytics Premium customer.

Google Analytics page code is already present

Check this box to prevent dynamic tag management from installing Google Analytics code if it is already present on your site. This way, you can use dynamic tag management to add to your existing implementation, rather than starting a new implementation. Ensure that you properly set your tracker name when checking this box.

Enable EU compliance for Google 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:
  • If the cookie does not exist or if the cookie exists and is set to anything but true, the loading of the tool is skipped when this setting is enabled. Meaning, any portion of a rule that uses the tool will not apply.

    If a rule has analytics with EU compliance on and third-party code, and the cookie is set to false, the third-party code still runs. However, the analytics variables will not be set.

  • If the cookie exists but it is set to true, the tool loads normally.

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:

_satellite.setCookie(“sat_track”, “false”);

You must also have a mechanism to set that cookie to true if you want a visitor to be able to opt in later:

_satellite.setCookie(“sat_track”, “true");
Tracker Name

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:

  • Google Hosted: You can host the code through Google.
  • URL: Or you can simply provide the URL to the file here. Dynamic tag management then consumes this code for its implementation of Google Analytics.
Sample Defaults - Data Sample

To have Google Analytics capture only a sample of your site's data, specify the sample rate. To gather all data, leave 100%.

Sample Defaults - Site Speed

You can specify the sample rate for capturing data on site speed and page performance. The 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).

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

Automates the tracking of cross-domain property. Google Analytics customers need to implement JavaScript codes for links to different but internal domains, so that cookies are shared across internal domains.

For more information from Google, click here.

Element Tag or Selector to INCLUDE

Specify the name of the tag you would like to track. Examples: A, IMG, INPUT, DIV, etc.

Element Tag or Selector to EXCLUDE

Specify the name of any tags or selectors you do not wish to track.

Example: a[target="_blank"]

Session Cookie Timeout

How much time elapses before Google Analytics expires a session. Default is 30 minutes.

Visitor Cookie Timeout

Control how long a cookie lasts for a visitor to count as a repeat visitor. Default is two years.

Cookie Path

You can restrict whether a Google Analytics cookie only functions with a specific folder on your site.

Cookie Domain

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.

Set # as a query string delimiter

Allows dynamic tag management to recognize values in the URL after the # symbol as URL parameters.

Campaign Keys in URL Parameters

If your campaign parameters do not show up in the default variables (like utm_source, etc.), configure them here.

Enable campaign tracking for cookies

Allows you to set campaigns around cookies.

Campaign Cookie Timeout

Control how long a cookie lasts for a campaign. Default is 30 days.

Classify the following keywords as direct

Create a list of organic keywords that are automatically classified as direct traffic, comma separated. This list is most often used to classify brand searches as direct. Adobe does not recommend this practice.

Classify the following referrers as direct

Create a list of referral sources that are automatically classified as direct traffic, comma separated. This is most often used to classify affiliate or in-network searches as direct. Adobe does not recommend this practice.

Clear Keywords & Referrers from User Cookies

Removes keyword and referrer data from the Google Analytics user cookies set from your site.

Open Editor

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.

Call Google Analytics Objects in DTM Using Scripts

When you set up a Google Analytics Classic tool, you can choose between using the GA Default Name, DTM Generated Name, or Specific Name.

This section contains the following information:

GA Default Name

When using the GA default name, you can use Google Analytics as follows in a script.

Without trackerName as variable:

_gaq._getAsyncTracker()._trackPageview();

With trackerName:

tracker = _gaq._getAsyncTracker();
tracker._trackPageview()

DTM Generated Name

When using the GA DTM generated name, you can use Google analytics as follows in script.

Get the tracker name in DTM Google analytics classic interface:

Without trackerName as variable:

_gaq._getAsyncTracker("ddf16922edc9c2318ea19ad8369fcc92")._trackPageview();

With trackerName:

tracker = _gaq._getAsyncTracker("ddf16922edc9c2318ea19ad8369fcc92");
tracker._trackPageview()

Specific Name

When using the specific name option, you can use Google Analytics classic as follows in script.

Without trackerName as variable:

_gaq._getAsyncTracker("alexisclassic")._trackPageview();

With trackerName:

tracker = _gaq._getAsyncTracker("alexisclassic");
tracker._trackPageview()