Skip to main content

pretix Mailchimp Newsletter

This is a plugin for pretix.

Mailchimp newsletter subscription with booking (opt-in).

Behavior

  • Activated on organizer level.

  • Applies to all events of the organizer by default.

  • Can only be disabled per event.

  • Shows an optional checkbox in the booking contact form.

  • Also shows an optional checkbox in the attendee/question form for every personalized order position, but only if the event asks for email addresses per ticket.

  • If no checkbox is selected, nothing is sent to Mailchimp.

  • If selected, the contact is created or updated in the configured Mailchimp audience.

  • The contact is tagged with the main pretix event, not the subevent/date.

  • Existing contacts are not overwritten unnecessarily; the event tag is added.

  • If booking contact and attendee use the same email address in one order, the plugin avoids duplicate Mailchimp calls.

Default public text:

ZAMgefasst, der Newsletter 1x pro Monat aus dem ZAM

Installation

Inside your pretix virtualenv:

pip install -e .

Then restart pretix and enable the plugin on organizer level.

Configuration

Go to the plugin settings on organizer level and configure:

  • Mailchimp API key

  • Mailchimp Audience/List ID

  • status for new contacts (pending recommended for double opt-in)

  • tag template

  • public checkbox label, with translations

  • public help text, with translations

Per event, go to event settings and use Newsletter opt-in deaktivieren if the opt-in should not be shown for that event.

Opt-in behavior

The plugin stores and evaluates two independent opt-ins:

  • booking contact opt-in: saved in order.meta_info["contact_form_data"]

  • attendee/position opt-in: saved in position.meta_info["question_form_data"]

This matters for events with non-personalized products: If pretix does not ask for attendee name/email per position, the booking contact can still explicitly subscribe.

Mailchimp tag template placeholders

The tag template can use:

  • {organizer} - organizer slug

  • {event_slug} - event slug

  • {event} - event name

  • {event_id} - internal event id

Example:

ZAM Veranstaltung: {event}

or more stable:

pretix:{organizer}:{event_slug}

Privacy note

This plugin only transfers a contact after explicit opt-in. For new Mailchimp contacts, pending is the recommended default so Mailchimp sends a confirmation email. Existing unsubscribed contacts are not forcefully resubscribed by default; they only receive the event tag.

Development setup

  1. Make sure that you have a working pretix development setup.

  2. Clone this repository.

  3. Activate the virtual environment you use for pretix development.

  4. Execute python setup.py develop within this directory to register this application with pretix’s plugin registry.

  5. Execute make within this directory to compile translations.

  6. Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in the ‘plugins’ tab in the settings.

This plugin has CI set up to enforce a few code style rules. To check locally, you need these packages installed:

pip install flake8 isort black

To check your plugin for rule violations, run:

black --check .
isort -c .
flake8 .

You can auto-fix some of these issues by running:

isort .
black .

To automatically check for these issues before you commit, you can run .install-hooks.

License

Copyright 2026 Julian Hammer

Released under the terms of the Apache License 2.0

Metadata

Release files for pretix-mailchimp 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pretix-mailchimp 0.2.6
File Size Uploaded
pretix_mailchimp-0.2.6.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pretix-mailchimp 0.2.6
File Interpreter ABI Platform
pretix_mailchimp-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 31.7 kB

Release files / pretix_mailchimp-0.2.6.tar.gz

Download URL pretix_mailchimp-0.2.6.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
51c5ba65a8f627134c10d7e7f7119f3313e5c39a629fb2e7d960a6e3003253c8
BLAKE2b-256 checksum
How to use checksums
700f5344eba0cf94ba6eddf7e9ab873e70f9f3fa2a0baf6e2883d90e2ee7f6c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / pretix_mailchimp-0.2.6-py3-none-any.whl

Download URL pretix_mailchimp-0.2.6-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2783719cdfe007383b38abc728d8bfafb7828872e3baf8781ec07f4bd50cd3c7
BLAKE2b-256 checksum
How to use checksums
ee601f1db04cceb413622772ca4d8b787e1cad2a643e1b5295de735edf768e49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page