title: Google Tag Manager is Not Firing Universal Analytics dataLayer Event in Localhost
body: <p>I need to implement some universal analytics events using google tag manager and I faced some problems.
  I have added google tag manager snippet whick looks like that:</p>
  
  <pre><code> &lt;body&gt;
  
  
  &lt;script&gt;
  
  var dataLayer = [];
  
  &lt;/script&gt;
  
  &lt;!-- Google Tag Manager --&gt;
  
  &lt;noscript&gt;&lt;iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
  height="0" width="0" style="display:none;visibility:hidden"&gt;&lt;/iframe&gt;&lt;/noscript&gt;
  &lt;script&gt;(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  j=d.createElement(s),dl=l!='dataLayer'?'&amp;l='+l:'';j.async=true;j.src=
  '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  })(window,document,'script','dataLayer','GTM-XXXXXX');&lt;/script&gt;
  
  &lt;!-- Google Tag Manager --&gt;
  </code></pre>
  
  <p>As you can see i added the snippet right after the body tag.</p>
  
  <p>And somewhere lower in the code i added dataLayer event push:</p>
  
  <pre><code>&lt;div class="feature_Box one"&gt;
      &lt;a class="feature4 element" href="#" onclick="dataLayer.push({'event':'VirtualPageview', 'VirtualPageURL':'/cust-tracking/feature/a4','VirtualPageTitle':'featureBox'});_gaq.push(['_trackPageview', '/cust-tracking/feature']);  return false;"&gt;
      blahblah&lt;br&gt;&lt;strong&gt;blah blah&lt;/strong&gt; &lt;span&gt;&lt;/span&gt;
      &lt;/a&gt;
  &lt;/div&gt; 
  </code></pre>
  
  <p>I also have to leave the old google analytics <code>_gaq.push()</code>. </p>
  
  <p>So when I try testing my dataLayer event with firebug it does not fire no parameters onclick, only the gtm(when page loads) having only id and  old one from _gaq.push().</p>
  
  <p>I have no access to gtm configuration interface and have to implement events beforetesting  so i did not set any specific rules. Can it be because of that or it still should be visible through firebug that it is firing something? </p>