简体   繁体   English

为域,子域和子目录设置Google Analytics(分析)的最佳方法

[英]Best way to set up Google Analytics for domain, subdomain and subdirectories

I have a website with following domain and folder structure: 我有一个具有以下域和文件夹结构的网站:

  • Main Website: www.ry.com 主要网站:www.ry.com
  • Subdomain1: mobile.ry.com 子域1:mobile.ry.com
  • Subdomain2: speed.ry.com 子域2:speed.ry.com
  • Directory1: www.ry.com/mobile 目录1:www.ry.com/mobile
  • Directory2: www.ry.com/blog Directory2:www.ry.com/blog

I have just started setting up Google Analytics for this and I am totally confused as to what are the best practices that should be followed? 我刚刚开始为此设置Google Analytics(分析),但对于应该遵循的最佳做法我完全感到困惑。 Should I consider them as individual properties or just 1 property. 我应该将它们视为单个属性还是仅一个属性。 Should I be setting up a different GA code for each one of these? 我是否应该为其中每个设置不同的GA代码?

Ideally, I would like to track all of it at one place but at the same time, using some filters be able to see the traffic on any one of the subdomains/subdirectories. 理想情况下,我想在一个地方但同时跟踪所有内容,使用一些过滤器可以查看任何子域/子目录上的流量。

I started reading up about Universal Analytics but got totally confused and some of the posts were outdated as GA and UA seems to have changed significantly in the recent times. 我开始阅读有关Universal Analytics的文章,但感到非常困惑,并且由于最近GA和UA发生了显着变化,一些帖子已经过时了。

Please advise me about how to set this up or point me to any good blogs or urls that are a rich resource. 请告诉我有关如何进行设置的建议,或将我指向任何具有丰富资源的优质博客或网址。

This is one of the most complete answers I've found for this question. 这是我为这个问题找到的最完整的答案之一。 http://moz.com/blog/cross-domain-subdomain-tracking-in-google-analytics http://moz.com/blog/cross-domain-subdomain-tracking-in-google-analytics

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

相关问题 域和子域上的Google Analytics(分析) - Google Analytics on domain and subdomain 为同一应用,多个平台设置Google Analytics(分析)的最佳方法 - Best way to set up Google Analytics for same app, multiple platforms Google Analytics(分析)是否统计主域中的子域访问者 - Is google analytics count subdomain visitor in main domain 从子域跟踪域(Google Analytics) - Track domain from subdomain (Google analytics) 跟踪Google Analytics(分析)从域到子域的转化 - Track Google Analytics conversions from domain to subdomain Google Analytics(分析)多域跟踪的正确设置是什么? - What is the correct set up for Google Analytics Multiple domain tracking? 如何为www子域(而非裸域)设置Google Analytics(分析)代码或网络设置? - How to set Google Analytics code or web settings for www subdomain (not naked domain)? 这是在Rails 5应用中设置Google Analytics(分析)的正确方法吗? - Is this the correct way to set up google analytics in a rails 5 app? 如何验证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
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM