# How to add an unsubscribe link to your email template?

## Why add an unsubscribe link to your email? <a href="#h_beef1fa82f" id="h_beef1fa82f"></a>

Adding an unsubscribe link to your e-mail marketing campaigns allows Batch to get **instant opt-out feedback** and to not retarget recipients who have chosen to unsubscribe.

Thus, it allows:

* Not to generate dissatisfaction with the recipient who has chosen not to receive e-mail marketing anymore.
* Not to damage the sending reputation.

{% hint style="danger" %}
Unsubscribe links are mandatory in marketing campaigns but **should not be included in transactional campaigns.**
{% endhint %}

Here is an example of an unsubscribe link:

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FSQdcxYV6gYlhaWT9RiV9%2FUnsubcribe.png?alt=media&#x26;token=2a8d542a-51f3-46b4-b752-4a0972ba6b9b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Unsubscribe from an email is recorded when the end user **clicks on the unsubscribe link**. The end user then lands on an unsubscribe confirmation page.
{% endhint %}

## Adding an unsubscribe link to a template via HTML <a href="#h_de458c04a9" id="h_de458c04a9"></a>

Here is how you can simply add an unsubscribe link for an email template in a single language:

```
<a data-msys-unsubscribe="1" data-msys-linkname="batch::unsub" href="[LANDING PAGE LINK]">Unsubscribe</a>
```

If the email template already contains personalization conditions to change the language of certain text blocks, the same should be done for the unsubscribe link:

```
<a data-msys-unsubscribe="1" data-msys-linkname="batch::unsub" {% if b.language == 'fr' %}href="https://static.batch.com/list-management/landing.fr.html"> Se désinscrire {% else %} href="https://static.batch.com/list-management/landing.html"> Unsubscribe {% end %}</a>
```

## Adding an unsubscribe link to a template using the Email composer

You can also insert an unsubscribe link easily when using the email composer to create your email templates.

To do so:

1. Select the text
2. Add a hyperlink to the text area
3. Select the Unsubscribe option listed in the Link field on the left side panel.

{% hint style="warning" %}
Please note that `{{emailComposerUnsubscribeLink()}}` is **only compatible with the drag and drop email composer**, and should not be used for HTML email creation.
{% endhint %}

<figure><img src="https://509463063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfiAYaWDWqtFZeXxyg67F%2Fuploads%2FjpdAnxdY5dQWt3que7g9%2Funsub.png?alt=media&#x26;token=7b5ccf02-d47b-47f6-9f26-10d806757f87" alt=""><figcaption></figcaption></figure>

## Choosing a confirmation landing page <a href="#h_2c551c2d00" id="h_2c551c2d00"></a>

Once recipients click on the "unsubscribe" link:

* Batch **removes the recipients** from the marketing mailing list
* Recipients are redirected to a **personalized landing page** hosted on your side

Batch unsubscribe confirmation landing page is localized in FR/DE/ES/EN/IT: when inserting the unsubscribe variable, the landing page will be translated in the end user's browser language.

{% hint style="info" %}
By default, the purpose of this page is to confirm that the user is opt-out of your marketing mailing list. It also gives you a last chance to convince them to stay and continue to receive your content by redirecting them to a preference centre.
{% endhint %}

If you do not have one yet, you can use our default landing page:

* 🇫🇷 French: <https://static.batch.com/list-management/landing.fr.html>
* 🇩🇪 German: <https://static.batch.com/list-management/landing.de.html>
* 🇬🇧 English: <https://static.batch.com/list-management/landing.html>
* 🇪🇸 Spanish: <https://static.batch.com/list-management/landing.es.html>
* 🇮🇹 Italian: <https://static.batch.com/list-management/landing.it.html>
