【问题标题】:Need to track a button with Google Tag Manager需要使用 Google Tag Manager 跟踪按钮
【发布时间】:2022-01-05 14:03:15
【问题描述】:

我需要在 Google 跟踪代码管理器中跟踪联系表单按钮,但我不知道该怎么做。按钮的代码如下:

<div class="modalBox" style="transform: translate(-50%, -50%); top: 50%; display: none;"> 

<div class="modalContent">

<a class="closeBtn" href="javascript:void(0)"></a>

<div class="message">

<p class="title">Formulario enviado correctamente</p>

<span class="line"></span>

<p class="subtitle">Contacto enviado con éxito</p>

</div>
</div>
</div>

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: google-analytics google-tag-manager


【解决方案1】:

如果您想跟踪 关闭按钮,您必须添加一个 Just Links 触发器,其规则如下:Click Classes --&gt; contains --&gt; closeBtn

【讨论】:

    猜你喜欢
    • 2019-08-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多