Google Analytics 社交和付费搜索渠道仅显示少量交易

Google Analytics Social and Paid Search Channels only showing few transactions

免责声明: 我是几周前被带进来的,不知道客户对事先开发的所有决定。我不是原始站点开发团队的成员。不可否认,我没有任何处理 off/on 交易的经验,这是我需要你帮助的地方。

概览: 几个月前,一位客户让一位离岸开发人员设置了 Google 跟踪代码管理器。从那时起,客户发现 Google 分析指标和内部指标存在显着差异。他们发现付费搜索和社交渠道的电子商务 transactions/conversions 只收集了一小部分实际交易,并且在事件链中的某个地方,大部分交易没有报告给 GA 仪表板,而是正在迷失在以太中。

第一眼: 客户端是 运行 一个 Drupal 7 站点,GA 脚本硬编码到主题中。我发现这很奇怪,因为有一个可用的 GA 模块,并且在某一时刻看起来是 运行 在站点上,但被禁用的模块可能是由于离岸开发人员的决定及其对 Google 标签管理器。

代码看起来也很粗糙。 GA 代码 运行 来自 body 标签内部,GTM 就在它旁边(它目前仍在 body 标签中),还有很多其他有问题的代码片段。我进行了一些更新并在必要时移动了代码,但交易仍然没有在 Google Analytics 仪表板中正确显示。

检查 GA 仪表板,我发现标准通道是系统定义的,并且看起来没有任何可能显示不正确结果的操作(如果您对检查可能会影响结果的修改有任何建议在 GA 仪表板中,我对此持开放态度。

客户端还集成了第三方购物车,在注意到客户端站点上的跨域跟踪未正确实施后,我更新了脚本。第三方购物车似乎没有正确实施。

代码(当前):

GA(删除标识符,放在头部):

<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-xxxxx-1', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['third-party-shopping-cart-example.com'] );
ga('send', 'pageview');
</script>

GTM(删除标识符,放入正文):

<noscript>
<iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXX"
        height="0" width="0" style="display:none;visibility:hidden">       
</iframe>
</noscript>
<script>(function (w, d, s, l, i) {
    w[l] = w[l] || [];
    w[l].push({
        'gtm.start': new Date().getTime(), event: 'gtm.js'
    });
    var f = d.getElementsByTagName(s)[0],
        j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
    j.async = true;
    j.src =
        '//www.googletagmanager.com/gtm.js?id=' + i + dl;
    f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-XXXX');
</script>

总结: Google 跟踪代码管理器与 Google 分析以及 "Paid Search" 和 "Social" 个频道 很少 报道。如果您对此问题有任何想法或解决方案,我会洗耳恭听。

谢谢你的时间,我真的很感激。

既然你说第 3 方域没有特殊配置 I refer you to the documentation 那就是说:

This query parameter can then be added to all the URLs that point to the destination domain. To write this to the cookie on the destination domain, you must update all the create commands on the destination domain by setting the allowLinker tracking configuration parameter to true:

即您不仅需要从访问开始的域传递 _ga 参数,还需要配置其他域,以便它接受 ga 参数并继续会话。另外,您需要将这两个域都包含在推荐排除列表中。如果您希望用户在域之间来回切换,则需要在两个域上进行完整的跨域配置。

因此您必须在 GTM 的 GA 标签模板中设置 allowLinker 字段,并且您应该使用您的域列表填充 "autolink domains" 设置(如果在域通过表单提交发生)。