How to Exclude Referral Traffic in Google Analytics
Nothing skews your marketing data faster than bad referral traffic. One minute you think your influencer collaboration is driving sales, and the next you realize your top "referring site" is actually your own payment processor. This article breaks down how to find and exclude this misleading traffic from both Universal Analytics and Google Analytics 4, so you can trust your reports and accurately measure what's working.
What is Referral Traffic and Why Does It Distort Your Data?
In simple terms, referral traffic consists of visitors who land on your website by clicking a link from another site separate from a major search engine. In a perfect world, your referral report is a list of happy partners, great press mentions, and affiliate sites sending you qualified leads.
However, this report often gets cluttered with sources that aren't true referrals. The most common offenders are:
- Payment Gateways: When a customer buys something on your site, they might be sent to PayPal, Stripe, Shopify Payments, or another processor to complete their purchase. When they're redirected back to your "thank you" page, Google Analytics sees this as a new session starting from
paypal.com. It incorrectly credits the sale to PayPal instead of the original source, like your Google Ad or email campaign. - Self-Referrals: This happens when traffic from your own domain or subdomains is counted as referral traffic. For example, a user might navigate from
yourdomain.comto your Shopify-hosted blog atblog.yourdomain.com. If not configured correctly, Analytics might see this as one session ending and a new one beginning, attributing any further actions to your own website. - Third-Party Apps: Things like online booking tools, support widgets, or customer portals hosted on external domains can also break sessions and show up as misleading referrals when users return to your site.
- Spam Referrals: These are fake-outs from bots and crawlers designed to get you to visit their spammy websites. They create junk sessions with 100% bounce rates and muddy your real performance data.
When these sources aren't excluded, your marketing attribution becomes a mess. A Facebook Ad campaign that generated a sale might look like a failure because the conversion was credited to stripe.com. You end up making poor decisions based on flawed data, potentially cutting budget from channels that are actually performing well.
How to Find Unwanted Referrals in Google Analytics
Before you can exclude bad referrals, you need to find them. The process is slightly different depending on which version of Google Analytics you're using.
Finding Referrals in Universal Analytics (UA)
Even though Universal Analytics has been sunset, you'll still need to access historical data. Here's where to look:
- Navigate to your Universal Analytics property.
- In the left-hand navigation menu, go to Acquisition > All Traffic > Referrals.
- This report shows you a list of every domain that has sent you traffic. Go through the list and look for anything that isn't a true external source, such as your own domains, payment gateways, or known third-party tools.
Finding Referrals in Google Analytics 4
In GA4, the reporting interface is a little different, but finding your referral sources is just as simple.
- Navigate to your GA4 property.
- In the left-hand menu, click on Reports.
- Go to the Acquisition > Traffic acquisition report.
- The default view will show data by
Session default channel group. To see the specific domains, click the dropdown arrow on that primary dimension and select Session source from the list. - You can now filter the report to focus only on referral traffic. Click the Add filter + button at the top of the report.
- In the builder, set the condition to:
Session default channel groupexactly matchesReferral. Click Apply.
Now, you'll have a clean list of just your referral domains. Scan this for the same culprits: payment providers, self-referrals, and any suspicious third-party domains.
How to Exclude Referral Traffic in Universal Analytics
Once you've identified the domains you want to remove from your Universal Analytics reports, adding them to the Referral Exclusion List is straightforward.
This does not stop traffic from that source from being recorded, it simply tells UA: "If a session starts with traffic from one of these domains, don't treat it as a new session. Instead, attribute it to the session that came right before it." This way, your payment gateway visit is ignored and the conversion is properly credited to the original source.
Step-by-Step Instructions:
- Click on Admin in the bottom-left corner (the gear icon).
- Make sure you have the correct Account and Property selected.
- In the middle 'Property' column, click on Tracking Info, which will expand a new menu.
- From that menu, select Referral Exclusion List.
- Click the red + ADD REFERRAL EXCLUSION button.
- Enter the domain you want to exclude (e.g.,
paypal.com). - Hit Create to save it.
Repeat this process for every domain you need to exclude. Remember, these changes are not retroactive, so they will only apply to traffic recorded after you add the exclusion.
How to List Unwanted Referrals in Google Analytics 4
In GA4, the feature is called "List unwanted referrals," and it's located under your Data Stream settings. The principle remains the same: traffic from these domains won't start a new session, preserving your original attribution.
Step-by-Step Instructions:
- Click on Admin in the bottom-left corner (the gear icon).
- Ensure the correct Account and Property are selected.
- In the 'Property' column, click on Data Streams.
- Select the data stream for your website (there's usually only one for web).
- Scroll down to the 'Events' section and click on Configure tag settings under the 'Google tag' heading.
- This opens a new configuration screen. In the
Settingssection, you might need to click Show more to see all available options. - Click on List unwanted referrals.
- You'll now be at the configuration screen. Set the
Match typeto Referral domain contains. - In the
Domainfield, enter the domain to exclude (e.g.,stripe.com). - Click the Add condition button for each new domain you want to add. Common additions right away might include PayPal, Shopify's checkout domain (
checkout.shopify.com), and your own primary domain if you're trying to prevent self-referrals. - Once you're done, click Save in the top-right corner.
Just like with UA, this setting is only applied to data moving forward.
Common Referrals to Exclude and Best Practices
Cleaning up your referral traffic keeps your data accurate and your marketing insights sharp. Here are some final tips and common domains to consider.
Must-Have Exclusions for Ecommerce Sites:
paypal.comstripe.comshop.appcheckout.shopify.com- Any other BNPL (Buy Now, Pay Later) service like Klarna or Afterpay
Check for Self-Referrals:
If you see yourdomain.com in your referral report, add it to your exclusion list immediately. This is a classic sign that your cross-domain tracking isn't set up correctly, breaking user journeys between your subdomains. GA4 is smarter about this, but it's always worth a check.
Third-Party Platforms:
Do you use an external tool for appointment scheduling or customer service? If you embed a Calendly widget or link out to a Zendesk portal, consider adding those domains to your exclusion list to keep your session data clean when users navigate back and forth.
Best Practices for Ongoing Maintenance:
- Set It and Forget It (Initially): As soon as you set up a new GA4 property, add the most common unwanted referrals. It saves you from having skewed data down the line.
- Schedule a Quarterly Audit: Once a quarter, take five minutes to review your referral report. New services, apps, or even spam sites can pop up. Catching them early keeps your data reliable.
- Don't Be Overzealous: Only exclude sources that are truly part of your own website infrastructure or purchase process. Never exclude legitimate sources of business like a partner's blog, a social media site, or an article that mentioned your company. The goal is to clean your data, not hide it.
Final Thoughts
Excluding unwanted referrals is a fundamental step in ensuring your Google Analytics data is trustworthy. By removing noise from payment gateways and self-referrals, you get a much clearer picture of which marketing channels actually drive conversions, helping you make smarter, data-informed decisions to grow your business.
It can feel frustrating to constantly dig through configuration settings just to get a straightforward answer about your performance. That's why we built Graphed to handle the complexity for you. We connect directly to your data sources like Google Analytics, Shopify, and your ad platforms, unifying everything in one place. Instead of hunting for reports, you can simply ask questions in plain English, like "Show me my top conversion paths last month," and instantly build a live dashboard. With Graphed, you can spot attribution issues in seconds and get back to focusing on strategy, not settings.
Related Articles
How to Enable Data Analysis in Excel
Enable Excel's hidden data analysis tools with our step-by-step guide. Uncover trends, make forecasts, and turn raw numbers into actionable insights today!
What SEO Tools Work with Google Analytics?
Discover which SEO tools integrate seamlessly with Google Analytics to provide a comprehensive view of your site's performance. Optimize your SEO strategy now!
Looker Studio vs Metabase: Which BI Tool Actually Fits Your Team?
Looker Studio and Metabase both help you turn raw data into dashboards, but they take completely different approaches. This guide breaks down where each tool fits, what they are good at, and which one matches your actual workflow.