A 2-click unsubscribe is used to prevent unwanted unsubscribes, for example from anti-spam software. This is a way of providing an unsubscribe with an intermediate unsubscribe page to prevent accidental or unintentional unsubscribes.
Activate 2-Click Logout
The 2-click unsubscribe is set up in eMailing under the Configuration/eMail tab under Enable 2-click Logout. (The one-click-unsubscribe link in the mail header is left unchanged for legal reasons. The 2-click unsubscribe only refers to the variables {$REVOKE_URL} or {$DELETE_URL}).
Standard 2-click unsubscribe
As soon as you have ticked the ‘Activate 2-click Logout’ box and then saved the configuration, the two-step unsubscribe process will work. A functioning logout page is already entered under ‘Individual unsubscribe page’.
Individual 2-click unsubscribe
If you want to use a individual unsubscribe page, you must ensure that the website used contains a functioning unsubscribe link. The following example shows how such a link can be generated via TAL.
If, for example, a LeadPage or an Evalanche website object is used as a 2-click unsubscribe page, the unsubscribe link must be generated from parameters transmitted by the mailing.
- First create a lead page object or alternatively a web page object.
- Activate personalisation in the object. In order for the TAL code to be interpreted on the unsubscribe page, a tick must be placed next to Activate personalisation.
- Paste the unsubscribe code from the Template in the source code view into the HTML body of the website/lead page.
- Copy the integration link of the website/lead page and insert the link in the 2-click unsubscribe next to ‘Individual unsubscribe page’.
- The parameters used are called n, o_sid and u. These parameters are automatically appended to the URL of the 2-click unsubscribe from the eMailing configuration. The code fragment contains TAL calls and therefore only works with the Evalanche website or lead page.
<a href="#" tal:attributes="href string:/delete.php?n=${REQUEST/n|string:},sid=${REQUEST/o_sid|string:},u=${REQUEST/u|string:}">unsubscribe here</a>
<a href="/delete.php?n=xxx,sid=xxx,u=xxx">unsubscribe here</a>