title: How to track asp:button click with Google Tag Manager
body: <p>Let's say I've got an asp:button on a website which I'm trying to track to count how many times it has been clicked by different users.</p>
  
  <pre><code> &lt;asp:Button ID="SubBtn" runat="server" OnClick="Button1_Click" runat="server" Text="Sub" /&gt;
  </code></pre>
  
  <p>In my code behind I've got a redirect link to a different page. </p>
  
  <p>I'm aware that I need to include something like</p>
  
  <pre><code>&lt;a href="#" name="button1" onclick="dataLayer.push({'event': 'button1-click'});" &gt;Button 1&lt;/a&gt;
  </code></pre>
  
  <p>Do I need to convert my asp:button to a html button to make this work?</p>