Customers must give permission to contact them before you can engage them through SMS and MMS. In Optimizely Data Platform (ODP), you can create a web modal that lets shoppers enter phone numbers and explicitly opt-in for SMS and MMS communications.
Configure a web modal for SMS opt-in
You can add a phone number field to an existing form in a web modal or create a modal and form to collect the phone number.
The following example shows how to create a modal and a form to collect phone numbers:
Create a web modal
- Go to Activations > Overview.
- Click Create New Campaign and select Web.
- Click Create From Scratch.
- Select All Visitors or a real-time segment from the drop-down list as your audience.
- Click to edit Touchpoint 1.
- Click Web Modal.
- Expand Targets and enter the website URL where visitors can see your web modal.
Design the opt-in form
- Go to Elements > Forms.
- Drag and drop the following elements:
- A Text Box for email collection.
- A Text Box for phone number collection.
- Two Checkboxes to let customers explicitly opt in to email communications and SMS communications.
- A Submit Button to submit the form.
Configure the opt-in fields
Email address field
- Select the first Text Box in your form.
- Go to Details.
- Expand the Field drop-down list and select Email. This automatically marks the field as required.
Phone number field with country code selector
- Select the second Text Box.
- Go to Details.
- Expand the Field drop-down list and select Phone.
ODP automatically enables Show Country Code and Enable Country Code Selection and selects the United States as the Default Country Code. You should leave the country code selector enabled to help your visitors with proper phone number formatting.
- Enable Required.
Checkbox
- Select the Checkbox.
- Go to Details.
- Expand the Action drop-down list and select Opt-In.
- Enable Required to ensure you obtain explicit consent from your visitors for email and SMS marketing communications.
If you do not set the checkbox Identifier field to All (Global Opt-In), you must have one checkbox per messaging identifier field. In this example, you need one checkbox where Identifier is set to Email, and another checkbox where Identifier is set to Phone.
Submit button
- Select the Submit Button.
- Go to Details.
- Expand the Action drop-down list and select Confirmation Design. This ensures you are not interrupting visitors' place on your site when they click to submit the form.
Configure when the modal displays
- Expand Triggers.
- Adjust the settings.
Preview the web modal
- Click Preview.
- Enter the Webpage URL where you want to preview the web modal.
- Click Generate Preview. A separate browser tab opens with a preview of your web modal.
Create a confirmation message
You should also create an SMS campaign that sends a confirmation message to your new SMS subscribers. You should launch this campaign before you go live with your web modal.
Please sign in to leave a comment.