If your website uses multiple subdomains like:
- blog.yoursite.com
- shop.yoursite.com
- app.yoursite.com
Then one question becomes critical:
π Are you tracking users correctly across all of them?
Because if not, your data may show:
- Duplicate users
- Broken sessions
- Incorrect attribution
The good news?
GA4 makes subdomain tracking much easier than before.
In this guide, youβll learn:
- How subdomain tracking works in GA4
- Whether you need to configure anything
- Step-by-step setup
- Common issues and fixes
What Is Subdomain Tracking?
Subdomain tracking means measuring user behavior across different subdomains under the same main domain β as one continuous journey.
Example:
User flow:
- Visits β blog.example.com
- Then β shop.example.com
- Then β checkout
π Ideally, this should be tracked as one session, one user, one journey
Without proper tracking, GA4 might treat this as multiple users or sessions β breaking attribution.
Good News: GA4 Tracks Subdomains Automatically
Unlike Universal Analytics, GA4 handles subdomain tracking out of the box.
π As long as:
- You use the same GA4 Measurement ID
- Tracking is installed on all subdomains
GA4 will track users across subdomains correctly.
Why This Works
GA4 uses first-party cookies that are shared across subdomains.
So when a user moves from:
- blog.example.com β shop.example.com
The same cookie is used, keeping:
- User identity
- Session continuity
Step-by-Step: How to Set Up Subdomain Tracking
Even though itβs automatic, you still need to configure things correctly.
Step 1 β Use the Same GA4 Measurement ID Everywhere
This is the MOST IMPORTANT step.
π Install the same GA4 tag on:
- Main domain
- All subdomains
β Wrong:
- Separate GA4 properties for each subdomain
β Correct:
- One GA4 property
- One data stream
- One Measurement ID




Β Show GA4 Measurement ID in Admin β Data Stream
Step 2 β Install GTM on All Subdomains
Make sure your Google Tag Manager container is present on:
- blog.yoursite.com
- shop.yoursite.com
- main site
π Without GTM installed, no data will be tracked.
Step 3 β Verify Cookie Sharing
Open browser developer tools:
- Go to Application β Cookies
- Look for _ga cookie
π Check:
- Cookie domain = .example.com
- Same value across subdomains
This confirms GA4 is tracking users correctly.



Step 4 β Test in GA4 DebugView
- Enable Preview mode in GTM
- Navigate across subdomains
- Open GA4 β DebugView
π You should see:
- One user session
- Continuous event flow
Step 5 β Fix Self-Referral Issues (If Needed)
Sometimes GA4 shows your own subdomain as a referral source.
π Example:
- blog.example.com β referral
This breaks attribution.
Fix:
Go to:
- Admin β Data Streams
- Configure Tag Settings
- List unwanted referrals
Add:
example.com
This prevents self-referrals.




Show referral exclusion settings
How to View Subdomain Data in GA4
Hereβs where many marketers get confused.
By default, GA4 doesnβt clearly show subdomains.
Method 1 β Use βHostnameβ Dimension
- Go to Reports
- Add secondary dimension β Hostname
π This shows:
- blog.example.com
- shop.example.com
Method 2 β Use Page Location
This shows full URLs including subdomains.
Example:
https://blog.example.com/article
Method 3 β Create Custom Reports
Best approach for clarity:
- Go to Explore
- Add dimension: Hostname
- Add metrics: Users, Sessions
π This gives full subdomain performance view
Common Subdomain Tracking Mistakes
β Using Different GA4 Properties
This causes:
- New sessions when switching subdomains
- Broken attribution
β Not Installing GTM on Subdomains
No tag = no tracking
β Seeing Self-Referrals
Fix with referral exclusion list
β Different Cookie Values
This indicates:
- Incorrect setup
- Separate measurement IDs
When You DO Need Cross-Domain Tracking
Important clarification:
π Subdomains β Cross-domain tracking
You only need cross-domain tracking when:
- example.com β differentdomain.com
Subdomains are handled automatically in GA4.
Real-World Insight (From Marketers)
A common issue seen in practice:
Tracking works in GTM⦠but not in GA4
This usually happens because:
- GA4 Measurement ID is missing on subdomain
- Or different properties are used
Best Practices for Subdomain Tracking
β Use one GA4 property
β Use one data stream
β Install GTM everywhere
β Test with DebugView
β Monitor referrals
β Use hostname in reports
Final Thoughts
Subdomain tracking in GA4 is much simpler than before β but only if implemented correctly.
Most issues donβt come from GA4 limitationsβ¦
π They come from setup mistakes.
When configured properly, GA4 gives you:
- Unified user journeys
- Accurate attribution
- Better conversion insights
And thatβs exactly what modern marketing depends on.
π βStruggling with tracking across subdomains? At Incisive Ranking, we help businesses implement clean, accurate GA4 and GTM setups that actually reflect real user journeys.β
Ticket submitted
Our team will diagnose your issue and reach out to you shortly.

