Product Dev Back to Ghost

How to use Campaign Monitor with your Ghost blog

The following guide outlines how to integrate email subscriptions with your Ghost blog using Campaign Monitor's RSS to Email feature. This feature pushes your blog content to readers who subscribe.

Create a Campaign Monitor Account

To begin, create a free Campaign Monitor account.

Campaign Monitor signup

Create a subscriber list

First, we will need to create a list for our subscribers. To do this, click on the "List & Subscribers" tab from the top navigation menu. From there, click on the green "Create a new list" button. This will direct you to a screen where you can name your new list.

create list

Once you've created a list, you'll need to create a campaign.

Create a new campaign

To create a new campaign, click on the "Create & Send" tab from the top navigation menu. From there, click on the green "Create a new campaign" button.

create new campaign

Next, click on the RSS to Email icon.

rss to email

Then, enter in your Ghost blog's URL and click the "Look up" button.

look up blog URL

Once Campaign Monitor has found your feed, click the green "Use this feed" button to continue.

use feed

Next, you will need to customize your email subject line and from fields, then decide on the frequency you will push emails to your subscribers. When you've finished, click the green "Next" button to continue.

customize email

Next, you'll want to click use the template builder to customize the emails that get sent to your email subscribers. To do this, click on the "Get started" button.

build template

When you've finished customizing your template, click on the green "Finish & define recipients" button to name your template and continue.

finish template design

Next, you'll want to select which recipients will receive this particular email. Remember that list we created? Check the box for the list you established earlier, and hit the green "Next" button.

blog list

Finally, click on the "Test and wrap up" button and pat yourself on the back. You've successfully set up a campaign that connects to a list of subscribers.

Note:To send your campaign out, you will need to subscribe to a Campaign Monitor plan.

Next, you will need to create a way for people to subscribe to your list, so that your campaign has people to notifications to.

Create a signup form to collect subscribers.

Now that your list and campaign have been created, you'll want to create your signup form for your subscribers to use. To do this, on your "overview" page, click on the button underneath Build an audience that says, "Create a signup form."

create form

From here there are two ways that you can collect email subscribers to your newly created list. You can either embed a subscription form on your Ghost blog, OR you can update the "Subscribe" link on your blog to direct users to a signup landing page. Below are instructions for each.

Embed a Subscription Form
To embed an email subscription form to your blog, click on the link to "copy/paste a form to your site."

copy/paste form to your site

Next, click on the green, "Get the code" button to generate your form code.

Get form code

Once the code has been generated, copy the code that is displayed.

grab code

You can place the form code anywhere you’d like the subscription form to appear on your blog's theme, however if you’d like the form to appear on every page/post of your blog, the default.hbs file may be an ideal location. Regardless of where you place it, you will need to open the file in an HTML editor, and paste the form code into the file where you’d like the form to display. Once placed, you can save your theme files and upload your theme to your blog.

Update the "Subscribe" button link
If you'd prefer to update your theme's "Subscribe" button/link, rather than embed a form, you will want to click on "Link to a subscribe page" to create a form page that can easily be linked to.

subscribe page link

Next, copy the link that is provided by Campaign Monitor for your subscription page.

Subscription link

Next, you will need to open up your theme files, and replace all links within your theme that reference your RSS URL, [email protected]}}/rss/, with your new Campaign Monitor subscription link. In the default Casper theme, you will need to update the navigation.hbs file (found in the partials directory).

Note:If you want to retain the custom RSS feeds for each tag, you will need to create separate RSS to email feeds for each tag, using the tag's specific RSS feed - i.e [email protected]}}/tag/{{tag.slug}}/rss/.

When you've finished editing your theme, save the file(s) and upload your theme to your blog. When finished, your visitors will be able to subscribe to your blog using their email address, and you will be able to manage and see how many people have subscribed to your blog via Campaign Monitor.