title: Google Analytics ecommerce multiple requests for addItem single request
body: <p>upon our thank you page we have a our addTransaction and addItem code followed by the ga:send code.</p>
  
  <p>We noticed that it is posting each and every single item to google analytics upon page load - which on thousand line orders is slowing down the thank you page.</p>
  
  <p>I searched and searched - is there a batch request for adding items into analytics? </p>
  
  <p>I want to post a single request to post addTransaction and additem</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>ga('ecommerce:addTransaction', {
      'id': '***',
      'revenue': '***',
      'currency': '***'
  });
  ga('ecommerce:addItem', {
      'id': '***',
      'name': '***',
      'sku': '***',
      'category': '***',
      'price': '***',
      'quantity': '1'
  });
  
  ga('ecommerce:addItem', {
      'id': '***',
      'name': '***',
      'sku': '***',
      'category': '***',
      'price': '***',
      'quantity': '1'
  });
  
  ga('ecommerce:addItem', {
      'id': '***',
      'name': '***',
      'sku': '***',
      'category': '***',
      'price': '***',
      'quantity': '1'
  });
  ga('ecommerce:send');</code></pre>
  </div>
  </div>
  </p>