Collecting phone numbers at checkout is the most seamless way to get new SMS subscribers. Klaviyo’s integration with Shopify Plus allows you to take advantage of this option as long as you have the right settings turned on.
Note that these steps are only applicable to Shopify Plus accounts and not Shopify in general or any other ecommerce platform. Also, you will only be able to collect SMS consent from U.S. phone numbers.
In this article, you will gain step-by-step instructions for how to enable consent at checkout for Shopify Plus, which should take around 5–10 minutes. We recommend opening Klaviyo and Shopify Plus in two separate tabs so that you can easily navigate between them.
Before Jumping In
If you haven’t already, you will need to first:
- Set up Klaviyo SMS
- Update any relevant legal documents
For the first, go to Account > Settings > SMS and then click Set Up SMS. For more information about this process, read this article on setting up SMS in Klaviyo.
In Klaviyo: Update Your Integration Settings
The first step to collecting SMS consent at checkout with Shopify Plus is changing your integration settings.
Navigate to the Integrations tab and then select Shopify from the list of enabled integrations.
Under Collect Subscribers, click the Collect SMS Subscribers checkbox.
Next, add the list you want SMS contacts to sync to. If you are also gathering email subscribers, assign different lists for each channel. Having separate lists helps to organize channel-specific communications as well as to avoid confusing email and SMS consent, since the regulations are different for each.
Copy the snippet of code. Note that, until you paste it in Shopify Plus, you'll see an information box telling you that the code isn't yet detected; however, this is not a blocker to updating your integration settings.
Click Update Settings in the lower right and then navigate to Shopify Plus.
In Shopify Plus: Paste the Code Snippet in Your Theme
Pasting this copied snippet of code in your Shopify Plus store will add a new checkbox and language for SMS opt-in.
In your Shopify store, click on Themes under Online Store. Click the Actions dropdown menu and select Edit Code.
Navigate to your checkout.liquid file on the left-hand side. Paste the snippet of code anywhere in this page. For this example, we’ll paste it at the bottom.
Click Save in the upper right-hand corner.
Once saved, your checkout page will look similar to the one shown below.
Note that the Send me news and special offers via text message field is not required; customers can still check out if they do not click this box.
Consent will now start syncing to Klaviyo when someone enters their phone number, selects the checkbox to accept SMS marketing, and clicks Continue to Shipping, making it easier and faster to grow your SMS list.
Take this course on writing SMS and MMS copy.
Learn the basics of using SMS and email together.