AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

3K members online now
3K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
Guide Me

Referral traffic

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have a domain is and a subdomain is I add 2 different tracking code google analytics. Traffic from via website is counted as referral traffic. I want to transfer traffic from to website is direct traffic, how do ??
People know how to do that can guide me

Thank you

1 Expert replyverified_user

Referral traffic

Rising Star
# 2
Rising Star

Good morning, in this case (and almost every case) you do not want separate trackers for the subdomain and the main site. 


The general best practice is to have the same tracker across every page on which a user's journey will occur even if that is across sub domains or domains.


Change out the trackers so you only have one across the subdomain and domain. If you want to view the data for each separately, you could use a segment or create views with hostname filters to match each. 


More on segements:


and hostname filter




Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn