title: Enhanced Link Attribution in Universal Analytics not Working
body: <p>I have been trying to implement Enhanced Link Attribution on my site to no effect. </p>
  
  <p>Here are the steps I have used:</p>
  
  <ul>
  <li><p>Added tracking code </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  
      ga('create', 'UA-2647907-1', 'auto');
      ga('require', 'linkid', 'linkid.js');
      ga('send', 'pageview');
  &lt;/script&gt;
  </code></pre></li>
  <li><p>Toggled Enable Enhanced Link Attribution in the Google Analytics Admin > Property > Property Settings > In-Page Analytics section</p></li>
  <li><p>Added IDs to the links I want to track and double-checked that they were unique</p>
  
  <pre><code>&lt;a href="#expertise" id="expertise-tab" data-toggle="tab"&gt;Industry Expertise&lt;/a&gt;
  </code></pre></li>
  <li>Checked that <code>linkid.js</code> plugin was loaded</li>
  </ul>
  
  <p>I also checked to see if the <code>_gali</code> cookie is loaded, and I see it sometimes but not others (it seems to have a short duration though).</p>
  
  <p>Other items of note: 
  - WordPress site
  - The tabs I am trying to track (like the above example) use the bootstrap tabs js
  - In-Page Analytics works fine, just not the Enhanced Link Attribution part</p>
  
  <p>I found an advanced guide, and in this example it does not used the <code>linkid.js</code> in the <code>ga()</code> call, but I'm not sure if that's a typo or not:
  <a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced#enhancedlink" rel="nofollow">https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced#enhancedlink</a></p>
  
  <p>Thanks for any help!</p>