Mobile push with abandoned cart notification

Published March 11, 2024
Modules
Difficulty
Selected Clients
modivo logo

The effectiveness of abandoned cart scenarios in mobile push notifications lies in their ability to significantly boost conversion rates by reminding customers about items they have shown interest in but have not yet purchased. This strategy leverages the power of timely, personalized communication to encourage users to complete their transactions, often incorporating incentives like discounts or free shipping to further entice the customer back to their cart.

In this use case, we will outline the steps to create an abandoned cart scenario specifically for mobile push notifications. The scenario begins when a customer adds items to their shopping cart but exits the app without completing the purchase. After a predetermined period of inactivity, the system triggers a push notification that is sent to the customer’s mobile device.

Mobile push - example
Example mobile push with an abandoned cart items

Prerequisites


Process


In this use case, you will go through the following steps:

  1. Create an aggregate.
  2. Create mobile push notification.
  3. Create a workflow.

Create an aggregate


In this step, create an aggregate that returns the list of products in a cart. The result of the aggregate will be used to display products in your mobile push notification.

  1. Go to Analytics iconAnalytics > Aggregates > New aggregate.
  2. Enter the name of the aggregate.
  3. As the type of the aggregate, select Last.
  4. From the Choose event dropdown list, select the cart.status event.
  5. As the event parameter, select products.
  6. Set the period from which the aggregate will analyze the results to Lifetime.
  7. Save the aggregate.
Configuration of the aggregate
Configuration of the aggregate

Create mobile push template


  1. Go to Communication > Mobile Push > Templates.
  2. You can use the template from the folder or create your own one using the mobile push code editor.
    To use the template, click New Template.
  3. Choose what type of message you want to create. In our case it’s Simple Push.
  4. Choose how you want to create mobile push message. In this use case we will use Visual Builder.
  5. Create your mobile push message according to your business needs. For more information on creating a mobile push, visit our User Guide.

Below you can find exemplary jinjava codes for the fields Message, URL and Image.

  • In the Message section, we add the product title
  • In the URL section given link to the product page.
  • In the Image section added URL to the image, which is in the catalog.

Message section

You left {%aggregate 17d214c4-5644-33b1-b0c6-9fab96b26b3e %}
{% set id = aggregate_result[0].sku %}
{%catalogitemv2.store-1(id) %}
{%set itemObject=catalog_result%}
{{itemObject.name}}
{%endcatalogitemv2%}
{%endaggregate%} in your basket!

URL section

{%aggregate 17d214c4-5644-33b1-b0c6-9fab96b26b3e%}{% set id = aggregate_result[0].sku %}{%catalogitemv2.store-1(id) %}{%set itemObject=catalog_result%}{{itemObject.productUrl}}{%endcatalogitemv2%}{%endaggregate%}

Image section

{%aggregate 17d214c4-5644-33b1-b0c6-9fab96b26b3e%}{% set id = aggregate_result[0].sku %}{%catalogitemv2.store-1(id) %}{%set itemObject=catalog_result%}{{itemObject.image}}{%endcatalogitemv2%}{%endaggregate%}

Usage:

  1. Replace aggregate ID with the ID you’d like to use.
  2. In {% set id = aggregate_result[0].sku %} replace sku with the name of the catalog’s attribute that holds sku.
  3. In {%catalogitemv2.store-1(id) %} replace store-1 with the name of your item catalog.
  4. In {{itemObject.link}}, {{itemObject.name}}, {{itemObject.imageLink}} make sure to put a correct name of an attribute which holds product’s link, name or imageLink.
Important: To properly display icons on iOS, you need to pay attention to whether the Mutable-Content option is enabled.
Disabling this option will result in the icon not displaying on mobile push.
Mobile push template configuration
Mobile push template configuration

Create a workflow


The workflow will be triggered by the product.AddToCart event. The delay is defined up to 1 day. If a customer does not make a transaction within one day, we will send a push notification with a reminder to buy products left in the cart.

  1. Go to Automation icon Automation > Workflows > New workflow.
  2. Enter the name of the workflow.

Define the trigger node


  1. As the first node, add the Profile Event. In the settings of the node, select the productAddToCart event.

  2. Click Apply.

    Profile event
    Configuration of the Profile Event node

Configure the Delay node


  1. Add the Delay node. In the node settings:

    1. In the Delay field, type 1.
    2. From the dropdown list, choose Day.
  2. Click Apply.

    Delay
    Configuration of the Delay node

Define the Profile Filter node


As the next node, choose Profile Filter to check if a customer have made a transaction in the last 24 hours.

  1. Add the Profile Filter node. In the node settings:
    1. From the Choose filter dropdown, select the transaction.charge event.
    2. Change matching to not matching.
    3. Set the date range to the last 1440 minutes.
      Important: Use 1440 minutes instead of 1 day – use smaller granulation, as in this case 1 day would take the time from current hour till the midnight, so such an analysis would not take into consideration all customers who meet the filter conditions.
  2. Click Apply.

Define the Send Mobile Push node


  1. Add the Send Mobile Push node to the Matched path.

  2. In the settings of the node, choose the type of the mobile push and the template you have prepared in the previous steps.

    Send Mobile Push node
    Configuration of the Send Mobile Push node

Add the finishing node


  1. Add the End node to the Send Mobile Push node and Not Matched path from the Profile Filter node.
  2. In the upper right corner, click Save & Run.
Final view of the workflow
Final view of the workflow

Check the use case set up on the Synerise Demo workspace


You can check the configuration of each step from this use case in our Synerise Demo workspace:

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker