简体   繁体   English

如何验证Google Analytics(分析)在子域上是否正常运行(无法访问根域)

[英]how to verify that google analytics is working correctly on a subdomain (no access to root domain)

I am trying to add google analytics to a project that is located under a subdomain. 我正在尝试将Google Analytics(分析)添加到位于子域下的项目中。 The subdomain has been was pointed to my my project by the domain owner, so I do not have access to the domain itself. 该子域已由域所有者指向我的项目,因此我无权访问域本身。

When I add the tracking code the status (shown under Property > Tracking Info) 当我添加跟踪代码时,其状态(显示在“属性”>“跟踪信息”下)

Status: Tracking Not Installed 状态:未安装跟踪

Last checked: 04-Jan-2014 00:00:05 PST 上次检查时间:2014年1月4日00:00:05 PST

The Google Analytics tracking code has not been detected on your website's home page. 您的网站首页上未检测到Google Analytics(分析)跟踪代码。 For Analytics to function, you or your web administrator must add the code to each page of your website. 为了使Analytics(分析)正常运行,您或您的网络管理员必须将代码添加到网站的每个页面中。

Is there any way to verify the tracking code is installed on the subdomain without having to access the domain root? 有什么方法可以验证跟踪代码是否已安装在子域上,而无需访问域根目录?

Although the tracking status is uninstalled, I am getting activity in Standard Reports > Realtime . 尽管跟踪状态已卸载,但我正在“ 标准报告”>“实时”中进行活动

Does this mean that it is working despite the status report? 这是否表示尽管状态报告也可以正常工作?

Am I likely to get correct tracking information with this setup? 通过此设置,我是否可能获得正确的跟踪信息?

You do not need access to the root domain and if the realtime statistics track traffic then most likely your GA setup works correctly. 您不需要访问根域,并且如果实时统计信息跟踪流量,则很有可能您的GA设置可以正常运行。 Most likey you did not implement the code at the place in the source code where Google expects it (which usually works but is still flagged as an error in verification). 最有可能的是您没有在源代码中Google期望的地方实现该代码(该代码通常可以工作,但仍被标记为验证错误)。

If you use Google Chrome as browser you can additionally use two nice extensions to verify that your setup is correct: 如果您使用Google Chrome浏览器,则可以另外使用两个不错的扩展程序来验证设置是否正确:

Google Tag Assistant - verifys various Google Tags without mch detail Google Tag Assistant-无需Mch详细信息即可验证各种Google Tag

Google Analytics Debugger - provides some detail which data is sent to google, which plugins (eg ecommerce) are loaded by the analytics code etc. Google Analytics Debugger-提供一些详细信息,哪些数据发送到google,哪些插件(例如电子商务)由分析代码加载等。

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

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