Incorrect price after sending to Firebase Analytics

2,459 views
Skip to first unread message

Mykhailo Kovalyk

unread,
Oct 30, 2020, 7:12:33 AM10/30/20
to Firebase Google Group
Looks like there is a bug in Android Firebase Analytics while passing/parsing price for product. 
Sample: 

This is the console output: 
V/FA-SVC  (23931): Logging event: origin=app,name=begin_checkout,params=Bundle[{coupon=SUMMER_FUN, ga_event_origin(_o)=app, items=[Bundle[{item_name=jeggings, item_brand=Google, quantity=2, item_variant=black, price=9.99, item_category=pants, item_id=SKU_123}]], value=14.98, currency=USD}]

This is the result I got in Firebase DebugView

Issue it with the price 9.99 which converts to 9990000
Same issue we have for our real project. 

Versions tried: 
 - com.google.firebase:firebase-analytics-ktx:17.5.0
 - com.google.firebase:firebase-analytics-ktx:18.0.0

‍박지수[ 학부졸업 / 컴퓨터학과 ]

unread,
Feb 26, 2021, 10:05:48 AM2/26/21
to Firebase Google Group
Same error here.
Did you find any solution for this error?

2020년 10월 30일 금요일 오후 8시 12분 33초 UTC+9에 mykhailo...@eleks.com님이 작성:

NWO 403

unread,
Feb 26, 2021, 10:33:24 AM2/26/21
to fireba...@googlegroups.com

So you are telling me the retail value per set of pants before any applicable sales tax is $4,950,000 (USD)? Hmm, personally I prefer my pants to be blue, and of the denim variety.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/3e9c4c7d-837b-41b2-be8d-c8fdc4878213n%40googlegroups.com.

Todd Kerpelman

unread,
Feb 26, 2021, 1:59:19 PM2/26/21
to Firebase Google Group
It's been a while since I've worked with currency in Google Analytics, but I'm pretty sure on the backend, Analytics stores all currency units as "micro-currency" meaning that it will multiply your dollar values by 10^6. 

I think the thing is, this should be invisible to you as the developer -- the front end should properly convert these values to normal looking currency when you view any related reports. Are you seeing these massive values showing up anywhere besides DebugView?

--T

 
On Friday, February 26, 2021 at 7:33:24 AM UTC-8 dillonho...@gmail.com wrote:

So you are telling me the retail value per set of pants before any applicable sales tax is $4,950,000 (USD)? Hmm, personally I prefer my pants to be blue, and of the denim variety.

On Feb 26, 2021 8:05 AM, "‍박지수[ 학부졸업 / 컴퓨터학과 ]" <jis...@korea.ac.kr> wrote:
Same error here.
Did you find any solution for this error?

2020년 10월 30일 금요일 오후 8시 12분 33초 UTC+9에 mykhailo...@eleks.com님이 작성:
Looks like there is a bug in Android Firebase Analytics while passing/parsing price for product. 
Sample: 

This is the console output: 
V/FA-SVC  (23931): Logging event: origin=app,name=begin_checkout,params=Bundle[{coupon=SUMMER_FUN, ga_event_origin(_o)=app, items=[Bundle[{item_name=jeggings, item_brand=Google, quantity=2, item_variant=black, price=9.99, item_category=pants, item_id=SKU_123}]], value=14.98, currency=USD}]

This is the result I got in Firebase DebugView

Issue it with the price 9.99 which converts to 9990000
Same issue we have for our real project. 

Versions tried: 
 - com.google.firebase:firebase-analytics-ktx:17.5.0
 - com.google.firebase:firebase-analytics-ktx:18.0.0

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages