Before you start engaging with your customers through SMS and MMS, they need to give you permission to contact them on their phones. Set up a web modal that allows your shoppers to enter their phone numbers and explicitly opt-in for SMS communications.
Configure a web modal for SMS opt-in
You can either add a phone number field to an existing form in a web modal or create a modal and form for phone number collection.
The example below shows how to set up an Optimizely Data Platform (ODP) web modal for phone number collection by creating a modal and form.
Step 1: Create a web modal
- Go to Activation > Engage > Create New Campaign > Web.
- Click Create From Scratch.
- The Enrollment section is set to All Visitors by default. If you want to use a real-time segment as your audience for this campaign, select one from the list.
- Click to edit Touchpoint 1.
- Click Web Modal.
- Expand Targets and enter the website where you want visitors to see your web modal.
Step 2: Configure opt-in form
Design the layout of your web modal. You need the following form elements for data collection to work:
- Text field for email collection
- Text field for phone number collection
- Two checkboxes; one that lets customers explicitly opt in to email communications, and another that lets customers explicitly opt in to SMS communications
- Submit button
To add the required elements, go to the Elements tab of the designer and expand the Forms section.
Step 3: Configure opt-in fields
Email address field
- Select the first text field in your form.
- Go to the Details tab.
- Expand the Field drop-down list and select Email. This automatically makes the field required.
Phone number field with country code selector
- Select the second text field.
- Go to the Details tab.
- 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.
- Ensure Required is enabled.
Checkbox
- Select the checkbox field.
- Go to the Details tab.
- 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 field.
- Go to the Details tab.
- Expand the Action drop-down list and select Confirmation Design. This ensures you are not interrupting your visitor’s place on your site when they click to submit the form.
Step 4: Set when the modal displays
- Expand the Triggers section.
- Adjust the settings as desired.
Step 5: Preview the web modal
- Click Preview.
- Enter the Webpage URL where you want to preview the web modal.
- Click Generate Preview.
A new browser tab opens with a preview of your web modal.
Step 6: Create a confirmation message
As a best practice, you should also create an SMS campaign that will send a confirmation message to your new SMS subscribers. You should launch this campaign before you make your web modal live.
Please sign in to leave a comment.