Integrate Ghost with Mailchimp to keep subscribers in sync and deliver email campaigns efficiently
The most popular ways to integrate Mailchimp with Ghost are to sync your email subscribers, 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:
Sync Ghost subscribers to Mailchimp
If you're collecting your visitors email addresses using the built-in subscribers feature in Ghost, it's possible to link this with your Mailchimp account using Zapier to ensure subscribers in Ghost are always pushed into Mailchimp, or vice versa.
This saves tons of time manually updating email lists, and ensures everything is fully in sync and secure.
Once this integration has been setup it'll run in the background and make sure that your subscriber lists are always up to date.
Embed an email subscription form
If you prefer to use 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.
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:
- Main post index - https://demo.ghost.io/rss/
- Author archive - https://demo.ghost.io/author/lewis/rss/
- Tag archive - https://demo.ghost.io/tag/fiction/rss/
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: