Skip to main content

Setup Reclaim for Add to Cart in Mailchimp

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. 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 Mailchimp 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:

geq.addToCart(item);

Next, edit the snippet.

Generic code for buttons defined by a button ID:

<script type="text/javascript">document.getElementById("AddToCart").addEventListener('click',function (){geq.addToCart(item)});</script>

Generic code for button defined by a class notation:

<script type="text/javascript">document.getElementsByClassName("AddToCart").addEventListener('click',function (){geq.addToCart(item)});</script>

Set up Add to Cart Automation

Once you have the Add to Cart script added to your site, you will need to set up your HTML content and flows in Mailchimp.

1. Go to Automations and search for the existing Add to Cart Abandonment Automation. Then, click the drop down arrow to the right of to its name, and click Replicate.

2. Name the copy R! Add to Cart Reclaim, and click to open the automation. Click on the Trigger box at the top of the automation, then click Change trigger.

3. Select the API & Integrations menu option from the pop-up on the left side, and then select the Event API as your trigger.

4. After the Event API trigger has been added, select the trigger and in the rightside popup that opens. Enter "add_to_cart_reclaim" within *Event name. The naming structure must match exactly to connect this event API to your Retention App.

5. Click on 'Filter who can enter' right below your Event API Trigger. Here we will define conditions for contacts who can enter this automation.

Segment Filters:

  • Campaign Activity > Was not sent > [Select your Original Add to Cart automation, the original Checkout Abandoned automation and, if being used, the Checkout Started Reclaim automation] > in the last 7 days.

  • Purchase History > Has not purchased > in the last 1 day.

6. Next we will define the logic settings and exit conditions for the automation, click on the left side Settings gear symbol and enter the following:

  • Flow name: Add to Cart Reclaim

  • Marketing Objective: Sell Stuff

  • Logic Settings

    • Enable Contacts can re-enter the flow

    • Allow contacts to re-enter after X days (recommended 7 days)

  • Exit Condition:

    • Completes Checkout

7. Next, either add a Delay after the trigger or adjust the existing Delay if present. The delay should be 1 hour longer than the delay on your original Cart Abandonment automation.

8. Finally, either add in or select the first Email step below the Delay, you will need to edit the dynamic content by replacing the original variables with those in the Dynamic Field list. Repeat this for each email step within your Add to Cart Reclaim automation.

NOTE: You must ensure the blocks you are working with are not product blocks.

Dynamic field list

These variables can be used in your email templates to dynamically populate information about your products.

For R! Added to Cart Reclaim events, the table with your product information should be set to Static.

The fields below are based on data sent from our Shopify Integration. Field names and variables may differ when using other eCommerce platforms or a custom setup.

Field Name

Example Value

Dynamic Variable Markup

Currency

USD

*|EVENT:Currency|*

Price

30

*|EVENT:Price|*

ImageURL

*|EVENT:Imageurl|*

Name

Black V-Neck T-Shirt

*|EVENT:Name|*

ProductID

3891613401160

*|EVENT.Productid|*

URL

*|EVENT:Url|*

Item Category (when available)

V-Neck Tees

*|EVENT:Itemcategory|*

Variant

S

*|EVENT:Variant|*

Quantity

3

*|EVENT:Quantity|*

VariantID

29276152856648

*|EVENT:Variantid|*

How to Add a Dynamic Image

  1. To add a dynamic image within an automation that is based on an Event API we will need to first add a code block to the Email.

  2. Then paste the following code snippet into the added code block. This will add the image as a centered image that will not disrupt mobile views.

<div style="text-align: center; width: 100%;">
<a href="*|EVENT:Url|*" target="_blank" style="text-decoration: none; display: inline-block;">
<img src="*|EVENT:Imageurl|*" alt="*|EVENT:Name|*" style="max-width: 100%; height: auto; display: block; margin: 0 auto; border: 0;">
</a>
</div>

View Add to Cart events

Once everything is properly set up, Add to Cart Reclaim events will appear within a contacts profile in Mailchimp. Within the profile look to Overview > Activity, and filter by Events. Here you will see all Custom Events associated to that profile, look for calls made by our defined event name, Add to cart reclaim. Click the drop down Show Details to show part of the payload being sent by the event, only 10 of the variables will show here.

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 Retention.com account when you see the Added to Cart Reclaim 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]retention.com!

Did this answer your question?