Javascript 为什么不是';Google Analytics中是否显示了用户计时数据?

Javascript 为什么不是';Google Analytics中是否显示了用户计时数据?,javascript,google-analytics,Javascript,Google Analytics,我正在尝试将用户计时数据添加到已经运行Google Analytics的现有站点。它似乎提交正确,但它没有显示在Google Analytics dashboard中。我不知道如何进一步调试它。。。我卡住了 请参阅下面的HTML示例。在这个例子中,我试图提交一个“事件”和一个“时间”。 结果:活动成功!但谷歌分析中并没有出现这个时机 <html> <head> <script> function universalAnalyticsPush() {

我正在尝试将用户计时数据添加到已经运行Google Analytics的现有站点。它似乎提交正确,但它没有显示在Google Analytics dashboard中。我不知道如何进一步调试它。。。我卡住了

请参阅下面的HTML示例。在这个例子中,我试图提交一个“事件”和一个“时间”。 结果:活动成功!但谷歌分析中并没有出现这个时机

<html>
<head>
<script>
    function universalAnalyticsPush() {
        if (!window.ga) {
            (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','https://www.google-analytics.com/analytics.js','ga');

            window.ga('create', 'UA-xxxxxx-xx', 'auto');
        }

        window.ga.apply(window.ga, arguments);
    }

    universalAnalyticsPush('send', {
        'hitType': 'event',
        'eventCategory': 'test-corey-blobby-event',
        'eventAction': 'test-corey-marks',
        'eventLabel': 'geronimo',
        'eventValue': 33,
    });

    universalAnalyticsPush('send', {
    'hitType': 'timing',
    'timingCategory': 'test-corey-submission',
    'timingVar': 'test-corey-variation',
    'timingValue': 172,
    });
</script>
</head>
<body>
<p>Something.</p>
</body>
</html>

函数universalanalyticpush(){
如果(!window.ga){
(函数(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]| |函数(){
(i[r].q=i[r].q | |[]).push(参数)},i[r].l=1*新日期();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(窗口、文档、“脚本”和https://www.google-analytics.com/analytics.js","ga",;
window.ga('create','UA-xxxxxx-xx','auto');
}
window.ga.apply(window.ga,参数);
}
UniversalAnalyticPush(“发送”{
“hitType”:“事件”,
“事件类别”:“测试corey blobby事件”,
'eventAction':'test corey marks',
“eventLabel”:“geronimo”,
“eventValue”:33,
});
UniversalAnalyticPush(“发送”{
“hitType”:“计时”,
“计时类别”:“测试corey提交”,
“timingVar”:“测试corey变异”,
“计时值”:172,
});
什么

看看Google Tag Assistant,事件和时间似乎都很好:

现在,如果我们在Google Analytics中查看Reports->Real Time->Events,事件就会出现,看起来很棒:

但是没有用户计时数据(或者我找不到合适的位置):

我的javascript中似乎没有任何错误。我得到的唯一警告是使用Google Analytics调试器:

Chrome的网络视图显示跟踪电话正在成功进行:


所以。。。。为什么Google Analytics会忽略我的计时数据???

您使用的是实时事件报告,该报告将显示当前数据,但用户计时报告无法实时提供。您需要等待数据可用(4-6小时),然后再检查。您正在查看的用户计时报告是正确的

在此期间,我可能会读到关于这个问题的报道。我怀疑这是在影响你的数据,但这是一个可以考虑修改或仅仅理解的东西。
希望有帮助

到目前为止,我已经等了48个小时;没有显示数据:(@CoreyKnight)您是否有幸显示数据?