title: Critical Issues when tracking transaction with Universal Analytics
body: <p>Google Tag Assistant reports 2 critical errors when tracking an transaction with Universal Analytics:</p>
  
  <blockquote>
    <p>Error: Unknown method name: 'addTransaction'<br>
    Error: Missing 1 required parameter(s) for method 'send'.</p>
  </blockquote>
  
  <p>The transaction is reported in Google Analytics but I'm worried about this errors. Here's my reporting code:</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-XXXXXXXX-1', {
    'clientId': 'XXX'
  });
  
    ga('require', 'ecommerce', 'ecommerce.js');
  
    ga('ecommerce:addTransaction', {
      'id': '5',
      'affiliation': 'xxx',
      'revenue': '0', // revenue is 0 because discount coupon was applied
      'shipping': '15',
      'currency': 'CHF'
    });
  
    ga('ecommerce:addItem', {
      'id': '5',
      'name': 'XXX',
      'sku': '3387',
      'price': '35.80',
      'quantity': '1'
    });
  
    ga('ecommerce:send');
  
  ga('send', 'pageview');
  &lt;/script&gt;
  </code></pre>
  
  <p>In Google Product Forum user Whims suggests to use </p>
  
  <pre><code>ga('send', 'ecommerce');
  </code></pre>
  
  <p>see: <a href="http://productforums.google.com/d/msg/analytics/L6bWIxPtNbA/PKUJLCfz6qsJ" rel="nofollow">http://productforums.google.com/d/msg/analytics/L6bWIxPtNbA/PKUJLCfz6qsJ</a> but there's nothing like this in developers docs.</p>