Embed JSON feeds into your campaign
Go to "Campaigns" -- "All Campaigns" -- "Create new" from the sidebar menu Follow the same steps as you would to "set up an email campaign" On the third step (Template), paste your...
-
Go to "Campaigns" --> "All Campaigns" --> "Create new" from the sidebar menu
-
Follow the same steps as you would to "set up an email campaign"
-
On the third step (Template), paste your JSON-specific email template code
JSON_FEED_BEGIN opening tag
-
url - The source URL for fetching feed items (Mandatory)
-
count - The number of items to retrieve from the feed (Optional)
-
offset - The number of items to skip when loading the feed (Optional, added in version 1.5.1)
-
days-back - The number of past days to consider when fetching posts (Optional)
-
no-item-action - Action to take if no items are found in the feed (Optional)- Valid value: "postpone-campaign" (delays the campaign to the next day)
-
send-only-unique-items - Option to send only unique feed items (Optional)- Valid values: "yes" or "no"
JSON Tags
-
[JSON_FEED_ITEM_TITLE] - Displays the title of the feed item (e.g., product name)
-
[JSON_FEED_ITEM_DESCRIPTION] - Shows a brief description of the feed item
-
[JSON_FEED_ITEM_CONTENT] - Presents the full content of the feed item
-
[JSON_FEED_ITEM_IMAGE] - Displays the image associated with the feed item
-
[JSON_FEED_ITEM_LINK] - Provides the URL or permalink to the feed item
-
[JSON_FEED_ITEM_PUBDATE] - Shows the publication date of the feed item
-
[JSON_FEED_ITEM_GUID] - Displays the unique identifier (GUID) of the feed item
Example HTML email template code
<!DOCTYPE HTML> <html> <head> <meta http-equiv="content-type" content="text/html" /> <title>JSON FEEDS</title> </head> <body> [JSON_FEED_BEGIN url='https://www.spotzee.com/blog/json-feed.json' count='5' offset='0'] <table> <tr> <td> <a href="[JSON_FEED_ITEM_1_LINK]"> <img src="[JSON_FEED_ITEM_1_IMAGE]" width="100" height="100"/> </a> </td> <td> <strong>[JSON_FEED_ITEM_1_TITLE]</strong><br /> <p>[JSON_FEED_ITEM_1_DESCRIPTION]</p> </td> </tr> </table> [JSON_FEED_END] </body> </html>
Recommendation
-
Test before sending - It's crucial to thoroughly test your JSON feed campaign before sending it to your audience
-
Tag parsing - The system strictly interprets JSON tags; even minor errors can cause issues
-
Content verification - Ensure that all feed content appears correctly in your email template
-
Error handling - If there's an error in JSON syntax or tag usage, the system will: - Stop parsing the problematic tags
-
Display the raw, untransformed tags in the email
-
Common issues to check: - Correct spelling of JSON tags
-
Proper nesting of tags
-
Accurate URL for the feed source
-
Compatibility of feed content with email format
Related articles
Domain Auth SPF, DKIM, DMARC, MX
Note: This guide only helps with email authentication for the emails (Eg. Email notifications) sent using OUR delivery server we configured for you. It DOES NOT apply if you are us...
Using Stripo email template builder
Step 1 Go to the 'Email templates' menu from the left and click on 'Create new'. Step 2 Once loaded, click on the 'Show email builder' link in the top right corner of the WYSIWYG e...
Email campaigns paused - 'pending-sending'
You ran out of your monthly allowance We enforce limits from the backend. Our system automatically disables once your customers have used up their sending allowance. The counter ca...