我正在查看跟踪代码 Google Analyticator生成并且我注意到了这一行
_gaq.push(['_addDevId', 'i9k95']); // Google Analyticator App ID with Google
但是,我在 Google 官方文档中找不到任何对 _addDevId
的引用,并且谷歌搜索只返回随机代码片段(其中大部分带有 Google 分析器的 ID)。
它是什么,是否有一个analytics.js 等效项?
这是完整生成的代码:
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXX-1']);
_gaq.push(['_addDevId', 'i9k95']); // Google Analyticator App ID with Google
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
最佳答案
_addDevId
是 Google Analytics(分析)参数,但并不常用。
What’s the _addDevId for?
This is our ID for the Google Analytics Developer Program. It allows Google to know that the API call comes from the Google Analyticator plugin as Google tracks our API calls. This does not give us any access or knowledge about your site, or analytics data. It is strictly for Google Analytics Developer Program statistical purposes only.
http://www.videousermanuals.com/google-analyticator/#adddevid
关于google-analytics - Google Analytics 中的 _addDevId 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17531686/