How to Exclude Referrals in Google Analytics 4

Cody Schneider8 min read

Ever look at your Google Analytics 4 traffic reports and feel like something is off? You see sales attributed to PayPal or a third-party booking app, even though you know your customer really came from a Facebook ad. This isn't just a small annoyance, it's a data quality problem that breaks your attribution and can lead you to make bad decisions about your marketing budget. This article will walk you through exactly why this happens and give you the step-by-step instructions to fix it by setting up referral exclusions in GA4.

GraphedGraphed

Your AI Data Analyst to Create Live Dashboards

Connect your data sources and let AI build beautiful, real-time dashboards for you in seconds.

Watch Graphed demo video

Why Clean Referral Data is a Big Deal

In marketing analytics, good data is everything. When your attribution is clean, you know which channels drive traffic, which campaigns convert best, and where to invest your time and money. When it's messy, you're flying blind. Unwanted referral traffic is one of the most common ways this data gets messy.

Here’s a classic example: A customer clicks on your Google Ad, browses your site, adds a product to their cart, and proceeds to checkout. They are then redirected to PayPal to complete their payment. After paying, PayPal sends them back to your site's "thank you" page. From Google Analytics' perspective, the last place that visitor came from before landing on the confirmation page was paypal.com. As a result, GA4 credits PayPal with the sale, not the Google Ad that actually did the work.

This issue isn't limited to just payment gateways. Common sources of unwanted referral traffic include:

  • Payment providers: PayPal, Stripe, Shopify Payments, Affirm, etc.
  • Third-party booking tools: Calendly, Acuity Scheduling, or other integrated scheduling apps.
  • Shopping carts hosted on a different domain: Some legacy e-commerce platforms can cause this issue.
  • Email marketing platforms: If a user has to log in through a separate domain to manage their subscription.
  • Self-referrals: Traffic from your own subdomains (e.g., blog.yourwebsite.com) can sometimes be misattributed as referral traffic.

When these sources get credit, your real marketing efforts get ignored in your reports. You might end up pausing a high-performing campaign because it looks like it isn't driving any conversions, all while believing that PayPal is your best marketing channel.

Free PDF Guide

AI for Data Analysis Crash Course

Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.

Step 1: Find the Unwanted Referrals in Your GA4 Reports

Before you can exclude these domains, you need to identify them. You’ll want to hunt through your reports to see which domains are showing up as referrers that shouldn't be.

How to find your referral sources in GA4

Follow these clicks to get a list of all your referral sources:

  1. Log in to your Google Analytics 4 account.
  2. On the left-hand navigation menu, click on Reports.
  3. Under the Life cycle collection, click on Acquisition, and then select the Traffic acquisition report.
  4. You'll see a table with a default channel grouping. Click the small drop-down arrow next to Session default channel group and change this primary dimension to Session source.
  5. To see only referral traffic, use the search box directly above the table. Type "referral" into the search bar and press Enter.

You'll now have a list showing all the unique domains that are sending referral traffic to your site. Take a few minutes to scroll through this list and identify any domains that are part of your business operations but aren't true marketing channels.

Spotting the troublemakers

Look for the culprits we mentioned earlier: payment gateways like stripe.com or paypal.com, scheduling tools like calendly.com, or third-party apps that are part of your user's experience. You might also see your own domain in this list, which is a classic "self-referral" problem.

Copy these domain names and add them to a simple text file or notepad. This will be your list of domains to exclude in the next step.

GraphedGraphed

Your AI Data Analyst to Create Live Dashboards

Connect your data sources and let AI build beautiful, real-time dashboards for you in seconds.

Watch Graphed demo video

Step 2: How to Exclude Unwanted Referrals in GA4

Once you have your list of domains, adding them to the exclusion list in GA4 is fairly straightforward. This is done through your data stream settings, not in the main reporting tabs.

Here are the detailed steps:

  1. First, go to the Admin section by clicking the gear icon in the bottom-left corner of the GA4 interface.
  2. In the Property column (the middle one), find and click on Data Streams.
  3. You will see a list of your data streams. Click on the web stream you want to configure. Usually, there will only be one.
  4. This will open the Web stream details page. Scroll to the bottom and click on Configure tag settings under the Google tag section.
  5. A new settings screen will load. Under the Settings section, you might need to click Show more to reveal more options. Find the one named List unwanted referrals and click on it.
  6. Now you can start adding the domains you want to exclude. Under Match type, leave the selection as Referral domain contains. This captures all traffic from that domain, including all its subdomains (e.g., using paypal.com here will also block checkout.paypal.com etc.). This is the setting you'll want to use in almost every scenario.
  7. In the Domain field, enter the first domain from your list (e.g., paypal.com). Do not include "https" or "www." — just the root domain.
  8. Click the Add condition button to add more exclusion rules. Repeat the process for every domain on your list.
  9. Once you've added all your unwanted referral domains, click the Save button in the top right corner.

That's it! From this point forward, GA4 will stop treating traffic from those domains as a referral. It will effectively "look past" that referral touchpoint and maintain the original traffic source of the session. So, if a user came from a Facebook Ad and then went through Stripe to complete a purchase, GA4 will now correctly credit the Facebook Ad.

What About Self-Referrals? A Quick Note for Universal Analytics Users

If you used Google's previous version, Universal Analytics, you might remember having to set up referral exclusions specifically for your own domain to prevent self-referrals. This was a common and frustrating issue.

The good news is that GA4 is smarter about this. Any domain that you've listed as part of your website's configuration is automatically treated as a self-referral. To make sure everything is working correctly, head back to your Configure tag settings screen (the one we just used in Step 2), and click on Configure your domains.

Check this list to make sure it includes the primary domain and any sub-domains you operate that users can navigate between (like shop.yoursite.com and blog.yoursite.com). As long as all your domains are listed here, GA4 will automatically ignore any traffic originating from them and maintain the original traffic source.

Free PDF Guide

AI for Data Analysis Crash Course

Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.

Common Questions and Best Practices

  • Will this update my old data? No! The exclusion of referrals will only apply to data collected moving forward. It's non-retroactive and cannot change your historical data. That's why it's important to set up these exclusions as soon as possible after setting up your GA4 property.
  • How many domains can I add? You can add up to about 50 domains per data stream in your referral exclusion list, which is enough for most businesses.
  • What match type should I use? For nearly every use case, Referral domain contains is the best bet. That gives you the most flexibility and covers all subdomains of a main domain without having to specify each one individually.
  • I've excluded domains, but I'm still seeing problems. If you're still seeing problematic referrals, double-check for spelling mistakes in your excluded list. Also, ensure you didn't accidentally include "http://" or "www." when entering the domains.

Final Thoughts

Cleaning up your GA4 referral data isn't just about making your reports look better, it's about making better decisions. When you exclude payment gateways, third-party apps, and incorrect referrals, you're ensuring the data you rely on is reliable and your attribution modeling is accurate. This leads to more confidence in your marketing plans and a clearer understanding of what's actually working.

If you found the process of navigating GA4's menus just to fix one part a bit cumbersome, you're not alone. We've felt that frustration too. The manual process of digging through platforms to get clearer answers is why we built Graphed. Now, instead of manually configuring reports one by one and jumping between GA4, ad accounts, and CRMs, we let you connect all your data sources in one place and get answers in real-time, just by using natural language. You can build a full dashboard showing your top-performing campaigns and their ROI simply by asking, "Show me Facebook ad spend vs. revenue by campaign over the last 30 days." No more menus, no more manual reporting.

Related Articles