Skip to main content

Show or hide blocks based on contact attributes

Brevo allows you to design email templates and campaigns that display unique content elements to different recipient depending on the conditions you set.

We have divided this topic in 3 articles. In this first article, we will explain how to show or hide blocks of content based on contact attributes:

Good to know

Display specific content to different recipients based on contact attributes

Contact attributes allow you to display a specific block (image, title, text, etc.) based on what you know about your recipient and have saved in your Brevo contact attributes. 

For example, let's say we have an online t-shirt store and want to send a personalized email campaign based on some of our contacts attributes:

  • Whether they are an existing customer or not (Boolean attribute)
  • Their favorite color (text attribute)
  • Their gender (category attribute)

Let's imagine that we know our customer's favorite color and their gender, but we don't know any details about our contacts who have not purchased yet. Our email will promote a t-shirt sale, and we will personalize the content using the data available for each contact.

Personalize your emails based on contact attributes

Display specific content to different recipients based on contact attributes:

By default, each layout or content block is visible to all recipients. If you want to add conditions to only display a layout or content block to specific recipients based on contact attributes:

  1. Select the desired block.
  2. Click the eye icon to open the Block visibility popup.
    mceclip4.png
  3. Choose whether the block should be visible when one or all conditions are true.
  4. In the drop-down menu, select contact attributes.
  5. Select a contact attribute.
  6. Select an operator. The operators available depend on the format of the contact attribute (text, date, boolean, etc.).
  7. Enter or select the value of the condition.
  8. If necessary, add one or more conditions by clicking + Add more conditions.
  9. Click Insert conditions when you are done adding all conditions.
    mceclip0.png

In our above example, the headline will be shown if the contact is an existing customer.

To go further, we could even include a second block with a different headline and configure it to appear when the contact is not an existing customer:

mceclip0.png
  1. Shown only to recipients who are existing customers
  2. Shown only to recipients who are not existing customers
💡 Good to know
When conditions are inserted, the eye icon turns green.

⏩ What's next?

🤔 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.

💬 Was this article helpful?

3 out of 7 found this helpful