简体   繁体   English

域和子域上的Google Analytics(分析)

[英]Google Analytics on domain and subdomain

I have a working website (let's use example.com) with Google Analytics working already. 我有一个正常工作的网站(让我们使用example.com),并且Google Analytics(分析)已经在工作。

I am launching a simple section, unrelated to my domain content in a subdomain (sub.example.com). 我正在启动一个简单的部分,与子域(sub.example.com)中的域内容无关。 I want to track example.com and sub.example.com's analytics as independent websites. 我想将example.com和sub.example.com的分析作为独立网站进行跟踪。

I have two questions. 我有两个问题。 Is setting them as independent websites better than creating a new view? 将它们设置为独立网站是否比创建新视图更好? In each case, how can I accomplish this? 在每种情况下,我该如何完成?

If they are not related at all, then yes- use separate Properties (instead of just making a new view). 如果它们根本不相关,则使用单独的属性(而不是仅创建新视图)。

To treat them as separate entities, simply create a new Property under the same Account in the Google Analytics Admin section (click the dropdown under "Property" then click "Create new property"). 要将它们视为单独的实体,只需在Google Analytics(分析)管理部分的同一帐户下创建一个新属性(单击“属性”下的下拉菜单,然后单击“创建新属性”)。 You'll get a new Tracking ID that you'll include just like you did with the first one. 您将获得一个新的跟踪ID,就像第一个跟踪ID一样。 This data will be entirely separate from your other site data- including any custom definitions too. 此数据将与您的其他站点数据完全分开-包括任何自定义定义。

If, for whatever reason, you decide to use the same view, just copy the existing tracking code from the main site to your subdomain site. 如果出于某种原因决定使用同一视图,则只需将现有跟踪代码从主站点复制到子域站点即可。 To reiterate, however, if they are unrelated, then use a new Property. 要重申的是,如果它们不相关,则使用新的属性。

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

相关问题 跟踪Google Analytics(分析)从域到子域的转化 - Track Google Analytics conversions from domain to subdomain Google Analytics(分析)是否统计主域中的子域访问者 - Is google analytics count subdomain visitor in main domain 从子域跟踪域(Google Analytics) - Track domain from subdomain (Google analytics) Google Analytics(分析)合并域和子域索引页面信息 - Google Analytics merging domain & subdomain index page info 如何处理将移动到子目录的域和子域的 Google Analytics? - What to do with Google Analytics for domain and subdomain which will be moved to subdirectory? 从包含谷歌分析的主域的子域设置 cookie - setting cookie from subdomain that includes main domain for google analytics 为域,子域和子目录设置Google Analytics(分析)的最佳方法 - Best way to set up Google Analytics for domain, subdomain and subdirectories 如何验证Google Analytics(分析)在子域上是否正常运行(无法访问根域) - how to verify that google analytics is working correctly on a subdomain (no access to root domain) 更新Google Analytics(分析)代码以链接我的域和子域之间的会话 - Updating Google Analytics code to link sessions between my domain and subdomain Google Analytics-跟踪子域,没有子域? (xyz.domain.com&domain.com) - Google Analytics - Track subdomain AND no subdomain? (xyz.domain.com & domain.com)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM