Configure your Google tag settings

The Google tag lets you send data from your website to linked Google product destinations to help you measure the effectiveness of your website and ads. You can use a single Google tag implementation for all your products and accounts.

When you’ve set up your Google tag, you can configure the tag settings.

This article explains how you can configure your Google tag settings. You can also Manage your Google tag by editing your Google tag name, combining Google tags, or adding or removing destinations.

Configure your Google tag settings

An illustration of the Configuration tab on Google tag.

You can configure your tag settings from the “Configuration” tab. To view your tag settings, navigate to your Google tag configuration page. Click Show all to see all available settings.

Note: Tag settings affect the behavior of your Google tag and the data sent to configured destinations. Some settings may be more or less relevant for you depending on which products you use.
Configuration settings Description Relevant to Google Analytics Relevant to Google
Ads
Manage automatic event detection Configure which types of events your Google tag should automatically detect for measurement in associated destinations. Yes Yes
Configure your domains Specify a list of domains for cross-domain measurement. Yes Yes
Include user-provided data from your website Improve measurement and get more insights with data that people provide to your website. Google will only use the data you share to provide you services, including technical support. Google will not share your data with other advertisers. Not Currently Yes
Collect Universal Analytics events Collect an event each time a ga() custom event, timing, or exception call from Universal Analytics occurs on your website. Yes Not Currently
Define internal traffic Define IP addresses whose traffic should be marked as internal. Yes Not Currently
List unwanted referrals Specify domains whose traffic should not be considered to be referrals. Yes Not Currently
Adjust session timeout Set how long sessions can last. Yes Not Currently
Override cookie settings Change how long cookies last and how they are updated. Yes Not Currently

Configure your Google tag settings

Manage automatic event detection

Select which types of events your Google tag should automatically detect for measurement in associated destinations. By default, all event types are turned on.

If you turn off automatic event detection, no products or accounts that use this Google tag will be able to receive associated data. You may want to consider turning off collection of these events in your destination instead.

By default, all event types are turned on. Click the switch to turn the following event types off:

  • Page views: Detect a page view event each time a page loads. You can't disable this event type.
  • Page views on browser history change: Detect a page view event each time the website changes the browser history state. This setting is useful for detecting page views in single-page applications.
  • Scrolls: Detect scroll events each time a visitor gets to the bottom of the page.
  • Outbound clicks: Detect an outbound click event each time a visitor clicks a link that leads them away from your domain(s). By default, outbound click events will occur for all links leading away from the current domain. Links to domains configured for cross-domain measurement (in the “Configure your domains” setting) will not trigger outbound click events.
  • Form interactions: Detect a form interaction or form submission event each time a visitor interacts with a form on your site.
  • Video engagement: Detect video play, video progress, and video complete events as visitors view embedded videos on your site. By default, video events will be automatically detected for YouTube videos embedded in your site with JS API support enabled.
  • File downloads: Detect a file download event each time a link is clicked with a common document, compressed file, application, video, or audio extension.

Configure your domains

Specify all of your domains that use this tag. This list enables cross-domain measurement and further defines which links on your site do not trigger Outbound Click events when using automatic event detection.

  1. Select to include domains that match the conditions you select. You can select a match type that:
    1. Contains
    2. Begins with
    3. Ends with
    4. Exactly matches
    5. Matched RegEx
  2. Click Add conditions to add additional conditions.
  3. When you’ve specified all the domains that use this tag, click Save.

The changes you make here could affect other Google tags loaded on the same page.

Include user-provided data from your website

User-provided data helps improve measurement and give you more insights with data that people provide to your website. Google will only use the data you share to provide you services, including technical support. Google will not share your data with other advertisers.
Note: No data will be sent to a destination if you have not agreed to the user-provided data terms in that destination product.
  1. The checkbox for “Include user-provided data from your website” will be checked by default. You can choose to uncheck it. Note: If you choose to turn off “User provided data”, no products or accounts that use that Google tag will be able to receive data from this feature.
  2. Choose how you want to include user-provided data. User-provided data will be hashed to keep it private and then sent along with other event data. Select one of the following:
    1. Automatic collection: Automatically inspect the page for strings that match a pattern for email addresses.
    2. Manual configuration:
      1. Email
      2. Phone number
      3. Name and address
      4. Specify CSS selectors or JavaScript variables on your page.
    3. In page code: Add JavaScript code to your website that sends an event.
  3. Click Save.
Note: The use of this tag is subject to the terms governing the service where it is used.

Collect Universal Analytics events

Turn on the switch to collect an event each time a legacy ga() custom event, timing, or exception call from Universal Analytics occurs on your website.

Define internal traffic

Define IP addresses whose traffic should be marked with a custom traffic type identifier. Incoming traffic from matching IP addresses will have a traffic_type parameter appended with the selected value.
Tip: This feature can be used to mark internal traffic in coordination with settings in destination products, like data filtering in Google Analytics.
  1. Click Create.
  2. In the top right corner, select the pencil icon to edit the configuration.
  3. In the “Rule name” section, give your rule a descriptive name.
  4. In the “traffic_type” section, choose the name of the traffic_type parameter. The default value is ’internal’.
  5. In the “IP address” section, select your match type and enter a value. If you don’t know your IP address, click What’s my IP address?. Matching can be done on either IPv4 or IPv6 addresses. Ranges of IP addresses can be specified using CIDR notation, such as 192.0.2.0/24 or 2001:db8::/32. Learn more about CIDR notation
  6. Use distinct values to help you differentiate and filter different sets of traffic.
  7. Click Add conditions. When you’re done, click Create.

List unwanted referrals

Specify domains whose traffic should not be considered to be referrals. This feature will append the ignore_referrer parameter to events on pages where the traffic source matches the specified domains.
Tip: This feature can be used to specify referral traffic that you don’t want to affect your measurement in destination products (for example, ignoring unwanted referrals in Google Analytics).
  1. Select to ignore referrals that match any of the following conditions as traffic sources. You can select a match type that:
    1. Contains
    2. Begins with
    3. Ends with
    4. Exactly matches
    5. Matches RegEx
  2. Click Add conditions. When you’re done, click Create.

Adjust session timeout

Products like Google Analytics 4 that receive data from the Google tag use sessions to measure periods of user activity on websites where the tag is installed. Use this feature to change how long sessions should last by adjusting how long it takes before sessions expire due to inactivity or become engaged sessions.

  1. Adjust session timeout by selecting the hours and minutes. A session is initiated when a webpage is opened. A session ends after a period of inactivity on the part of the user. The default timeout is 30 minutes but can be adjusted here.
  2. Adjust timer for engaged sessions by selecting the number of seconds. A session becomes an “engaged session“ if it lasts longer than a certain amount of time. The default threshold for engagement time is 10 seconds but can be adjusted here. Learn more about sessions
  3. Click Save.

Override cookie settings

Change how long cookies last and how they are updated. You can override your Google first-party cookie settings. Learn more about cookies and user identification

Google tags use first-party cookies for various purposes. These cookies have default expiration and update settings, but you can customize these settings by overriding them.

  1. Click the checkbox to override the default expiration and update settings of cookies used for analytics purposes.
  2. Set how long before analytics cookies expire. Cookie expiration time will be the current time when the cookie is set or updated plus the value of this field. Learn more about cookie expiration
  3. Under “Cookie update” choose:
    1. Set cookie expiration time relative to the most recent visit: By default, each time a user visits your site, your Google tags update the expiration date of associated cookies, extending the cookie lifetime relative to the user's most recent visit.
    2. Set cookie expiration time relative to first visit: You can optionally set your cookie expiration time relative to your users’ first visit, in which case the expiration is set once and never updated. Learn more about cookie update
  4. Click Save.

When you've configured your Google tag settings, you can manage your Google tag from the “Admin” tab.

Related links

Was this helpful?
How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
102259
false
false