Mailchimp + Ghost

How to use Ghost and Mailchimp together

Mailchimp
Ghost

Integrate Ghost with Mailchimp to keep your members and email subscribers in sync and deliver email campaigns efficiently

The most popular ways to integrate Mailchimp with Ghost are to sync members in Ghost with your email list, embedding custom email subscription or signup forms and creating an RSS driven newsletter.

Let's run through a few of the different ways you can use Ghost and Mailchimp together:

Import a CSV

When using the members feature in Ghost, you might want to import an existing list of subscribers from your Mailchimp account. This is entirely possible using simple CSV imports.

In your Mailchimp account, navigate to the Audience tab, and apply any filters necessary to locate the list of emails you'd like to import to Ghost members. Once you're done, click "Export audience". Read more about exports in Mailchimp in their help docs.

In Ghost, you can import a CSV file with three headings: email, name and note. Email is the only required field to make this integration work, but if you have names or additional notes we'd recommend importing them now.

Once your CSV is good to go, login to your site's admin and click the settings icon in the members dashboard to import your file.

You can now let your email subscribers know that they can head to your website and enter their email address to access members-only content.

Sync Ghost members with Mailchimp

If you're running a membership publication with Ghost, it's possible to link this with your Mailchimp account using Zapier to ensure everything stays in sync. There's a few common use case examples for this:

  • Import new subscribers in Mailchimp as members on your Ghost site
  • Send new members in Ghost to your Mailchimp email list
  • Automate sending new members in Ghost emails or campaigns from Mailchimp

This saves tons of time manually updating members and email lists, ensures everything is fully in sync and secure, and allows you to send custom email flows to your members.

Once this integration has been setup it'll run in the background and make sure that your member lists are always up to date.


Embed an email subscription form

If you'd like to use one of Mailchimp's own subscriber forms directly, that works too! You can use absolutely any of the form builders, popups or other embed options provided by Mailchimp within Ghost.

First you'll need to create a new signup form for your Mailchimp list and copy the code provided:

Add the form to a single post

If you just want to add the signup form to one particular post or page on your site - you can add a new HTML block within the Ghost editor and paste the embed code there. Hit publish. And you're all set.

Add the form to multiple pages of your site

On the other hand, if you'd like to add a newsletter signup form to multiple pages of your site - then you'll need to add the embed code to your Ghost theme.

Locate the template file where you want to insert the signup form; usually post.hbs - right after the content. In Casper, Ghost's default theme, you'll see a line of code specifically reserved for inserting comments. This also makes a great place for dropping in a newsletter signup form, so you can paste the code here, too.

Make sure you remove the comments on line 65 and 69

After editing you'll need to save the file, upload a fresh copy of your theme, and (if you're self-hosting) restart Ghost. The form is now visible on every post!


Setup an RSS to Email campaign

It's also possible to use the Mailchimp RSS-to-Email feature to generate automated newsletters of your latest content on Ghost, directly to your subscribers!

Once you've created a new campaign, enter the RSS feed which you'd like to use to populate your newsletter content. Don't forget: You can add /rss/ to most URLs in Ghost to get a custom RSS feed. Here are some demo examples:

Mailchimp will then automatically read your RSS feed at the time interval you specify and email your subscribers all of your latest posts automatically!


Do more with Zapier automation

It's possible to connect Mailchimp to many more of your favourite tools and align all of your processes using Zapier with lots of commonly used Zaps already pre-built, or if you can't find what you're looking for you can build your own: