title: Tracking multiple clicks on the same element
body: <p>Looking for a way to track if an element has been clicked multiple times (for example, a user clicks "Submit" button several times to place an order).</p>
  
  <p>We are doing some work redeveloping a website and in our UX research we found that people don't download PDFs from the site because the link behind the button is broken. We noticed that people tend to click the button several times before giving up, yet some still manage to download the PDF.</p>
  
  <p>In order to show our changes to code have improved site performance and user experiences, we want to show that these "multiple clicks" have decreased.</p>
  
  <p>Since the site uses Google Analytics, I have tried to create a variable in GTM that counts clicks on the same click element (which doesn't work):</p>
  
  <pre><code>function() {
  var the_div = {{Click Element}};
  var clickCount = 0;                      
  return clickCount;                      
  }
  </code></pre>
  
  <p>I expect the output to be a count of the times I've clicked on the Click Element (1, 2, 3, etc....)</p>