All Collections
Reclaim Integration Guides
Set up Reclaim for Add to Cart in Dotdigital
Set up Reclaim for Add to Cart in Dotdigital
Updated over a week ago

This feature can identify abandoned cart contents for both unknown, non-logged in users (Grow contacts) and known, non-logged in customers (emails in your Grow suppression list). If you use this feature, we will send all of those Add to Cart events to you.

NOTE: We must enable this feature for you. If you’ve not already spoken with someone on our team, please ensure you request that we enable this for you.

To use this feature, you must have the most recent version of our script on your website and a Dotdigital integration. You can find your script in your account under Code Script > View Script.

Click here for a link to all our tutorials on how to add the script to your site, in case you need a refresher—and here's how to setup a Dotdigital integration.

On your website

Note: If you're using our custom Shopify Integration app, the Add to Cart script will automatically be installed.

Inside of your site builder, add our Add to Cart script to fire when someone clicks to add an item to their cart:


Next, edit the snippet.

Generic code for buttons defined by a button ID:

<script type="text/javascript">

document.getElementById("AddToCart").addEventListener('click',function (){



Generic code for button defined by a class notation:

<script type="text/javascript">

var item_classnames = document.getElementsByClassName("AddToCart");

for (var i = 0; i < item_classnames.length; i++) {

item_classnames[i].addEventListener('click', function () {





Create Add to Cart campaign

Once you have the Add to Cart script added to your site, you will need to set up the automated email campaign.

1. In Dotdigital, go to Email campaigns > All email campaigns. Then, search for your existing abandoned cart/add to cart campaign.

2. Check the box next to the campaign. Next, click More Actions > Copy campaign.

3. Name the campaign Add to Cart Reclaim, and click Copy.

4. Click to edit the Add to Cart Reclaim campaign.

5. Drag and drop Liquid markup where you want the product details to appear in the email.

6. Click in the Enter markup box to add your liquid code that's specific to your email. When you're finished, click Apply.

7. When you're finished, Save the campaign.

Create segment

1. Go to Contacts > Segments. Then, click New Segment.

2. Create an Add to Cart Reclaim segment.

Set up Add to Cart flow

1. Go to Automation > All programs. Click Copy next to your existing Abandoned Cart program.

2. Name the program Add to Cart Reclaim, and click Continue.

3. Set or adjust the enrollment schedule as needed to fit in your automation schedule.

4. Click abandon cart entry in the flow and abandon cart entry in the pop-up. Then, click Select Another.

5. Search for the Add to Cart Reclaim segment you created, and select it. Then, click it again here.

6. Add Insight data with these two rules, and click Apply:

AddToCartReclaim data collection
The number of records for each contact is greater than or equal to 1

Orders data collection
The number of records for each contact is greater than or equal to 1
Including only Orders for which:
purchase_date occurs today

7. Click the campaign, and then choose Change Campaign.

8. Search for the Add to Cart Reclaim campaign you created, and select it.

9. Adjust the flow to best fit your marketing efforts (ex. delays, follow-up emails, etc.).

View Add to Cart events

Once everything is properly set up, Add to Cart Reclaim events will appear in Dotdigital.

1. Go to Contacts > All Contacts.

2. Then, select your All Contacts Address Book.

3. Enter the email address, and click Search. Then, click the email address.

4. Select Insight data, and choose AddToCartReclaim in the drop-down menu. The Add to Cart events will show in a list below that, and you can click on each one for more details.

Note: Your client success manager can send test events through for you when you're ready.

Additionally, you can see these events successfully passing through in your account when you see the Added to Cart option populate under Event Details. This is an easy way to confirm that our events have been successfully implemented.

Have questions? Message us on chat or email us at support[at]!

Did this answer your question?