简体   繁体   English

如何处理将移动到子目录的域和子域的 Google Analytics?

[英]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).我有一个 Wordpress 站点 (example.com) 和子域 (sub.example.com)。 They have separate Wordpress dashboards and work like 2 separate websites.他们有独立的 Wordpress 仪表板,像 2 个独立的网站一样工作。 2 different Google Analitycs Tracking IDs set up for them, so we have 2 different Google Analytics accounts and 2 different properties respectively.为它们设置了 2 个不同的 Google Analitycs 跟踪 ID,因此我们分别有 2 个不同的 Google Analytics 帐户和 2 个不同的属性。 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.现在我们重新设计了两个网站,并希望将子域移动到子目录,所以它看起来像这样:sub.example.com --> example.com/sub,但它们仍然有 2 个独立的 Wordpress 仪表板。

My question is, what should I do with Google Analytics?我的问题是,我应该如何使用 Google Analytics? Should I put the domain GA tracking code on subdirectory website as well?我应该将域 GA 跟踪代码也放在子目录网站上吗? As the initial idea behind making moving subdomain to subdirectory was for SEO boost and consolidation of traffic.由于将子域移动到子目录背后的最初想法是为了 SEO 提升和流量整合。 I also would like to start using Google Tag Manager to implement GA tag.我也想开始使用 Google Tag Manager 来实现 GA 标签。

Would appreciate some input on this as I'm really confused Thanks!感谢您对此的一些意见,因为我真的很困惑谢谢!

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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