[UA] Referral exclusions [Legacy]

You are viewing a legacy article about Universal Analytics. Learn more about Google Analytics 4 replacing Universal Analytics.
This Universal Analytics feature is only available for websites using gtag.js or analytics.js. Using ga.js (Classic Analytics) will stop Referral Exclusions from working.

Referral traffic is the segment of traffic that arrives on your website through another source, like through a link on another domain. Analytics automatically recognizes where traffic was immediately before arriving on your site, and displays the domain names of these sites as the referral traffic sources in your reports.

How excluding referral traffic affects your data

By default, a referral automatically triggers a new session. When you exclude a referral source, traffic that arrives to your site from the excluded domain doesn’t trigger a new session. If you want traffic arriving from a specific site to trigger a new session, don't include that domain in this table.

Because each referral triggers a new session, excluding referrals (or not excluding referrals) affects how sessions are calculated in your account. The same interaction can be counted as either one or two sessions, based on how you treat referrals.

For example, a user on my-site.com goes to your-site.com, and then returns to my-site.com. If you do not exclude your-site.com as a referring domain, two sessions are counted, one for each arrival at my-site.com. If, however, you exclude referrals from your-site.com, the second arrival to my-site.com does not trigger a new session, and only one session is counted.

Referral exclusion is helpful when you employ cross-domain tracking so that multiple sessions aren't triggered when a user engages with more than one of your domains in a single session.

If you exclude third-party domains that refer traffic, a new session is still triggered by the referral, but the source/medium information for that referring domain appears as (direct/none) in your reports.

Learn more about how sessions work in Analytics

Common uses for referral exclusions

Third-party payment processors

A common use for this feature is to prevent third-party shopping carts from starting second sessions. When the third-party shopping cart is in the exclusion list, a user will no longer initiate a new session, and won't be counted as a referral when they return to your order-confirmation page after checking out on the third-party site.

Cross-domain tracking

When your domain is in the exclusion list, then users can cross from one subdomain on your site to another without starting a new session. Without your domain in the exclusion list, when a user goes from one subdomain to another on your site, Analytics sees that as a referral from one hostname to another and starts a new session. As a result, your reports can have artificially inflated session counts.

When you initially set up your Analytics property, your domain is automatically added to the referral exclusion list. As a result, you shouldn't see self-referrals if you have a web property that tracks multiple subdomains.

The referral exclusion list

Only traffic from the domain entered in the referral exclusions list and any subdomains is excluded.

The referral exclusion list uses CONTAINS matching. For example, if you enter example.com, then traffic from sales.example.com is also excluded (because the domain name contains example.com).

Adding referral traffic sources

  1. Sign in to your Analytics account.
  2. Click Admin.
  3. In the ACCOUNT column, select the Analytics account that contains the property you want to work with.
  4. In the PROPERTY column, select a property.
  5. Click Tracking Info.
  6. Click Referral Exclusion List.
  7. To add a domain, click +ADD REFERRAL EXCLUSION.
  8. Enter the Domain name.
  9. Click Create to save.

Removing referral traffic sources

If you've added a domain to the list of exclusions, you can reintroduce that traffic as a referring source in your reports by removing the domain from the list of excluded domains.

Follow steps 1-6 above. In the table, click remove in the row of the domain you want to remove. Click Delete domain to save.

Make sure the referral exclusion list is working

The best way to validate that the referral exclusion list is set up correctly is to use Google Tag Assistant Recordings. When you make a session that crosses domains, it can tell you instantly whether an extra session was created.

View an example report that shows how Tag Assistant Recordings highlights the problem.

Why returning users from excluded domains still appear in your reports

This issue results from the default campaign timeout of 6 months:

  • User A arrives to your site via a referral from Domain B before you add that domain to the Referral Exclusion List.
  • That first session is attributed to Domain B.
  • You add Domain B to the Referral Exclusion List.
  • User A returns directly to the site (e.g., via a bookmark).
  • Because of the last-non-direct-click attribution model, this second session is also attributed to Domain B.

Related resources

For more information on traffic sources:

Was this helpful?

How can we improve it?
true
Choose your own learning path

Check out google.com/analytics/learn, a new resource to help you get the most out of Google Analytics 4. The new website includes videos, articles, and guided flows, and provides links to the Google Analytics Discord, Blog, YouTube channel, and GitHub repository.

Start learning today!

Search
Clear search
Close search
Google apps
Main menu
15601206925219985175
true
Search Help Center
true
true
true
true
true
69256
true
false