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
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