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 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; 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 and upload a fresh copy of your theme. The form is now visible on every post!