【问题标题】:google analytics Tracker on 2 submit button2 提交按钮上的谷歌分析跟踪器
【发布时间】:2014-12-03 17:41:42
【问题描述】:

您好,我对我的跟踪按钮感到迷茫

fancybox 中有 2 个表单弹出

但在分析中,当我填写一份表格(例如报价单)时,跟踪器会显示 2 个标签,就像我填写了 2 个表格一样。

我不明白为什么。

我想区分 2 提交按钮以进行跟踪。

【问题讨论】:

  • 发布您的代码,以便我们查看问题所在,以及您如何将跟踪代码集成到表单中。

标签: forms button google-analytics submit


【解决方案1】:

在 html 页面末尾编写谷歌分析脚本:

ga('send', 'pageview'); ga('send', 'event', 'rajasthanpop-fr-devis', 'click-rajasthan-devis', 'devis-envoye'); ga('send', 'event', 'rajasthanpop-fr-infos', 'click-rajasthan-infos', 'infos-envoye');

第一个输入:

输入样式="宽度:100% !important;" class="btn btn-info pull-left" name="submit" id="submitButton" type="submit" value="Envoyer" onclick="ga('send', 'event', 'rajasthanpop-fr-infos ', 'click-rajasthan-infos', 'infos-envoye');"

第二个输入: 输入样式=“宽度:100%!重要;” class="btn btn-info pull-left" name="submit" id="submitButton" type="submit" value="Envoyer" onclick="ga('send', 'event', 'rajasthanpop-fr-devis ', 'click-rajasthan-devis', 'devis-envoye');"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多