How to collect SMS consent at checkout on Magento 2

Estimated 3 minute read
|
Updated Oct 10, 2024, 12:26 PM EST
You will learn

You will learn

Learn how to collect SMS consent at checkout for Magento 2. In total, it should take around 5–10 minutes to enable this feature.

Consent will be synced to Klaviyo once someone provides their phone number, opts into SMS marketing, and then places an order. 

Before you begin

Before you begin

Note the following about collecting SMS consent at checkout:

Also, if you’re syncing customers to a list with double opt-in, customers will get a text confirming their subscription before they are added to that list.

Set up SMS consent at checkout
  1. Navigate to your Magento 2 store
  2. From the left-hand sidebar, navigate to Stores > ConfigurationConfiguration highlighted in Magento's navigation
  3. Once you’re on the Configuration page, navigate to Consent at Checkout under KlaviyoConsent at Checkout option highlighted in the Configuration page
  4. Find the section on collecting SMS consent
    • This is a separate section than the one for collecting email consent
  5. Under SMS, select Yes for Subscribe contacts to SMS marketing at checkout
  6. Choose the list you want your SMS contacts to sync to (e.g., SMS Subscribers)
    • If you also gather email subscribers, choose a different list for SMS than the one you use for email 
  7. Optional: Edit the text for the SMS opt-in checkbox
    • The default text is as follows
      Subscribe to SMS
  8. Optional: Edit the SMS consent text 
    • The default text is as follows
      By checking this box and entering your phone number above, you consent to receive marketing text messages (such as [promotion codes] and [cart reminders]) from [company name] at the number provided, including messages sent by autodialer. Consent is not a condition of any purchase. Message and data rates may apply. Message frequency varies. You can unsubscribe at any time by replying STOP or clicking the unsubscribe link (where available) in one of our messages. View our Privacy Policy [link] and Terms of Service [link].
  9. In this disclosure language, replace the [link] placeholders to include direct links to your privacy policy and terms of service pages 
  10. Optional: Edit the sort order to change the placement of the email and SMS consent boxes
    •  By default, these boxes appear under the first email input and shipping phone number field, respectively
    • If you haven’t rearranged the checkout page, you do not need to change the sort order. If you have changed the layout, adjust the sort order accordingly
  11. When everything is set, click Save Config in the upper rightExample of a Magento checkout page when SMS consent at checkout is active
Outcome

Outcome

Now, when someone adds their phone number, clicks the SMS opt-in checkbox, and places their order, their consent will sync to Klaviyo.

Note that consent will not sync until they finish placing the order and, if applicable, confirms their subscription due to double opt-in. This allows you to more quickly and easily grow your SMS list and reach more customers via this channel.

Additional resources

Additional resources

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type