Use Adobe Journey Optimizer to Send an Abandoned Cart Email
Adobe Journey Optimizer helps you personalize the commerce experience for your shoppers. For example, you can use Journey Optimizer to create and deliver scheduled marketing campaigns, such as weekly promotions for a retail store, or generate an abandoned cart email if a customer added a product to a cart but then did not complete the checkout process.
By following these steps, you can learn how to listen to a checkout
event generated from your Commerce instance and respond to that event in Journey Optimizer to build an abandoned cart email.
Prerequisites
Before you begin with these steps, ensure:
- You are provisioned to use Adobe Journey Optimizer
- You configured the Data Connection extension
- You confirmed that your Commerce event data is arriving at the Experience Platform edge
Step 1: Create a user in your Commerce sandbox environment
Create a user in your sandbox environment and confirm that that user account information appears in Experience Platform. Ensure the email you specified is valid as that is used later in this section to send the abandoned cart email.
-
Sign in or create an account in your Commerce sandbox environment.
img-md w-700 modal-image With the Data Connection extension installed and configured, this account information is sent to the Experience Platform as a profile.
-
Confirm that your user account information appears in the Profile section of Experience Platform.
Go to Profiles in the Adobe Experience Platform. Click Detail in the profile to see the profile you created.
img-md w-700 modal-image
Step 2: View events in Journey Optimizer
In your Commerce sandbox environment, view product pages, add items to a cart, and various other activities a shopper would perform. These activities trigger events on your storefront. You can now confirm that these events are flowing to Journey Optimizer.
-
Launch Adobe Journey Optimizer.
-
Select Profiles.
-
Set Identity namespace to
Email
. -
Set the Identity value to your email address.
-
Select your profile, then select the Events tab.
img-md w-700 modal-image Look for the
commerce.checkouts
event and examine the event payload:code language-json "personID": "84281643067178465783746543501073369488", "eventType": "commerce.checkouts", "_id": "4b41703f-e42e-485b-8d63-7001e3580856-0", "commerce": { "cart": {}, "checkouts": { "value": 1 }
As you can see, the full event payload contains rich event data. In the next section, you will configure events in Journey Optimizer to listen for and respond to the
commerce.checkouts
event generated from your Commerce storefront.
Step 3: Configure events in Journey Optimizer
Configure two events in Journey Optimizer: one event listens for the commerce.checkouts
event from Commerce, and the other is a basic timeout event that waits for a specific amount of time to pass before triggering an abandoned cart email.
Create a listener event
-
Launch Adobe Journey Optimizer.
-
Click Configurations under the Administration section of the left pane.
-
In the Events tile, click Manage.
img-md w-700 modal-image -
On the Events page, click Create Event.
-
In the right navigation, set up your event as follows:
-
Set the Name to:
firstname_lastname_checkout
. -
Set Type to Unitary.
-
Set Event id type to Rule based.
-
Set Schema to your Commerce schema.
-
Select Fields and in the Fields page that appears, select the fields that are useful for this event. For example, select all fields under the Product list items, Commerce, eventType, and Web.
-
Click OK to save the selected fields.
-
Click inside the Event id condition field and create a condition of
eventType
is equal tocommerce.checkouts
ANDpersonalEmail.address
is equal to the email address you used when you created the profile in the previous section.img-md w-700 modal-image -
Click OK.
-
Click Save to save your event.
-
Create a timeout event
-
Create an event in Journey Optimizer as you did before.
-
In the right navigation, set up your event as follows:
- Set the Name to:
firstname_lastname_timeout
. - Set Type to Unitary.
- Set Event id type to Rule based.
- Set Schema to your Commerce schema.
- Set the Schema, Fields, and Event id condition to the same as above.
- Click Save to save your event.
- Set the Name to:
With these two events configured, create a journey that sends an abandoned cart email.
Step 4: Build a checkout journey
Create a journey that listens for the commerce.checkouts
event and then sends an abandoned cart email after a specified amount of time has passed.
-
In Journey Optimizer, select Journeys under JOURNEY MANAGEMENT.
-
Click Create Journey.
-
Specify the name of your journey.
-
Click OK to save the journey.
-
In the left navigation under the EVENTS section, search for the checkout event you previously created:
firstname_lastname_checkout
and drag and drop it on the canvas.note tip TIP Double-clicking the event automatically adds it to the canvas. -
Search for the timeout event and add it to the canvas.
-
Double-click the timeout event.
- In the Timeout section, select the Define the event time checkbox.
- In the Wait for field enter
1
andMinute
. - Select the Set a timeout path checkbox.
With this timeout configuration, a shopper that performs a checkout but does not complete the order within one minute triggers this timeout branch. In an actual production environment, you would set this for a longer period, like 24 hours.
-
In the left navigation under ACTIONS, add the Email action to the timeout branch. Your journey should look like the following:
img-md w-700 modal-image
Create an abandoned cart email
Create an abandoned cart email that is sent when an abandoned cart is detected.
-
In the journey you created above, double-click the Email icon on the canvas.
-
Follow the steps in the Journey Optimizer guide to create the abandoned cart email.
You now have a journey in Journey Optimizer that listens for the commerce.checkouts
event from your Commerce store and an abandoned cart email that is sent after a period of time has passed. In the next section, you will test the journey.
Step 5: Trigger the checkout event in real time
In this section, you test the event in real time.
-
In Journey Optimizer, toggle on Test mode.
img-md w-700 modal-image -
To test this journey in real time, open another browser tab and go to your sandbox Commerce website.
-
Add a product to your cart.
-
Go to the checkout page.
-
From the checkout page, abandon the cart by going back to the main page or closing your tab.
The journey is now triggered. To confirm, open the tab that has your journey in Journey Optimizer. You should see a green arrow that shows the path that your user went through.
-
-
Check your inbox for the email.