Setting up a double opt-in process
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 ‘blacklisted', in order not to receive any communication before the final validation (see Managing blacklisting 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 Adobe Campaign in a specific order to have all parameters enabled properly.
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:
- Edit the landing page properties and under theAccess and loadingsection, unselect the optionAuthorize unidentified visitors, selectPreload visitor data(this one is not mandatory).
- In theJob>Additional datasection, clickAdd an elementand enter the following context path:/context/profile/blackListSet the value tofalseand clickAdd.This context removes the blacklist field, in order to be able to send emails. We will see later that the first landing page was setting this field totruebefore 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.
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
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 theMarketing plans>Transactional messages>Event configurationmenu, accessible from the Adobe Campaign logo, and enter the label 'CONFIRM'.
- Select theProfiletargeting dimension and clickCreate.
- In theFieldssection, clickCreate elementand add the
- In theEnrichmentsection, clickCreate elementand select theProfiletarget resource. You can then map on theJoin definitionsection, or any other composite reconciliation key, depending on your needs.If you need to use services, add theServicetarget resource and map on theserviceNamefield. For more on this, see .
- SelectProfileas theTargeting enrichmentin the dropdown list.
- ClickPublishto publish the event.
The event is ready. You can now design the email template. This template must include a link to the
CONFIRMATIONlanding page created before. For more on this, see Design the confirmation message .
Create the typology rule
You need to create a specific typology rule , by duplicating an out-of-box one. This rule will allow to send messages to profiles who did not confirm their agreement yet and are still blacklisted. By default, typology rules exclude opt-out (i.e. blacklisted) profiles. To create this typology rule, follow these steps:
- From the Adobe Campaign logo, selectAdministration>Channels>Typologiesand clickTypologies.
- Duplicate the out-of-box typologyTransactional message on profile (mcTypologyProfile).
- Once duplication confirmed, edit the new typology and enter the labelTYPOLOGY_PROFILE.
- Remove theblacklisted addressrule.
This typology can now be associated to the confirmation email.
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 Adobe Campaign logo, selectMarketing plans>Transactional messagesand clickTransactional messages.
- Edit theCONFIRMemail template and personalize it. You can upload an existing content or use an out-of-box template.
- Add a link to theCONFIRMATIONlanding page, and clickConfirmto save modifications.
- Edit the email template properties. In theAdvanced parameters>Preparationsection, select theTYPOLOGY_PROFILEtypology created before.
- Save and publish the transactional message.
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:
- Edit the landing page properties: in theJob>Additional datasection, clickAdd an elementand enter the following context path:/context/profile/blackListand set the value totrue.This is mandatory to force blacklist and avoid sending messages to visitors who did not confirm their agreement. The validation of the CONFIRMATION landing page will set this field tofalseafter confirmation. For more on this, see Step 1: Create the confirmation landing page .
- In theJob>Specific actionssection, select the optionStart sending messages.
- In the associated drop-down list, choose theCONFIRMtransactional 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 toConfirm my subscriptionfor example.
- Customize the confirmation page to inform the new subscriber that he needs to validate his subscription.
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
ACQUISITIONlanding page. This URL is displayed in the landing page dashboard.