Opt-outs and categories

People don't want all of your email, or none of it. Message categories let them choose: they can leave your newsletter, and still get product updates and receipts.

Message categories

Go to Messaging > Opt-outs, and click New category. Fill in:

  • Name, such as "Newsletter".
  • Key, such as newsletter. The API uses it. You can't change it later.
  • Message type: Marketing or Transactional. See below.
  • Public description, which people see on the preferences page, such as "Tips and stories, once a month".

Then pick a Message category on each broadcast and automation email step. PostHog skips everyone who opted out of that category, or out of all marketing email.

Ask your agentbuilding-workflows
“Create a marketing message category called Product Updates with key product_updates in PostHog.”

Message categories and the marketing opt-out list on the Opt-outs tab

Marketing or transactional

MarketingTransactional
ForNewsletters, product updates, offersReceipts, password resets, security alerts
Opt-outsRespectedIgnored, because people need these
Frequency capCountsDoesn't count
Suppression listAny entry blocks itOnly a hard bounce blocks it

Use transactional only for emails a person needs. Sending marketing as transactional breaks the law in most places, and gets you reported as spam. To learn how to tell the two apart, see marketing vs. transactional email.

See who opted out

The Marketing opt-out list shows who left all marketing email, and when. Expand a marketing category to see who left only that one. Transactional categories have no opt-outs.

People get on a list when they:

  • Click unsubscribe, in an email or in their email app. See unsubscribes.
  • Change their choices on the preferences page.

You can also add people yourself:

  • Add opt-out adds one address.
  • Import CSV adds many. The file needs an email column, and can have a category_key column.
  • Import from another tool brings opt-outs over from your old email provider. See move from another provider.

Export CSV downloads the list.

From your own systems

If your product has its own email settings, keep them in sync with the email subscriptions API. You can list a category's opt-outs, add them one at a time or up to 1,000 at once, and remove one when someone opts back in. Leave out the category to work with the opt-out from all marketing email.

When you opt someone back in to one marketing category, PostHog also lifts their opt-out from all marketing email. Their other marketing categories stay off.

Still have questions?

Was this page useful?