Closed hankim813 closed 8 years ago
@@ master #20 diff @@
==========================================
Files 1 1
Lines 127 132 +5
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 125 130 +5
Misses 2 2
Partials 0 0
Powered by Codecov. Last update 7579298...20c5d06
LGTM
This resolves https://github.com/segment-integrations/analytics.js-integration-kissmetrics/issues/12
This PR will replicate the mapping behavior that is present on the server side.
issue: the
revenue
property is not being appended asBilling Amount
like it is for server side. We are also superfluously sendingproducts
array even though we iterate through it and make individual and separate requests for each product in the array. Server side omits the products array from the first call to record the actualCompleted Order
. We will do the same for client side. Kissmetrics doesn't parse nested objects so they are seen in the UI as[object Object][object Object]
.solution: map
revenue
property asBilling Amount
. Won't remove it as its ownrevenue
property albeit duplicative, since it would break reports. Removeproducts
property from the first call that records the top level transaction event since we already send product info later.@f2prateek @ladanazita