2.1K 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 yes24.vn and a subdomain is keosao.yes24.vn. I add 2 different tracking code google analytics. Traffic from keosao.yes24.vn via website yes24.vn is counted as referral traffic. I want to transfer traffic from keosao.yes24.vn to website yes24.vn 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