Skip to content

MailChimp webhook setup

Koen87 edited this page Mar 1, 2018 · 13 revisions

HOME > SNOWPLOW SETUP GUIDE > Step 2b: setup a Webhook > Mailchimp webhook setup

Contents

1. Overview

This webhook integration lets you track a variety of events logged by MailChimp.

Available events are:

  • Subscribes
  • Unsubscribes
  • Profile Updates
  • Email Address Changes
  • Cleaned Emails
  • Campaign Sending Status

For the technical implementation, see MailChimp webhook adapter.

1.1 Compatibility

2. Setup

Integrating MailChimp's webhooks into Snowplow is a two-stage process:

  1. Configure MailChimp to send events to Snowplow
  2. (Optional) Create the MailChimp events tables into Amazon Redshift

2.1 MailChimp

First login to MailChimp. Select Lists from the menu panel along the left handside of the screen.

Then select Create List in the top right hand corner and fill in the required fields to create a new list.

Once we have a new list navigate to the Settings dropdown option and select Webhooks from the menu.

For the Callback URL field you will need to provide the URI to your Snowplow Collector. We use a special path to tell Snowplow that these events are generated by MailChimp:

http://<collector host>/com.mailchimp/v1

Our Webhooks setup page should look like this after we have added our Callback URL:

If you want, you can also manually override the event's platform parameter by appending a query string to the end of the URL so:

http://<collector host>/com.mailchimp/v1?p=<platform code>

Supported platform codes can again be found in the Snowplow Tracker Protocol; if not set, then the value for platform will default to srv for a server-side application.

Before we save our MailChimp webhook we can configure what types of events MailChimp will send to our webhook and what channels will trigger these events. Simply select the boxes that are applicable to you and MailChimp will send these events to our webhook.

2.2 Redshift

If you are running the Snowplow batch flow with Amazon Redshift, then you should deploy the relevant event tables into your Amazon Redshift.

You can find the table definitions here:

Make sure to deploy this table into the same schema as your events table.

That's it - with this table deployed, your MailChimp events should automatically flow through into Redshift.

Clone this wiki locally
You can’t perform that action at this time.