【发布时间】:2013-04-06 13:25:44
【问题描述】:
我正在尝试通过我的 iPhone/iPad 网络应用程序(全屏模式)跟踪访问我的网站的访问者。
我添加了这段代码(在原生 Google Analytics 跟踪器之上):
<script type="text/javascript">
if (window.navigator.standalone == true) {
_gaq.push(['_setCustomVar',
5,
'Full Screen Mode visitors',
'full-screen-mode-visitors',
3
]);
_gaq.push(['_trackPageview']);
}
</script>
但 Google Analytics(分析)中没有出现自定义变量...我的代码有问题吗?我的网络应用在全屏模式下加载正常,但 Google Analytics(分析)中没有记录自定义变量。
感谢您的帮助!
【问题讨论】: