#StackBounty: #google-tag-manager #tracking #event-tracking How to build trigger for button in form within Google Tag Manager?

Bounty: 50

I have the following button, for which I want to create a Google Tag Manager trigger (but I seem to be unable to do so):

<div class="class-a class-b">
  <form class="class-c" action="https://www.example.com/test" method="get" onclick="window.open(this.action); return false;"> 
    <button type="submit">Open now</button>
  </form>
</div>
  • Which type of trigger should I use (the auto-event variable does not
    work)?
  • How would I need to configure the trigger to track a button
    click?
  • What would I need to do in order to also catch the action
    value (i.e. the URL https://www.example.com/test)? Would I need Javascript for that to bind to its submit? If so, how?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.