Integrate Ghost with Mailerlite to keep your members and email subscribers in sync and deliver email campaigns with ease
The most popular ways to integrate Mailerlite with Ghost are to sync your email list in Mailerlite with members in Ghost, or to embed custom email subscription or signup forms on your Ghost site.
Here’s how you can connect your Ghost publication to Mailerlite!
Import a CSV
When using the members feature in Ghost, you might want to import an existing list of subscribers from your Mailerlite account to get things going. This is entirely possible using CSV exports and imports.
In your Mailerlite account, navigate to the Subscribers 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 CSV.
In Ghost, you can import a CSV file from the member dashboard, and the only required field is email. However, if you have additional information it’s recommended to add it now using the optional headings available. Read more about formatting your CSV file.
Once your CSV adheres to Ghost’s import format, login to your site’s admin and click the settings icon in the members dashboard to import your file:
That’s it. All of your email subscribers have been imported as members of your Ghost site. You can now let your Mailerlite subscribers know that they can head to your website and enter their email address to access members-only content, or upgrade to a paid plan.
Sync Ghost members with MailerLite
If you’re running a membership publication with Ghost, it’s possible to link this with your MailerLite account using Zapier to ensure everything stays in sync.
There’s a few common use case examples for this:
- Import new subscribers in Mailerlite as members on your Ghost site
- Send new members in Ghost to your Mailerlite email list
- Automate sending new members in Ghost automated campaigns from Mailerlite, like a welcome or onboarding series This saves tons of time manually updating members and email lists across your tools 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 member lists are always up to date everywhere.
Embed an email subscription form
If you’d like to use one of Mailerlite’s own subscriber forms directly, that works too! You can use absolutely any embedded forms or popup options provided by Mailerlite within Ghost.
First you’ll need to create a new form in Mailerlite by choosing your form type, your email list and giving your form a name. Once your form has been created, Mailerlite allows you to change the design and settings, before giving you the embed code to add it to your Ghost site:
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. It’s usually
post.hbs - right after the content. In Ghost’s official themes, add the newsletter signup form after the line that reads
After editing, save the file, upload a fresh copy of your theme, and (if you’re self-hosting) restart Ghost. The form’s now visible on every post!