title: How to configure Google Tag Manager to track link clicks on the same page
body: <p>I have a single page website set up with internal links - I want to track these links and all other clicks that occur on my page, for example:</p>
  
  <p>website.com/#link-to-here</p>
  
  <p>Then further down I have the following HTML:</p>
  
  <pre><code>&lt;div id="link-to-here"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>So when clicked the viewport changes to view that particular id but stays on the same page.</p>
  
  <p>I am trying to set up the auto event listener - which seems to work but only tracks the one link I have to another page on the website(the rest is on the same page).</p>
  
  <p>I have set up Analytics Universal, tag manager and all of my page views are working and in the live view. </p>
  
  <p>I followed various tutorials and in Tag Manager I currently have 3 tags set up:</p>
  
  <ul>
  <li><p>Universal Analytics with a firing rule for 'all pages' - no conditions</p></li>
  <li><p>Link Click Listener with 2 firing rules 'all clicks' which has a condition of <code>{{event}}</code> equals <code>gtm.click</code> then the condition 'all pages' with the condition <code>{{url}}</code> matches RegEx <code>.*</code></p></li>
  <li><p>UA event on internal links with the firing rule 'Internal Link Click' with again 2 conditions <code>{{event}}</code> contains <code>gtm.linkClick</code> and also <code>{{url}}</code> contains spectrospective (this is part of the URL). I figured i wouldn't be sure if their would be www. or not so this might eliminate any variances because the URL will always contain spectrospective - although this is probably where I went wrong.</p></li>
  </ul>