Expand my Community achievements bar.

Order-Wide Currency Events implement through platform web sdk

Avatar

Level 2

Hello all,

I am trying to implement s.events="purchase,event10=9.95" in my project using Adobe Analytics Platform Web SDK.
If  I add the value in the Products string, in the report suite, the custom event data is showing as a cumulative value for each unit i.e if an order has 2 units, and I am sending the value in productListItems, the event is showing as value+value in the reports.

Thanks in advance

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Community Advisor

I assume that you're setting the "productListItems" field in the Web SDK hit's XDM object.

For each item object in the "productListItems" array, there is a "priceTotal" field. As the field name implies, you should be using the total value of the items for the tracked quantity. For example, if your item's unit price is $1.99 and the user buys 2 units, then you should track 3.98 in this "priceTotal" field.

I'm also not sure what you mean by "value+value". Can you provide an example of what you mean?