【问题标题】:Transactions count issue of Custom variable GA自定义变量 GA 的交易计数问题
【发布时间】:2014-11-18 10:13:22
【问题描述】:

我对 GA 自定义变量有疑问。 我将以下代码 sn-p 插入到 HTML 源代码中。

_gaq.push(['_setCustomVar', 3, 'AgencyType', '<Agency Type Sample>', 3]);

页面上的完整JS代码:

    var _gaq = _gaq || [];

    _gaq.push(['_setAccount', '<account #>']);
    _gaq.push(['_setCustomVar', 3, 'AgencyType', '<Agency Type Sample>', 3]);
    _gaq.push(['_setDomainName', 'none']);
    _gaq.push(['_setAllowLinker', true]);
    _gaq.push(['_setAllowHash', false]);
    _gaq.push(['_trackPageview']);

    (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();`

此代码包含在 Magento 的每个页面中。 但是当我检查我的分析时,它会显示下一个结果

如果您查看交易列,您会注意到 66 笔交易中有 39 笔。所以我想问问为什么会这样。

【问题讨论】:

    标签: javascript php magento google-analytics e-commerce


    【解决方案1】:

    您使用了 doubleclick.net 脚本,但浏览器广告块 (http://adblockplus.com ..) 已屏蔽 doubleclick.net 站点。

    这不是这个问题的完美原因。

    但许多其他浏览器安装了广告拦截软件, 因此您可以使用谷歌标签管理器或其他交易捕获解决方案。

    (我为中国客户工作,但中国有great fire wall,所以我们不信任 ga 或其他人)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-02
      • 2016-03-31
      相关资源
      最近更新 更多