title: Universal Analytics could not track transaction in magento
body: <p>I'm using magento C.E 1.7. Recently I migrated to universal analytics from google analytics. </p>
  
  <p>After migration, except transaction data, other details are tracked fine.</p>
  
  <p>I have added the following script in head.phtml for universal analytics.</p>
  
  <pre><code>&lt;script&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-XXXXXXX-2', 'mysite.com');
    ga('send', 'pageview'); 
    ga('require', 'ecommerce', 'ecommerce.js');
    ga('ecommerce:send'); 
  
  
  &lt;/script&gt; 
  </code></pre>
  
  <p>In admin side too, I have saved the universal analytics tracking code.</p>
  
  <p>What am I doing wrong? Why can't I track transaction data? Can anyone help on this?</p>