In order to take advantage of JSON Feeds feature, when you create an email campaign, you will have to enable the feature. This feature is similar to embedding XML/ RSS feed into email campaign.
In order to take advantage of this feature, when you create a campaign, you will have to enable the feature by selecting “JSON Feed” during campaign creation step.
Next, in the campaign template, you will have to add a set of tags that The Expo Email Platform will recognize and transform into the actual content of the feed. To do this first switch your email template editor to HTML Source mode.
Then add the code (Download below code). Here is a brief example of what you will have to add inside your campaign template to make use of this feature:
The [JSON_FEED_BEGIN] tag accepts two arguments, url and count.
The url is, well, the url of the feed and the count is the number of items you want to receive back from the feed.
Below is a list with all the tags accepted for JSON feeds:
- [JSON_FEED_ITEM_TITLE] – The item title (the title of a product for example)
- [JSON_FEED_ITEM_DESCRIPTION] – Short item description
- [JSON_FEED_ITEM_CONTENT] – Item content
- [JSON_FEED_ITEM_IMAGE] – The image of the item
- [JSON_FEED_ITEM_LINK] – The url/permalink to the item
- [JSON_FEED_ITEM_PUBDATE] – Item publish date
- [JSON_FEED_ITEM_GUID] – Item guid.
All the above tags will work if the feed is valid and the content they try to replace exist in the feed.
You should test your feed campaign before sending, to make sure the tags are parsed and the content is fine because the parsing is strict, any minor error will stop parsing the tags and render them without transformation.