我的电子商务跟踪工作正常我在Google Analytics上收回了TransactionID,price ...但我没有在转化的第三个维度上看到产品类别。我不明白为什么,如果它是Android和谷歌分析之间的典型问题?
值在变量中。
Product product = new Product()
.setId(id)
.setName(logement)
.setCategory(typeForm)
.setBrand("")
.setVariant("")
.setPrice(1)
.setCouponCode("")
.setQuantity(1);
ProductAction productAction = new ProductAction(ProductAction.ACTION_PURCHASE)
.setTransactionId(id)
.setTransactionAffiliation(getResources().getString(R.string.TransactionAffiliation))
.setTransactionRevenue(1)
.setTransactionTax(0)
.setTransactionShipping(0)
.setTransactionCouponCode("");
HitBuilders.ScreenViewBuilder builder = new HitBuilders.ScreenViewBuilder()
.addProduct(product)
.setProductAction(productAction);
Tracker t = ((App) getActivity().getApplication()).getTracker();
t.setScreenName("Demande");
t.send(builder.build());