多个域,如何使用相同的 GA 属性

multiple domains, how to use the same GA property

我正在尝试为我的两个域实施跨域跟踪。在阅读有关此事的 Google 文档时,我对文章末尾的以下段落(粗体文本)感到困惑:

Both domains need to use the same GA property in order for cross-domain tracking to work correctly. If the sites use different properties, no session information will be shared and cross-domain tracking will not work.

Cross-domain tracking supports multiple trackers, but be aware that they will all share the same Client ID used by the linker.

我的场景是:

example.com --> 用于推广我的产品的第一个域名

domain2.com --> 用于安全结帐的第二个域。

在 Analytics 中正确创建时,我需要输入默认值 url。我如何设置它以便我可以对两个域使用相同的 属性 代码?

找不到任何其他相关问题或文章,所以我觉得我缺少一些简单的东西。

这意味着您必须在两个站点上使用相同的 UA ID,以便 GA 属性 可以收集这两个站点上的数据。您应该使用 GTM 进行跨域跟踪,因为它更容易设置。

我建议按照此处的说明进行操作 http://www.lunametrics.com/blog/2015/06/16/cross-domain-tracking-with-google-tag-manager/