您好,我正在实施电子商务跟踪,但当Google Analytics获取数据时,会将其放入:
为什么它将屏幕数据(名称...)如何不显示该数据而仅保留交易数据?
if (code.equals("1")) {
db.updateDateEnvoie(demandeId);
Product product = new Product()
.setId(id)
.setName(logement)
.setCategory(typeForm)
.setPrice(1)
.setQuantity(1);
ProductAction productAction = new ProductAction(ProductAction.ACTION_PURCHASE)
.setTransactionId(id)
.setTransactionAffiliation("...")
.setTransactionRevenue(1);
HitBuilders.ScreenViewBuilder builder = new HitBuilders.ScreenViewBuilder()
.addProduct(product)
.setProductAction(productAction);
Tracker t = ((App) getActivity().getApplication()).getTracker();
t.setScreenName("transaction");
t.send(builder.build());
}
如果我删除此行:
t.setScreenName("transaction");
我收到任何数据..