Closed skydivedan closed 6 months ago
Hi @skydivedan - Sorry, I'm not sure I understand exactly. Is the revenue
data not being properly recorded in Optimizely? If so, this is definitely something we can look into.
Hi @skydivedan - Sorry, I'm not sure I understand exactly. Is the
revenue
data not being properly recorded in Optimizely? If so, this is definitely something we can look into.
Optimizely expects revenue
values to be in cents, represented as an integer. So, normally when I send events to Segment, the revenue
value starts off (in my app) as a Decimal value. And it gets sent off to Segment that way. But in the app, when I catch the event in track
, before I send it to Optimizely, I need to multiply the value by 100 and send it along to Optimizely.
There are places on Optimizely's website where it talks about wanting revenue
values in cents:
Other services don't want it in cents, but Optimizely does. So, it would seem appropriate to have this plugin modify the value to be an int.
got it, thanks. Will prioritize it asap
Optimizely expects all
revenue
amounts to be represented as inInt
in cents. But other plugins to Segment don't have this requirement.Should this plugin convert
revenue
values before calling theOptimizely
plugin? Or, perhaps have aninit
parameter likeconvertRevenueToCents
which would give the caller a way to configure this?