This feature can identify abandoned cart and viewed product events (SMS only) for Yotpo SMS. If you use this feature, we will send all of those Add to Cart and Viewed Product events to you.
For more information on Yotpo SMS Abandoned Checkout Reminders, click here.
To use this feature, you must have the most recent version of our script on your website and the Yotpo SMS integration (see "Set up integration" steps below). 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.
NOTE: This integration is currently only for Shopify users.
1. To setup an integration between Retention.com and Yotpo SMS, go to Integrations > Available Integrations. Then, search for Yotpo SMS and click the icon.
2. Click Connect.
3. This will open a window to give Retention.com access to Yotpo. If you're not logged into your Yotpo account via Shopify, you will need to login first.
4. Once you're logged in, you'll be taken to this screen to give Retention.com access. Click Next.
5. Then, click Connect to authorize the integration.
6. Once the integration is complete, you will see the integration date. Click to Enable the integration. You can also Remove the integration from this page at the top.
Note: If you're using our custom Shopify Integration app, the Add to Cart and Viewed Product scripts 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>
Inside of your site builder, add our Viewed Product script to fire when someone views a product:
<script>geq.event('Viewed Product Reclaim', item);</script>
If you do not have an existing Viewed Product tracking script, add this to your theme:
<script type="text/javascript">
var item = {
Name: {{ product.title|json }},
ProductID: {{ product.id|json }},
ImageURL: "https:{{ product.featured_image.src|img_url:'grande' }}",
URL: "{{ shop.secure_url }}{{ product.url }}",
Brand: {{ product.vendor|json }},
Price: {{ product.price|money|json }},
CompareAtPrice: {{ product.compare_at_price_max|money|json }}
};
geq.event('Viewed Product Reclaim', item);
</script>
1. Go to Flows > Create flow from scratch.
2. For your Add to Cart flow, click Add to Cart Reclaim under Retention.com to set it as the Trigger.
For the Viewed Product flow, click Viewed Product Reclaim under Retention.com to set it as the Trigger.
3. Next, Add step > Add delay.
4. Set a 30-minute delay.
5. Add a Condition step to check if:
Is an SMS subscriber > is true
If No, End Flow.
6. If Yes, check if:
Made an order after flow started > is false
7. If No, End Flow. For Yes, set the condition to:
Country and address > Any country and address match > Country > is > United States
8. If No, End Flow. If yes, add a step.
9. Choose action for SMS/MMS message.
10. Edit the existing text message to include our shortcodes, like in this example for the Add to Cart flow.
We send these six shortcodes with our events:
{price}
{image Url}
{product Id}
{name}
{brand}
{url}
And here's an example of how that would look in a Viewed Product flow:
11. When you're finished, add End flow.
Note: Smart Sending should be enabled by default in Yotpo SMS. However, if you want to exclude transactional messages, you will need to manually do this by going to Settings > General Settings > Smart sending.
You can also view these events successfully passing through in your Retention.com account. Go to Event Details > Added to cart. This is an easy way to confirm that our events have been successfully implemented.
You can also see the Viewed Product Reclaim option populate under Event Details.
Have questions? Message us on chat, or email us at support[at]retention.com!