1. Web tracking is setup in Maropost, the orders and funnel information are getting tracked just fine.
2. Consider a contact receiving an email from Maropost and clicking on the link from the campaign received and visit the website for which the tracking is set.
3. The contact later browses the website and adds different products to the cart. Later, the user successfully places the order and the order information is stored in database which later can be used to send the confirmation email.
4. Now, the same user decides to click on a link from the campaign received from Maropost and browses the same website and adds different products to the cart and doesn't purchase any of the products added to the cart and closes the browser.
5. After some time the contact status will be set to Abandoned in Maropost website.
6. Now, the account owner decides to send an email to the above user for which the status is set to abandoned in the funnel with the items that he added at the second instance when he didn't place the order. When the email sent using the liquid script the contact receives all the items that he added to date in the cart, i.e. the products for which he has already placed the order, along with the newly added items.
The need is to write a script where the end user will only receive the updated items added to the cart once the status was set to Abandoned and not all the items.