You will learn

Learn how to collect SMS and/or WhatsApp consent at checkout for Magento 2.

After someone provides their phone number, opts in to SMS/WhatsApp marketing, and places an order, their subscription request is sent to Klaviyo. When double opt-in applies, they must confirm their subscription before becoming subscribed.

Before you begin

Note the following about collecting SMS/WhatsApp consent at checkout:

For SMS, if your selected list uses double opt-in and your sending number supports replies, customers must confirm their subscription by text before they become SMS subscribers and are added to that list. With a one-way sending number, customers are subscribed without a confirmation text, even if the list uses double opt-in.

Set up SMS and/or WhatsApp consent at checkout

  1. Navigate to your Magento 2 admin.
  2. From the left-hand sidebar, navigate to Stores > Configuration.
Configuration highlighted in Magento's navigation
Configuration highlighted in Magento's navigation
  1. Once you’re on the Configuration page, navigate to Klaviyo > Consent at Checkout.

Consent at Checkout option highlighted in the Configuration page
Consent at Checkout option highlighted in the Configuration page
  1. Expand the Mobile section.
    • This section is separate from the one for collecting email consent.
  2. Under Mobile, select Yes for Collect text message & WhatsApp subscribers.
  3. For Select channels for consent collection, choose whether you want to collect consent at checkout for SMS only, WhatsApp only, or both SMS and WhatsApp.
  4. Choose the list you want your SMS and/or WhatsApp contacts to sync to (e.g., SMS Subscribers).
    • If you also gather email subscribers, choose a different list for SMS and/or WhatsApp than the one you use for email.
  5. Under Consent checkbox label, enter the text you want to appear next to the checkbox on your checkout page. Name the channels you selected so shoppers know whether they are opting in to SMS, WhatsApp, or both.
  6. Next, add Consent disclosure text, which is required for TCPA compliance. Use the default Klaviyo disclosure language or add your own.
    1. In the default Klaviyo disclosure language, replace the [link] placeholders to include direct links to your privacy policy and terms of service pages.
Mobile messaging consent settings for text message and WhatsApp subscriptions, including consent text and Klaviyo integration options.
  1. Optional: Edit the sort order to change the placement of the email and SMS/WhatsApp 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.
Example of a Magento checkout page when SMS consent at checkout is active
Example of a Magento checkout page when SMS consent at checkout is active
  1. When you're done, click Save Config in the upper right.

Outcome

Now, when someone adds their phone number, selects the SMS/WhatsApp opt-in checkbox, and places their order, Klaviyo processes their subscription request for the channels you selected.

Customers must finish placing their order to submit their subscription request. When double opt-in applies, they must also confirm their subscription before becoming subscribed to that channel and being added to the selected list.

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.
Partners
Hire a Klaviyo-certified expert to help you with a specific task, or for ongoing marketing management.
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