# Insert an unsubscribe link

Source: https://yamm.com/help/usage/create-campaign/insert-unsubscribe-link/

Add an **unsubscribe link** to your email and track recipients who unsubscribe. YAMM records this in the tracking report, and unsubscribed addresses are automatically excluded from future mail merges.

YAMM is not an [Email Service Provider](https://en.wikipedia.org/wiki/Email_service_provider_\(marketing\)). It is an add-on that sends emails via your Google account. So it is your responsibility to add an unsubscribe link to your emails when needed. As a reminder, this is mandatory for newsletters. If your recipients are not able to unsubscribe from your list, your email might be flagged as spam. [Learn more.](https://yamm.com/help/usage/create-campaign/avoid-spam-issues/index.md)

Warning: Third-party email tracking tools may interfere with YAMM's unsubscribe tracking. Disable them before inserting the unsubscribe link into your Gmail draft.

Both steps below are required. The unsubscribe link only works if tracking is also enabled when you send.

## 1. Insert the unsubscribe link

1. Open your template in [Gmail](https://yamm.com/help/usage/create-campaign/draft-template/index.md#start-from-gmail) or [Google Docs](https://yamm.com/help/usage/create-campaign/draft-template/index.md#start-from-google-docs).

2. Copy the following unsubscribe link:

   ```text
   https://app.yamm.com/unsubscribe
   ```

3. Insert the copied link at the end of your template.

   ![Gmail draft with an unsubscribe link pointing to the YAMM unsubscribe URL](https://yamm.com/help/images/docs/usage/create-campaign/insert-unsubscribe-link/insert-unsubscribe-link-in-email-to-reduce-spam-issues-1.png)

   Warning: Don't copy the link from a previously sent email: once sent, it's re-encoded for that specific recipient.

## 2. Activate tracking

Before sending your mail merge, make sure to [activate tracking](https://yamm.com/help/usage/track-campaign/about-tracking/index.md#track-and-measure-your-mail-merge-results) to enable the unsubscribe links.

1. Open your [contact list spreadsheet](https://yamm.com/help/usage/create-campaign/build-contact-list/index.md) in Google Sheets.

2. Select **Extensions** > **Yet Another Mail Merge: Mail Merge for Gmail** > **Start Mail Merge**.

   ![Start Mail Merge in the Extensions > Yet Another Mail Merge menu](https://yamm.com/help/images/docs/usage/create-campaign/send-test-email/email-preview-receive-test-email-before-starting-mail-merge-1.png)

3. Select the template containing the unsubscribe link.

4. Select **Track emails opened, clicked or bounced**.

   ![Start Mail Merge window with the Track emails opened, clicked or bounced option checked](https://yamm.com/help/images/docs/usage/create-campaign/insert-unsubscribe-link/insert-unsubscribe-link-in-email-to-reduce-spam-issues-2.png)

5. Click **Send emails**.

## Check the status of your unsubscribe link

If the unsubscribe link is inserted and tracking is enabled, the unsubscribe feature appears as **Enabled** in the advanced features panel. If tracking isn't enabled, YAMM displays a warning.

![Options panel of the Start Mail Merge window showing the unsubscribe link as Enabled](https://yamm.com/help/images/docs/usage/create-campaign/insert-unsubscribe-link/insert-unsubscribe-link-in-email-to-reduce-spam-issues-3.png)

![Options panel of the Start Mail Merge window showing the unsubscribe link with a Tracking disabled warning](https://yamm.com/help/images/docs/usage/create-campaign/insert-unsubscribe-link/insert-unsubscribe-link-in-email-to-reduce-spam-issues-4.png)

## What's next

- [Start your mail merge.](https://yamm.com/help/usage/launch-campaign/start-mail-merge/index.md)
- [Manage your unsubscribe list.](https://yamm.com/help/usage/track-campaign/unsubscribe-rate/index.md)
- [Check the tracking report.](https://yamm.com/help/usage/track-campaign/about-tracking/index.md)
