Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento 本地主机沙箱-Google Universal analytics代码不起作用_Magento_Google Analytics_Analytics - Fatal编程技术网

Magento 本地主机沙箱-Google Universal analytics代码不起作用

Magento 本地主机沙箱-Google Universal analytics代码不起作用,magento,google-analytics,analytics,Magento,Google Analytics,Analytics,注意:我尝试了现有的答案,但它们不起作用 在我的本地主机Magento设置中,Google Universal analytics代码不起作用。我无法在我的帐户中看到点击率。谁能告诉我问题出在哪里?下面是代码 <!-- BEGIN GOOGLE UNIVERSAL ANALYTICS CODE --> <script type="text/javascript"> //<![CDATA[ (function(i,s,o

注意:我尝试了现有的答案,但它们不起作用

在我的本地主机Magento设置中,Google Universal analytics代码不起作用。我无法在我的帐户中看到点击率。谁能告诉我问题出在哪里?下面是代码

        <!-- BEGIN GOOGLE UNIVERSAL ANALYTICS CODE -->
    <script type="text/javascript">
    //<![CDATA[
        (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', '<My Account-Id>', {'cookieDomain':'none'});

    ga('send', 'pageview');

    //]]>
    </script>
    <!-- END GOOGLE UNIVERSAL ANALYTICS CODE -->

//

可能是一个愚蠢的问题,但您是否检查过您的IP没有从GA的IP地址筛选器中筛选出来?@ChrisRogers IP地址筛选器没有任何内容。这意味着它不过滤任何内容,并且允许报告中的所有点击。你能给出一个指针,指向你以前尝试过的答案(或者只是链接到它们)中的内容吗?这就是我尝试过的