Hello, I´m new to Amplitude.
Recently I discovered a few errors with the implementation that was done at my company before I started.
And I would like some practical examples to show my IT team so we can fix it.
One of the errors encontered was Check Out / Cart with Multiple Products
As Revenue = Price x Quantity
But what if you have two different priced products.
Our implementation was “adding” the prices, adding the quantities and multiplying … but obviously this is wrong.
What is the best way to solve this?
Precalculate an average price based on quantities??
Best answer by sydney.kohView original
The following post might help you with your question -
Hope this will help!
Hi Saish, thanks for the link.
So basically double up (triple up) on the events. But then, how can I track individual purchases?
Is it possible to link a puchase number for consequente unique counts?
I believe that sending an event property like order_id for those individual events under one purchase order will help in some charts, but there isn’t a direct way of using a direct linking mechanism afaik.
Denis also mentions in his answer about sending in a consolidated final purchase event with the individual products as an array as one of the most common approaches. So using the Uniques metric in your event segmentation chart for this event will help you track the unique individuals who are purchasing.
Nice find Saish Denis presented a great way to set up multiple products purchases! After reading your questions there is another implementation that is very similar to Denis’ but slightly different and may help your case.
This solution is a little different so you should consider the logic of both and see which one fits your case better! It may also be a good idea to try them in a test project before you implemented them in your main project.
Let me know if you have any questions!