Google 分析:未安装跟踪 [英] Google analytics: Tracking Not Installed

查看:20
本文介绍了Google 分析:未安装跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的网站上设置 Google Analytics,但它不会检测到它正在被跟踪.

I am trying to setup Google Analytics on my site, however it will not detect that it is being tracked.

我已按照建议将他们提供的代码放在我的 header.php 中的 </head> 之前:

I have placed the code they provided in my header.php right before the </head> as recommended:

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-41420598-1', 'example.com');
ga('send', 'pageview');

</script>

不确定还能做什么..

推荐答案

在我将跟踪代码放在我的每个页面上后,我花了一两天时间,以便将我的 Google Analytics 跟踪信息选项卡上的状态从跟踪未安装"更改为为此媒体资源启用了 Universal Analytics".在此期间,我在跟踪报告中看到了定期活动.

It took a day or two after I put the tracking code on each of my pages for the status on my Google Analytics Tracking Info tab to be updated from "Tracking Not Installed" to "Universal Analytics is enabled for this property". During this time I was seeing regular activity in my tracking reports.

如果您是 Google Analytics 的新手,默认报告仅包含前一天的数据.如果您想在添加跟踪代码的同一天检查活动,则必须调整日期范围以包括当天的活动.

If you're brand new to Google Analytics, the default reports only include data up to the previous day. If you want to check for activity on the same day that you added the tracking code, you have to adjust the date range to include the current day's activity.

这篇关于Google 分析:未安装跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆