> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.ticketsource.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Email Marketing Integration 

1. [Overview ](#2-1-overview)
2. [Connect TicketSource to Mailchimp/Brevo](#2-2-connect-ticketsource-to-mailchimpbrevo)
3. [Two Way Synchronisation](#2-3-two-way-synchronisation)

## 1. Overview

TicketSource offers a direct integration with [Mailchimp](https://mailchimp.com) or [Brevo](https://www.brevo.com/). These email marketing services enable event organisers to manage marketing lists and compose and send marketing campaigns to subscribed customers.

By integrating your TicketSource account with your email marketing client, your customers' details and their marketing preferences will be added to automatically when they complete a booking.  You can then send marketing emails to your customers using the email client.

If a customer does not opt to receive email marketing material from you, their information will not be transferred. 

Similarly, if a customer unsubscribes via your email client or within TicketSource, the two systems communicate with each other to ensure marketing preferences are updated, provided you have configured [two way synchronisation](#2-3-two-way-synchronisation), provided.

## 2. Connect TicketSource to Mailchimp/Brevo

1. Within your TicketSource account, go to **Account** and **Integrations**
2. Under **Marketing platform integrations,** enable your required synchronisation and **connect to mailchimp/brevo** 
3. Login to your email marketing platform to authorise the connection with TicketSource
4. You will be automatically redirected back to TicketSource. You can then select the relevant audience to link to. 
5. **Save changes**

## 3. Two Way Synchronisation 

Enable your customers' TicketSource records to be updated in the event of them unsubscribing from the Mailchimp audience by setting up a webhook in your Mailchimp account.

###### Mailchimp

1. In your Mailchimp account, navigate to the [Audience](https://admin.mailchimp.com/audience/) tab
2. If you have more than one audience, click the **Current audience** drop-down menu and choose the audience you want to work with
3. Click the **Manage Audience** drop-down menu and choose the **Settings** menu option
4. Click the **Webhooks** link
5. Click the **Create New Webhook** button
6. In the Callback URL section, paste your unique callback URL. This can be located within your TicketSource account by heading to **Settings** and **Customers** under **Two way synronisation** 
7. Click the **Save** button

###### Brevo

1. In your Brevo account, navigate to the [Webhooks](https://my.brevo.com/advanced/webhook/) configuration and click **Add a New Webhook**
2. In **URL to post to,** paste the URL provided in the Settings > Customers page of your TicketSource dashboard
3. In the **When message is** section, choose the **Unsubscribed** option
4. In the **When a contact is** section, choose the **Updated** option
5. Click the **Add** button

Your email client will update the customer record on TicketSource automatically when a customer unsubscribes from your mailing list.

A separate option will automatically remove a customer from your Mailchimp list if the customer record is deleted from your TicketSource account. To allow this to happen, you will need to change a setting in your dashboard.

1. Go to Settings and select Customers
2. Scroll to **Marketing platform integrations** and tick the option 'Unsubscribe a customer from your Mailchimp/Brevo audience when their TicketSource customer record is deleted'
3. Click **save changes**
