You will learn

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

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

Before you begin

Note the following about collecting SMS/WhatsApp 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 and/or WhatsApp consent at checkout

  1. Navigate to your Magento 2 store.
  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 is a separate section than 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, include the text you wish to appear next to the checkbox on your checkout page.
  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, clicks the SMS/WhatsApp opt-in checkbox, and places their order, their consent will sync to Klaviyo. This allows you to more quickly and easily grow your SMS/WhatsApp list and reach more customers via those channels.

Note that consent will not sync until they finish placing the order and, if applicable, confirm their subscription due to double opt-in.

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