简体   繁体   中英

Android - Facebook Event track Purchase

I'm working on implementing the Facebook tracking of Purchase event in Android. I followed the guide here https://developers.facebook.com/docs/app-events/android , and made a custom Bundle to send to FB.

The problem is, on the Facebook page of events, I don't see the Value column updated for the Purchase event.

This is the code:

        Bundle parameters = new Bundle();
        parameters.putString(AppEventsConstants.EVENT_PARAM_CURRENCY, mCurrency);
        parameters.putString(AppEventsConstants.EVENT_PARAM_CONTENT_TYPE, mProductType);
        parameters.putString(AppEventsConstants.EVENT_PARAM_CONTENT_ID, mPurchaseID);
        Double valueToSum = 12.042289; //this is how the price looks like

        AppEventsLogger logger = AppEventsLogger.newLogger(this);
        logger.logEvent(AppEventsConstants.EVENT_NAME_PURCHASED, valueToSum, parameters);

My problem is that, the valueToSum does not sum in the Facebook Events page . It's always shown as "-".

Any ideas what I am actually doing wrong?

Much appreciated.

It takes a while for the data to update on the dashboard. Try checking it the next day or so ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM