Skip to content

Commit

Permalink
value also a key for revenue
Browse files Browse the repository at this point in the history
  • Loading branch information
prabrisha-rudder committed Nov 26, 2019
1 parent 7efaa11 commit c99020d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ class HubSpot {
eventValue["id"] = rudderElement.message.event;
if (
rudderElement.message.properties &&
rudderElement.message.properties.revenue
(rudderElement.message.properties.revenue || rudderElement.message.properties.value)
) {
logger.debug("revenue: " + rudderElement.message.properties.revenue);
eventValue["value"] = rudderElement.message.properties.revenue;
eventValue["value"] = rudderElement.message.properties.revenue || rudderElement.message.properties.value;;
}
_hsq.push(["trackEvent", eventValue]);
}
Expand Down

0 comments on commit c99020d

Please sign in to comment.