电子商务Android未在分析中显示

bon*_*708 5 android google-analytics e-commerce

阅读完所有主题后,我仍然没有弄清楚为什么我的Android应用程序没有将电子商务价值发送给分析.(或者它可能但它没有显示)我在GA中激活了电子商务,我使用v2并在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();
Run Code Online (Sandbox Code Playgroud)

我记录了所有值,它们是正确的,格式正确.

任何人都可以解释我犯错的地方吗?