upon our thank you page we have a our addTransaction and addItem code followed by the ga:send code.
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.
I searched and searched - is there a batch request for adding items into analytics?
I want to post a single request to post addTransaction and additem
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');