xdg86
xdg86

Reputation: 11

Need to track a button with Google Tag Manager

I need to track a contact form button in Google Tag Manager, but I don't know how to do it. The button's code is the following one:

<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>

Upvotes: 0

Views: 52

Answers (1)

Michele Pisani
Michele Pisani

Reputation: 14179

If you want to track the close button you have to add a Just Links trigger with following rules like: Click Classes --> contains --> closeBtn

Upvotes: 1

Related Questions