Mobile app version of vmapp.org
Login or Join
Hamaas447

: Google Analytics - additem for multiple skus in one call I have an ecommerce site, when customers complete a transaction we pass the Google analytics calls for _addTrans and _addItem The _addItem

@Hamaas447

Posted in: #Ecommerce #GoogleAnalytics

I have an ecommerce site, when customers complete a transaction we pass the Google analytics calls for _addTrans and _addItem

The _addItem call is made individually for each item ordered, so if a customer ordered 5 items there will be 5 calls made.

However if a customer orders a large number of items, because each item is called individually on the thankyou page, there is a high chance the customer will navigate away from the page before all the calls to GA have been made.

Does anyone know if it is possible to send all items ordered in one _addItem call to GA using an array and matched pairs?

for example if a customer orders 2 items the call could look something like

_addItem(transactionId, sku, name, category, price, quantity)

_addItem([id1,id2], [sku1,sku2], [prod1,prod2], [cat1,cat2], [2,3], [1,2])

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamaas447

1 Comments

Sorted by latest first Latest Oldest Best

 

@Alves908

John, yes it is :)

GA currently don't support multi arrays but on the new ecommerce tag, it does.

Thank

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme