> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Unsubscribes and the preferences page Canonical URL: https://posthog.com/docs/workflows/email/unsubscribes > **Cloud region:** This page uses US Cloud hosts. For an EU Cloud project, use `https://eu.posthog.com` instead of `https://app.posthog.com` (app host for links). ## On this page - [Add the link](#add-the-link) - [The preferences page](#the-preferences-page) - [One-click unsubscribe](#one-click-unsubscribe) - [What happens next](#what-happens-next) - [Transactional emails](#transactional-emails) Every marketing email needs a way out. It's the law in most places, and someone who can't find the link clicks "Report spam" instead, which hurts your [deliverability](https://posthog.com/docs/workflows/email/deliverability.md). ## Add the link In the [email editor](https://posthog.com/docs/workflows/email-editor.md), add the **Unsubscribe link** block, usually in the footer. The editor warns you when a marketing email has no unsubscribe link. Or use the variable anywhere: ```liquid Unsubscribe or change what you get ``` `{{ unsubscribe_url }}` opens the person's preferences page. ## The preferences page The page lists your marketing [categories](https://posthog.com/docs/workflows/email/opt-outs.md), each with its public description and a toggle, and an **All marketing communications** toggle. Changes save as soon as the person makes them. Turning off every category also turns off all marketing email. If you use [tracking consent](https://posthog.com/docs/workflows/email/link-tracking.md#tracking-consent), the page also has an **Open and click tracking** toggle. To see the page, go to [**Messaging** > **Opt-outs**](https://app.posthog.com/workflows/opt-outs), and click **Preview opt-out page**. ![The recipient preferences page with marketing category toggles, All marketing communications, and Open and click tracking](https://res.cloudinary.com/dmukukwp6/image/upload/w_1600,c_limit,q_auto,f_auto/preferences_page_light_c3faf919fd.png) ## One-click unsubscribe PostHog adds `List-Unsubscribe` and `List-Unsubscribe-Post` headers to every marketing email. Gmail, Yahoo, and other mailbox providers use them to show their own **Unsubscribe** button next to your sender name. One click there unsubscribes the person from all marketing email. You don't need to do anything. Large senders need these headers to reach Gmail and Yahoo inboxes. To put the same one-click link in the email body, use `{{ unsubscribe_url_one_click }}`. When someone opens it, PostHog asks them to confirm first, so link scanners can't unsubscribe people by mistake. ## What happens next - PostHog opts the person out of that category, or of all marketing email, and skips them from then on. - If [engagement events](https://posthog.com/docs/workflows/email/engagement-events.md) are on, PostHog records a `$workflows_email_unsubscribed` event, with `source` set to `one_click` or `preferences_page`. - A broadcast's results count its unsubscribes. ## Transactional emails Transactional emails, such as receipts and password resets, don't get an unsubscribe header, and ignore opt-outs, because people need them. Never use them for marketing.