Skip to main content
All CollectionsProductsReclaimReclaim Integration Guides
Set up Reclaim for Add to Cart in Iterable
Set up Reclaim for Add to Cart in Iterable
Updated over 10 months 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 an Iterable 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 an Iterable 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">
  var item_classnames = document.getElementsByClassName("AddToCart");
  for (var i = 0; i < item_classnames.length; i++) {
    item_classnames[i].addEventListener('click', function () {
      geq.addToCart(item);
    });
  }
</script>

Create Add to Cart template

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

1. Go to Content > Templates.

2. Search for your existing abandoned/add to cart flow. Select the dots next to its modification date, and choose Make a copy.

3. Name the template Add to Cart Reclaim, and click Save template.

4. Once it's created, click the name.

5. Click Edit Details.

6. Update the subject line and pre-header text for your Add to Cart email.
OPTIONAL: Add in additional query parameters to each URL. Otherwise, uncheck the box.

7. Scroll up, and click Save. Then, click Edit design.

8. Click the product image. Under Content, change the Dynamic Url to match your own variable, like in this example:

##{{image_url}}

9. In the email body, set your cart details to match your own email variables. Here's an example of how those look:

##{{name}}
brand: ##{{brand}}
price: ##{{price}}
url: ##{{url}}

10. Click Save Design at the bottom.

Set up Add to Cart flow

1. Request a Test Event from your client success manager.

2. Go to Messaging > Journeys > New journey.

3. Make the Journey name Add to Cart Reclaim, and click Create journey.

4. Double click Start API Call. Choose Custom event from the Entry source drop-down, and select the Add to Cart Reclaim event name. (Our team must first send a test event for this to show up.) Then, click Update.

5. Drag Email below Start, and click the circle at the bottom of the Start node and drag it to connect the two in the flow.

6. Double click Email, and click Choose a template.

7. Click the Add to Cart Reclaim template you created and then Attach Template.

8. Click Save and then Done.

9. Click Update Campaign.

10. Click Test Journey at the bottom. Use an email address for yourself or someone within your organization to simulate the journey for. Toggle to Add test data and add this:

{"brand": "test", "price": "test", "url": "test"}

Then, click Test journey in the pop-up box.

11. When you're ready for this flow to go live, click Publish at the bottom.

View Add to Cart events

Once everything is properly set up, Add to Cart Reclaim events will appear by going to Audience > Contact lookup in Iterable.

Enter the email address, and click Search users.

Then, click Events > History.

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 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?