Setting up a double opt-in process setting-up-a-double-opt-in-process
About double opt-in about-double-opt-in
Double opt-in mechanism is a best practice when sending emails. It protects the platform from wrong or invalid email addresses, spambots, and prevents possible spam complaints.
The principle is to send an email to confirm the visitor’s agreement before storing them as ‘profiles’ into your Campaign database: the visitor fills out an online landing page, then receives an email and has to click in the confirmation link to finalize its subscription.
To set this up, you need to:
- Create and publish a landing page so that the visitors can register and subscribe. This landing page will be available from a website. Visitors who fill in and submit this landing page will be stored in the database but added to the denylist, in order not to receive any communication before the final validation (see Denylist management in Campaign).
- Create and send automatically the opt-in email, with a confirmation link. This email will target population who submitted the landing page. It will be based on an email template which allows to target ‘opt-out’ profiles.
- Redirect to a confirmation landing page. This final landing page will propose a confirmation button: the visitors has to click it. You can design a welcome email to be sent as confirmation is done, and for example add a special offer in the email for new recipients.
These steps have to be set up in ÃÛ¶¹ÊÓƵ Campaign in a specific order to have all parameters enabled properly.
Step 1: Create the confirmation landing page step-1--create-the-confirmation-landing-page
The process to setup double opt-in mechanism starts with the creation of the confirmation landing page: this page will be displayed when the visitors clicked on the confirmation email in order to register.
To create and configure this landing page, you need to:
-
Design a new landing page based on the Profile acquisition (acquisition) template. Enter the label ‘CONFIRMATION’.
If you need to use services, you can also use the Subscription (sub) template.
-
Edit the landing page properties and under the Access and loading section, unselect the option Authorize unidentified visitors, select Preload visitor data (this one is not mandatory).
-
In the Job > Additional data section, click Add an element and enter the following context path:
/context/profile/blackList
Set the value to false and click Add.
This context removes the ‘On denylist’ field, in order to be able to send emails. We will see later that the first landing page was setting this field to true before confirmation, to prevent from sending emails to non-confirmed profiles. For more on this, see Step 3: Create the acquisition landing page.
-
Customize the content of the landing page: you can display personalized data and change the label of the confirmation button to ‘Click here to confirm my subscription’ for example.
-
Adapt the content of the confirmation page to inform your subscribers that they are now registered.
-
Test and publish the landing page.
Step 2: Create the confirmation email step-2--create-the-confirmation-email
Once the confirmation landing page is created, you can design the confirmation email: this email will be automatically sent to every visitor who validates the acquisition landing page. This validation is considered as an event and the email is a transactional message, linked to a specific typology rule which allows to target opt-out populations.
Steps to create these elements are described below. You need to follow them before creating the acquisition landing page itself as this email template will be referenced in it.
Create the event create-the-event
The confirmation email is a transactional message as it reacts to an event: the validation of the form. You must first create the event and then create the template of the transactional message.
-
Create an event, from the Marketing plans > Transactional messages > Event configuration menu, accessible from the ÃÛ¶¹ÊÓƵ Campaign logo, and enter the label ‘CONFIRM’.
-
Select the Profile targeting dimension and click Create.
-
In the Fields section, click Create element and add the email in the data structure to enable reconciliation.
-
In the Enrichment section, click Create element and select the Profile target resource. You can then map on the email field in the Join definition section, or any other composite reconciliation key, depending on your needs.
If you need to use services, add the Service target resource and map on the serviceName field. For more on this, see .
-
Select Profile as the Targeting enrichment in the dropdown list.
-
Click Publish to publish the event.
The event is ready. You can now design the email template. This template must include a link to the CONFIRMATION landing page created before. For more on this, see Design the confirmation message.
Create the typology create-the-typology-rule
You need to create a specific typology, by duplicating an out-of-box one. The typology will allow to send messages to profiles who did not confirm their agreement yet and are still on denylist. By default, typologies exclude opt-out (i.e. on denylist) profiles. To create this typology, follow these steps:
- From the ÃÛ¶¹ÊÓƵ Campaign logo, select Administration > Channels > Typologies and click Typologies.
- Duplicate the out-of-box typology Transactional message on profile (mcTypologyProfile).
- Once duplication confirmed, edit the new typology and enter the label TYPOLOGY_PROFILE.
- Remove the Address on denylist rule.
- Click Save.
This typology can now be associated to the confirmation email.
Design the confirmation message design-the-confirmation-message
The confirmation email is a transactional message based on the event created before. Follow the steps below to create this message:
-
From the ÃÛ¶¹ÊÓƵ Campaign logo, select Marketing plans > Transactional messages and click Transactional messages.
-
Edit the CONFIRM email template and personalize it. You can upload an existing content or use an out-of-box template.
-
Add a link to the CONFIRMATION landing page, and click Confirm to save modifications.
-
Edit the email template properties. In the Advanced parameters > Preparation section, select the TYPOLOGY_PROFILE typology created before.
-
Save and publish the transactional message.
Step 3: Create the acquisition landing page step-3--create-the-acquisition-landing-page
You have to create the initial acquisition landing page: this opt-in form will be published on your website.
To create and configure this landing page, you need to:
-
Design a new landing page based on the Profile acquisition (acquisition) template. Enter the label ‘ACQUISITION’.
-
Edit the landing page properties: in the Job > Additional data section, click Add an element and enter the following context path:
/context/profile/blackList
and set the value to true.
This is mandatory to force adding to the denylist and avoid sending messages to visitors who did not confirm their agreement. The validation of the CONFIRMATION landing page will set this field to false after confirmation. For more on this, see Step 1: Create the confirmation landing page.
-
In the Job > Specific actions section, select the option Start sending messages.
-
In the associated drop-down list, choose the CONFIRM transactional message template you created.
-
Customize the content of the landing page, depending on your brand and on data you need to acquire. You can display personalized data and change the label of the confirmation button to Confirm my subscription for example.
-
Customize the confirmation page to inform new subscribers that they need to validate their subscription.
-
Test and publish the landing page.
Double opt-in mechanism is now configured. You can run and test the procedure from end to end, starting from the public URL of this ACQUISITION landing page. This URL is displayed in the landing page dashboard.