This feature requires Manager user level or higher.
With MailChimp's *|FEED|* merge tags, you can include blog posts from any RSS feeds in any of your campaigns. If you use *|FEED|* tags in an RSS-driven campaign, we'll embed additional blog content to your scheduled RSS campaigns.
Below, you'll learn how to use and customize *|FEED|* merge tags in your campaigns.
Add Feed in a Campaign
To include a linked blog post in your campaign content, input the *|FEED:http://blog.example.com[$category=xyz]|* tag into any the text editor of any content block on the
Design step of the Campaign Builder. Add any other content or images around the tags, as you normally would.
Here's what the FEED tag should look like, after you add a URL and parameters for the number of blog entries. In this example, we're asking the campaign to display two entries from the MailChimp blog RSS feed.
In the text editor, place the code anywhere you want the blog entries to appear.
FEED merge tags must include the URL where blog's RSS feed is located. Additional variables are optional, and indicate how to format each entry in your campaign.
- In this example, the URL is http://www.mailchimp.com/blog/feed/.
- $count=2 indicates how many blog posts to show in the campaign. Replace the "2" with your preferred number.
- $content=full tells the feed to display the full blog post.
- $content=titles tells the feed to display the titles of each entry only, formatted as links to full content.
If you choose to use more than one of these, format your feed like the example below.
To include posts from multiple blogs in your campaign, place another *|FEED|* tag in the text for each blog feed you want to pull from.
Customize Your Feed
For greater control over blog content, use *|FEEDBLOCK|* merge tags to surround customized RSS feed elements. These tags indicate how many entries pull from a feed and subsequently, which feed elements to include for each entry.
To build a FEEDBLOCK, follow the steps below.
- Navigate to the Design step of the Campaign Builder.
- Click to edit any content block.
- In the text editor, enter the tags *|FEEDBLOCK:URL|* and *|FEEDITEMS:$count=#]|* to open the feed section of your campaign. Replace the URL with your RSS feed's URL, and replace # with the number of entries you want to show.
- Enter FEEDITEM tags to specify which content you want to include for each entry.
- At the end of these content tags, enter the closing tags *|END:FEEDITEMS|* and *|END:FEEDBLOCK|*.
In the end, your block might look something like this example, which tells MailChimp to embed two blog entries, and include the entry title, the date it was posted, the author, and a summary of the content presented in text, for each blog entry.
*|FEEDBLOCK:http://blog.mailchimp.com/feed|* *|FEEDITEMS:[$count=2]|* *|FEEDITEM:TITLE|* *|FEEDITEM:DATE|* *|FEEDITEM:AUTHOR|* *|FEEDITEM:CONTENT_TEXT|* *|END:FEEDITEMS|* *|END:FEEDBLOCK|*
Content that uses Feedblock merge tags cannot be tracked in campaign reports because Feedblock tags are populated after click tracking is applied.