📊 GA4 Referral Exclusion

How to Stop myshopify.com from Showing Up as a Referral in GA4

By Dimsquid Engineering•Published Aug 5, 2026•8 min read

If you open Google Analytics 4 Traffic Acquisition reports and see myshopify.com / referral or checkout.shopify.com / referral listed as your top revenue source, your cross-domain tracking is broken. This guide explains why GA4 self-refers and how to fix it completely.

1. Why GA4 Blames myshopify.com for Your Sales

When a user moves between your WordPress site and your Shopify checkout, GA4 checks if the _gl cross-domain token is present in the destination URL. If the token is missing, GA4 treats the arrival on Shopify as a brand-new session initiated by a referral from your WordPress domain or myshopify.com.

2. Step 1: Configure Unwanted Referrals in GA4 Admin

First, add your Shopify domain to the List Unwanted Referrals configuration in GA4:

  1. Go to GA4 Admin âž” Data Streams âž” Select your Web Stream.
  2. Click Configure Tag Settings âž” Show All âž” List Unwanted Referrals.
  3. Add Match type: Domain contains âž” Value: myshopify.com and your custom domain.

3. Step 2: Implement _gl Cross-Domain Token Passing

Listing unwanted referrals alone will NOT fix missing session source data — it will simply shift the traffic to (direct) / (none). To restore original Facebook, TikTok, and organic search sources, outbound links must pass _gl tokens.

âš¡ Automated Fix

4. The 60-Second Fix: GA4 Linker

GA4 Linker (by Dimsquid) auto-decorates all outbound links with _gl tokens, stopping myshopify.com referrals automatically.

Get Started Free →