Skip to main content
Solved

Dynamic Content in campaign emails other than shopify information?


Forum|alt.badge.img+1

I am looking to figure out if a campaign email can use dynamic content based on what segment a person is in. For example, I send a newsletter that has sections with generic information for everyone, but some sections are tailored to certain segments. That dynamic content could be an image or text, or whatever. Just curious. 

Best answer by annasophiefc

Hi ​@DaveinLA 

 

Thank you for posting in the Community!

 

You can use show hide logics based on custom properties added to profiles in a certain segment - Klaviyo recently updated the setup and made it much easier to work with, so I would highly recommend it!

 

You can read more here: https://help.klaviyo.com/hc/en-us/articles/7655965301531

I hope this helps!

View original
Did this topic or the replies in the thread help you find an answer to your question?

5 replies

annasophiefc
Partner - Platinum
Forum|alt.badge.img+22
  • 2025 Champion
  • 99 replies
  • Answer
  • February 3, 2025

Hi ​@DaveinLA 

 

Thank you for posting in the Community!

 

You can use show hide logics based on custom properties added to profiles in a certain segment - Klaviyo recently updated the setup and made it much easier to work with, so I would highly recommend it!

 

You can read more here: https://help.klaviyo.com/hc/en-us/articles/7655965301531

I hope this helps!


Forum|alt.badge.img+1
  • Author
  • Contributor III
  • 6 replies
  • February 3, 2025

@annasophiefc thanks so much for your help on this!


Forum|alt.badge.img+1
  • Author
  • Contributor III
  • 6 replies
  • February 4, 2025

@annasophiefc Hi there! So I thought I’d ask another question🙂. I was digging deeper into this. Before I explain some of the information I found, I’ll explain what I am trying to do in a little more detail.

As I mentioned, I have a newsletter. In this newsletter I have a certain block that I only want to appear if they still have something sitting in their cart (i.e. “By the way…are you still interested in these items?”). When I tried digging this up, the ‘AI Overview’ (which I rarely trust) said the below.

I guess I’m asking for your opinion on the instructions below. They seem pretty simple, except that I don’t see the property it is referencing (person|lookup:cart_items_count), which means maybe I need to custom create it myself. Or possibly do this in code block. Like maybe?

person|lookup:'cart_items_count' == >0

Many thanks to any help you may be able to offer.

_________________________________________________________

In Klaviyo, to achieve this "show a block if a recipient has something in their cart" functionality, you would use "Show/Hide Logic" within a block's settings, and set the condition to check if the "cart_items_count" property is greater than 0, effectively displaying the block only if the recipient has at least one item in their cart.
 
How to set it up:

Access the block settings:

  1. Open the email template in Klaviyo, select the block you want to conditionally display, and go to the "Display Options" tab.
  2. Use Show/Hide Logic:
  3. Within the "Display Options" section, choose "Show/Hide Logic" and click "Create Logic".
  4. Set the condition:

    Property: Select "person|lookup:'cart_items_count'" (which refers to the cart item count stored in the recipient's profile).

    Operator: Choose ">" (greater than). 

    Value: Enter "0". 

annasophiefc
Partner - Platinum
Forum|alt.badge.img+22
  • 2025 Champion
  • 99 replies
  • February 5, 2025

Hi again ​@DaveinLA 

 

Just to understand, you would like to feature the cart items in a campaign and not within the checkout flow right?

If this is the case, it cab be setup through a webhook!

This feature from my fellow Champion explains how you can set it up; 

 

I hope this helps!


Forum|alt.badge.img+1
  • Author
  • Contributor III
  • 6 replies
  • February 5, 2025

@annasophiefc Thanks so much. I’ll check it out. And yes, in the ‘newsletter’ that I am sending to recipients, I am wanting to feature a cart in a section of the newsletter if the person actually still has stuff in their cart (but turn off the section if they have nothing).