With most eCommerce platforms we can give your customers the opportunity to opt-in to SMS messages at checkout. Below are step-by-step instruction for Shopify; however, these steps can be abstracted for other platforms. With this method, double opt-in flow is required for compliance purposes (see <link> for details).
Please contact your Voyage account manager or [email protected] if you would like to setup opt-in at checkout.
Note: The below code snippet includes modal display and purchase tracking.
From your Shopify Admin go to Settings > Checkout > Customer Contact
Staying in the Checkout section, scroll down to Email Marketing
Click Home in your Shopify admin and go to the Online Store.
{% if first_time_accessed %}
<script async src="<https://s3.us-east-2.amazonaws.com/assets.voyagetext.com/voyage.production.js>"></script>
<script type="text/javascript">
/* <![CDATA[ */
(function(){if(window.voyage)return;window.voyage={q:[]};var fns=['init', 'track'];
for(var i=0;i<fns.length;i++){(function(fn){window.voyage[fn]=function(){
this.q.push([fn,arguments]);}})(fns[i])}})();voyage.init('[CLIENT ID]', { popup: true });
/* ]]> */
</script>
<script type="text/javascript">
voyage.track('Purchase', { amountCents: {{ order.total_price }} });
{% if order.customer.accepts_marketing == true and order.customer.phone != null and order.customer.phone.size > 9 %}
voyage.track('MarketingPhone', { marketingPhone: {{ order.customer.phone }} });
{% endif %}
</script>
{% endif %}
From the Shopify Admin, go to Settings > Checkout > Order Processing and find the section labeled Additional Scripts.