Android/iOS Analytics Enhanced ecommerce not showing anything -
i've followed steps google documentation. i've configured analytics account show enhanced reports. i've tried posibilites docs examples i'm getting no hits. i've tried in ios same results. reason?:
product product = new product() .setid("p12345") .setname("android warhol t-shirt") .setcategory("apparel/t-shirts") .setbrand("google") .setvariant("black") .setprice(29.20) .setquantity(1); // add step number , additional info checkout action. productaction productaction = new productaction(productaction.action_checkout) .setcheckoutstep(1) .setcheckoutoptions("visa"); hitbuilders.eventbuilder builder = new hitbuilders.eventbuilder() .addproduct(product) .setproductaction(productaction) .setcategory("ecommerce") .setaction("checkout start"); tracker.setscreenname("checkoutstep1"); t.send(builder.build());
(i've tested screenviewbuilder same results) i've placed tracker in verbose level , following hit:
12-05 18:16:29.525: v/gav4(23872): thread[gathread,5,main]: sending hit service path: https: params: tid=ua-xxxxxxx-6, t=event, cos=1, ht=1417799783734, aid=com.myapp.debug, ea=checkout, ec=ecommerce, cd=checkoutstep1, pr1id=p12345, pr1va=black, pr1ca=apparel/t-shirts, pr1pr=29.20, pr1cc=apparelsale, pr1nm=android warhol t-shirt, pr1qt=1, pr1br=google, pa=checkout, col=visa, ate=1, aiid=com.myapp.app, an=myapp, av=1.0.0, _u=.kkyadaaaaaaaaaaal, ul=ca-es, sr=720x1280, a=921530729, cid=7a02b428-07a9-4c08-9949-5bd15e7159ad, v=1,
try such way:
public void sendproductaction(productinfo productinfo) { //todo add need! product product = new product() .setid(productinfo.productid) .setprice(productinfo.totalamount) .setname(productinfo.productname) .setquantity(1); productaction productaction = new productaction(productaction.action_purchase) .settransactionid(productinfo.orderid) .settransactionaffiliation(productinfo.userid) .settransactionrevenue(productinfo.totalamount); hitbuilders.screenviewbuilder builder = new hitbuilders.screenviewbuilder() .addproduct(product) .setproductaction(productaction); tracker tracker = analyticsmanager.getinstance().gettracker(trackername.ecommerce_tracker); tracker.set("&cu", "eur"); tracker.send(builder.build()); }
also should enable enhanced ecommerce in console affiliated account.
Comments
Post a Comment