Before you start
Things you need to know:
SMS messages are made up of segments, which must be a maximum of 160 characters, or 70 characters if you're using a non-Latin alphabet/character set. If you use a greater number of characters, your message flows into a second SMS segment, as indicated by the counter at the bottom right of the message editing window.
Adding elements like personalisation can vastly increase your character count. You can set a max number of segments to use per message to help protect your SMS spend.
Create an abandoned browse SMS campaign
Go to to Campaigns > SMS/MMS
Select NEW CAMPAIGN and configure it as you normally would.
Select CAMPAIGN OPTIONS and set the following:
Send type - TRIGGERED
Split test - OFF
Links - Shorten
Navigate to Personalize.
Select Liquid markup and in the Liquid markup field, paste the below code to enable abandoned browse functionality.
{% assign ProductPagesInsights = null %}
{% assign webinsightdata = contact.insight.webinsight | sort:"Session_start" | reverse %}
{% if webinsightdata.size == 0 %}
{% assign webinsightdata = contact.insight.webinsights | sort:"Session_start" | reverse %}
{% endif %}
{% for record in webinsightdata %}
{% assign pagesviewed = record.page_viewed %}
{% assign ProductPagesInsights = pagesviewed | where_not: 'custom_page_values.product_sku', nil | distinct: 'custom_page_values' %}
{% if ProductPagesInsights.size > 0 %}
{% break %}
{% endif %}
{% endfor %}Complete your campaign with the remaining steps to finalize your abandoned browse SMS campaign.
Review and test your campaign to ensure the abandoned browse functionality works as expected.