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.
Hi
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!
. 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:
- Open the email template in Klaviyo, select the block you want to conditionally display, and go to the "Display Options" tab.
- Use Show/Hide Logic:
- Within the "Display Options" section, choose "Show/Hide Logic" and click "Create Logic".
- 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".
Hi again
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!
Reply
Log in to the Community
Use your Klaviyo credentials
Log in with Klaviyo
Use your Klaviyo credentials
Log in with KlaviyoEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.