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 Omnisend 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 Omnisend.
1. Go to Automation and search for the existing Add to Cart Automation. Then, click the three-dots to the right of to its name, and click Copy.
2. Name the copy Add to Cart Reclaim, and click to open the automation. Click on the Trigger box at the start of the automation to configure the trigger. On the right popout menu, ensure that Add to Cart Reclaim is selected as the trigger.
3. Scroll down to Exit Conditions. If you don't already have them, set the exit conditions to match the below. This will eject anyone who has taken any of those actions after triggering the automation.
NOTE: Only a total of four exit conditions can be added.
Placed Order
ORStarted Checkout
ORAdded product to cart
4. Scroll down and set the Frequency to match the below. This ensures profiles will only be able to enter once every X amount of days. We recommend 7 days as a base.
5. Scroll below Frequency and enable Skip contacts who are currently in or have recently completed other automations. Setup skip contacts as follows:
Select Currently in or completed
Select the Reclaim Checkout Started and your brand's original Checkout Abandonment and original Cart Abandonment automations.
Select in the last 7 days
6. Click Save, and then Update.
7. Next, either add a Delay after the trigger or adjust the existing Delay if present. The delay should be 15 minutes longer than the delay on your original Cart Abandonment automation.
7. 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 dynamic 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.image_url]] | |
Name | Black V-Neck T-Shirt | [[event.name]] |
ProductID | 3891613401160 | [[event.product_id]] |
URL | [[event.url]] | |
item_category (when available) | V-Neck Tees | [[event.item_category]] |
variant | S | [[event.variant]] |
variant_id | 29276152856648 | [[event.variant_id]] |
View Add to Cart events
Once everything is properly set up, Add to Cart Reclaim events will appear in Store Settings > API > API Logs in Omnisend. Look for calls made by our Retention API Key with the Endpoint of /v3/events, once located, select the three dots to the right and click 'View request payload.'
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!