After reading all the threads, I still do not understand why my Android application does not send e-commerce values ββto analytics. (or maybe it does, but it is not shown) I activated e-commerce in GA, I use v2 and added the following code to orderComplete:
GoogleAnalytics ga = GoogleAnalytics.getInstance(ctx);
Transaction cardTransaction = new Transaction.Builder(
String.valueOf(order.getOrderId()),
orderTotal
.setAffiliation(cardName)
.setTotalTaxInMicros(0)
.setShippingCostInMicros(0)
.setCurrencyCode("EUR")
.build();
cardTransaction.addItem(new Item.Builder(
caption,
productName,
price,
quantity)
.setProductCategory(productCategorie)
.build());
Tracker tracker = ga.getTracker(R.string.googleAnalyticsKey);
tracker.sendTransaction(cardTransaction);
GAServiceManager.getInstance().dispatch();
I registered all the values ββand they are correct and in the correct format.
Can someone explain where I'm wrong?
source
share