Android Ecommerce Not Displaying in Analytics

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()),                   // (String) Transaction Id, should be unique. 
  orderTotal                                            // (long) Order total (in micros)
  .setAffiliation(cardName)                             // (String) Affiliation
  .setTotalTaxInMicros(0)                               // (long) Total tax (in micros)
  .setShippingCostInMicros(0)                           // (long) Total shipping cost (in micros)
  .setCurrencyCode("EUR")                               // (String) Setting the correct currency
  .build();

cardTransaction.addItem(new Item.Builder(
  caption,                                              // (String) Product SKU (stock-keeping unit)
  productName,                                          // (String) Product name
  price,                                                // (long) Product price (in micros)
  quantity)                                             // (long) Product quantity
  .setProductCategory(productCategorie)                     // (String) Product category 
  .build());

Tracker tracker = ga.getTracker(R.string.googleAnalyticsKey);

tracker.sendTransaction(cardTransaction); // Send the transaction.
GAServiceManager.getInstance().dispatch();

I registered all the values ​​and they are correct and in the correct format.

Can someone explain where I'm wrong?

+5
source share

All Articles