Learn how to recover lost sales with abandoned cart notifications using OneSignal. This guide walks you through tagging, segmenting, and messaging users who leave items in their cart.
cart_update
: Unix timestamp of when the cart was updatedproduct_name
: Human-readable product name for personalizationproduct_image
: Direct URL to product image for visual engagementcart_update
to βexistsβ1
.24
. (the user will leave the segment after 24 hours).Abandoned cart segment example
product_name
and product_image
tags, we can include this data within the message for Message Personalization.
For example, we can say: βHey Cool Cat πΈ ! Your new Yellow Cat Water Dish is waiting for you!β. And include the picture of the item in the message.
In the OneSignal Dashboard, go to Messages > Templates and select βNew Push Templateβ.
Templates are a way to create reusable message and monitor how many times they have been sent and clicked.
Hey Cool Cat πΈ !
Your new {{product_name | default: "item"}} is waiting for you!
{{product_name | default: "item"}}
will be replaced by whatever value is set for that tag. If no tag is set than βitemβ will be used.{{product_image}}
{{product_image}}
will be replaced with the URL of the image to the product. If tag value is not a direct link to the image, then it will not show.https://yoursite.com/username/checkout
we need to tag the user with a user_name
tag so their username can be replaced if we use: https://yoursite.com/{{user_name}}/checkout
Abandoned cart message example
Abandoned Cart
or anything you like to recognize what this Journey does.1
Day.Journey settings example
Journey steps example
1
Week and Save.OneSignal.sendOutcome("Purchase", purchasePriceTotal);
- will send OneSignal the total purchase amount and accumulate that revenue for all purchases made by all customers that clicked a push or received a push within a specific timeframe (influenced) and made the purchase.
OneSignal.sendOutcome("Purchased Item Count", purchasedItemCount);
- will send OneSignal the total amount of items purchased associated with the customer that directly clicked the push to make a purchase or made the purchase βinfluencedβ by a push.
support@onesignal.com
Please include: