简体   繁体   中英

What to do with Google Analytics for domain and subdomain which will be moved to subdirectory?

I have a Wordpress site (example.com) and subdomain (sub.example.com). They have separate Wordpress dashboards and work like 2 separate websites. 2 different Google Analitycs Tracking IDs set up for them, so we have 2 different Google Analytics accounts and 2 different properties respectively. Now we redesigned both websites and want to move subdomain to a subdirectory, so it will look like this: sub.example.com --> example.com/sub, but they still have 2 separate Wordpress dashboards.

My question is, what should I do with Google Analytics? Should I put the domain GA tracking code on subdirectory website as well? As the initial idea behind making moving subdomain to subdirectory was for SEO boost and consolidation of traffic. I also would like to start using Google Tag Manager to implement GA tag.

Would appreciate some input on this as I'm really confused Thanks!

您必须为这两个网站分别使用“谷歌分析”,因为这两个网站的标题不同。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM