How to Stop myshopify.com from Showing Up as a Referral in GA4
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:
- Go to GA4 Admin âž” Data Streams âž” Select your Web Stream.
- Click Configure Tag Settings âž” Show All âž” List Unwanted Referrals.
- Add Match type:
Domain containsâž” Value:myshopify.comand 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.
4. The 60-Second Fix: GA4 Linker
GA4 Linker (by Dimsquid) auto-decorates all outbound links with _gl tokens, stopping myshopify.com referrals automatically.
