Analytics
5K members online now
5K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Enhanced Ecommerce Tracking for Android v4 is not working properly

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi All,

I am quite new in GA E-commerce, I would like to see the transaction in Sale Performance so I tested by making 3 - 4 transactions on my Android app. Here is my code:

 

 

                Product product =  new Product();

                product.setId(String.valueOf(payload.getDealId()));

                if(!TextUtils.isEmpty(payload.getTrackingProductName())) {
                    product.setName(payload.getTrackingProductName());
                }
                if(!TextUtils.isEmpty(payload.getTrackingCategoryName())) {
                    product.setCategory(payload.getTrackingCategoryName());
                }
                if(payload.getDealVariant() != null && !TextUtils.isEmpty(payload.getDealVariant().getName())) {
                    product.setVariant(payload.getDealVariant().getName());
                }
                product.setPrice(payload.getTrackingPrice());
                product.setQuantity(payload.getTrackingQuantity());

                ProductAction productAction = new ProductAction(ProductAction.ACTION_PURCHASE);
                productAction.setTransactionId(String.valueOf(payload.getOrderId()));

                if(payload.getDeliveryCost() != null) {
                    productAction.setTransactionShipping(payload.getDeliveryCost());
                }

                productAction.setTransactionRevenue(payload.getTrackingTotal());

                HitBuilders.ScreenViewBuilder builder = new HitBuilders.ScreenViewBuilder()
                        .addProduct(product)
                        .setProductAction(productAction);
                tracker.setScreenName("Checkout");
                tracker.set("&cu", "USD");
                tracker.send(builder.build());

I also run the adb command to see a log print and here is what I can see in the terminal:

 

 

03-07 18:15:24.851 D/GAv4    ( 6000): Hit delivery requested: ht=1457349324798, _s=89, _v=ma8.4.87, a=2146104647, aid=com.myapp.uat, an=UAT App, av=3.0.6.15, cd=ThankyouActivity, cid={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}, cu=USD, pa=purchase, pr1ca=kitchen-living, pr1id=227447, pr1nm=Muti-purpose Ironing Board, pr1pr=1990.0, pr1qt=1, sr=1080x1920, t=screenview, ti=5805749, tid=UA-xxxxxxxx-x, tr=1990.0, ul=en, v=1

 

 

A command I ran in the terminal to see above log:

 

adb shell setprop log.tag.GAv4 DEBUG
adb logcat -v time -s GAv4

But when I check in GA --> Ecommerce --> Sales Performance, there is no even one single transaction in table.

 

I re-checked on the Admin tab, E-commerce Setting up, Enable ECommerce status in ON and the Enhanced Ecommerce Settings is turned on too.

 

A part from this issue, the event and screenName are tracked properly.

I am not sure if I could miss something or I have done it incorrectly. Please help.

thanks.

 

Enhanced Ecommerce Tracking for Android v4 is not working properly

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

Did this ever get fixed for you? I am still having same problem. Thanks for your help in advance.