A product data feed is a dynamic list of the products available in your online store that is generated according to chosen criteria. It includes details on your products such as name, description, prices, images, and availability. A well-organized product data feed showcases your products effectively, and guarantees consistent and accurate product information across all channels, building trust with customers and reducing returns.
The Product feeds dashboard allows you to easily create those dynamic product data feeds to display your best-selling products. For example, you can create a product data feed featuring the best-selling yoga mats in the last 7 days and integrate it into your email campaigns. When sending your email campaign, your product feed is automatically updated, always displaying the list of best-selling products based on your preselected criteria ensuring customers receive accurate and up-to-date details, including price changes. |
Before you start
- All the products and categories from your eCommerce website are retrieved. If you want to display products from a specific category, ensure your categories/collections are up-to-date on your eCommerce website.
- Contact your Customer Success Manager (CSM) to enable the Developer mode if you use the Drag & Drop Editor. Else, use the HTML editor to create your email.
- Create the email template in which you want to add a product feed. To learn more, check our dedicated article Create an email template.
Step 1: Create your product feed
In this use case, we want to create a product feed with our 3 best-selling yoga mats from the past 3 months. We want to display this feed to beginners.
- Go to E-commerce > Product feeds and click Create new feed.
- Enter a name for your product feed that will help you find it easily in the list. This name will only be visible to you. You cannot include spaces in the name.
For this use case, Top_Yoga_Mats_Beginners_3-months. - From the Period drop-down list, choose the period over which you want to retrieve sales data to display the best-selling products.
For this use case, we want to display the most-selling yoga mats from the last 3 months. - Optional: Limit products by category. Choose if you want to include or exclude the products in specific categories. You can choose as many categories as needed. The categories are automatically retrieved from your eCommerce website.
For this use case, we want to include only the products from the Yoga mats category. - Optional: Limit products by price. Choose if you want to display only products with a price higher or lower than a specific price.
For this use case, we want to display only yoga mats with a price lower than 50€ as beginners rarely spend a lot of money on equipment. - Check your product feed preview.
- Click Exclude next to a product name to remove it from the product feed. You can also go to the Exclude Products tab and click Find products to exclude to access the list of products present in your feed and search for the ones to exclude.
For this use case, we want to remove yoga mats that are too thick and unsuitable for beginners. - Click Create.
Congratulations! 🎉 Your product feed is created. It will automatically update according to your actual sales to always display your most-selling products. Use your product feed in your email campaigns to send a best-selling yoga mats newsletter for beginners, for example.
Step 2: Use your product feed in your email
1️⃣ Connect your product feed to your email
Create an email campaign or template and access the Design step. Depending on the design tool you chose, the steps and syntax to connect your product feed to your email template are different:
- From the Drag & Drop Editor, click Developer mode to open the code editor.
- Copy the following placeholder and paste it after the subject line:
feeds:
-
name: variablearray
source: feedname - In this placeholder, replace:
- variablearray with a name for your array that will later give you access to your variables in the email design, here we will call it mat.
-
feedname with your product feed name, here Top_Yoga_Mats_Beginners_3-months.
❗️ ImportantBe careful to write the feedname exactly how it appears in your product feed setup as it is case-sensitive. For example, if your feed name is top-yoga-mats and you write Top-Yoga-Mats, the connection between your email template and your product feed will fail.
- Close the developer mode by clicking the close X icon.
- Copy the following placeholder and paste it into the HTML editor at the beginning of your HTLM code before the body tag:
<!-- feed.variablearray : {{ feed.get ("feedname") }} -->
- In this placeholder, replace:
- variablearray with a name for your array that will later give you access to your variables in the email design, here we will call it mat.
-
feedname with your product feed name, here Top_Yoga_Mats_Beginners_3-months.
❗️ ImportantBe careful to write the feedname exactly how it appears in your product feed setup as it is case-sensitive. For example, if your feed name is top-yoga-mats and you write Top-Yoga-Mats, the connection between your email template and your product feed will fail.
2️⃣ Access the product feed in your email
Your product feed is set up and connected to your email template. It is now time to access the data contained in your product feed to display it. Each data will be called separately with variables according to the information you want to display.
Depending on the design tool you chose when creating your email, the steps and syntax to access your product feed are different:
- From the Drag & Drop Editor, insert a content block where you want to display your data.
- Copy the following placeholder:
{{ product.variable }} - In your content block, paste the placeholder for each data you want to retrieve from your product feed. Leave product as is and replace variable with the variable name in the product feed that contains the data you want to retrieve. For example, if you want to retrieve the name of your products in the product feed, replace variable with name.
Drag & Drop Editor Email preview - To retrieve an image, click the image icon and paste the placeholder in the Insert image from URL field, here:
{{ product.imageUrl }} - To add a link to a button, insert a button block and click Add a link. Choose Absolute link (URL) and paste the placeholder in the Link target field, here:
{{ product.url }} -
To display the same content block multiple times to show, for example, the top 3 sold yoga mats on your website, use the repeat block feature:
- Click the section containing the content you want to repeat and click > Repeat.
- In the Data type drop-down, select External feed.
- In the Repeat for field, enter mat.products with mat being your variable array defined in the developer mode, and products being the Brevo product feed variable.
- In the Variable alias field, enter product which is the name of the variable alias in the Brevo product feed.
- In the Limit (Optional) field, enter the number of products from the product feed you want to display. Here we want to display the top 3 yoga mats in our case, so we enter 3.
- Click Add loop.
- Click the section containing the content you want to repeat and click > Repeat.
- Once you are done designing your email template, click Save & Quit.
- Copy the following placeholder and paste it where you want your product data to display in the email template:
{{ product.variable }} - In this placeholder, leave product as is and replace variable with the variable name in the product feed that contains the data you want to retrieve. For example, if you want to retrieve the image in your product feed, replace variable with imageUrl.
HTML editor Email preview - To display the same content block multiple times to show, for example, the top 3 sold yoga mats on your website, use for-loops. To learn more, check our dedicated article Advanced - Repeat a block of items using for-loops.
- Once you are done designing your email template, click Continue.
3️⃣ Test your email
To ensure that your email content will display correctly in your recipients' inboxes, we highly recommend testing your email template. The best way to test an email template with product feed data is to send a test email. To learn more, check our dedicated article Preview and test your email campaign.
⏭️ What's next?
- Discover our eCommerce Dashboard
- eCommerce settings
- Analyze your revenue with our eCommerce dashboard
- Check your product performance with our eCommerce dashboard
- Use an external data feed to send up-to-date or personalized email campaigns
🤔 Have a question?
If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.
If you’re looking for help with a project using Brevo, we can match you with the right certified Brevo expert partner.