Design

Klaviyo dynamic content: one email that changes for every reader.

Instead of building five versions of an email, you build one and let each block decide who sees it. Here is how show/hide logic, profile data and product feeds work in Klaviyo, and where we use them.

Say a supplement brand wants to email people who already bought the capsules and people who haven't bought anything yet. The old way is two campaigns, two segments and a real chance of sending the wrong one to the wrong group. With dynamic content it's one email, where the product section changes depending on who opens it. Klaviyo handles this better than most people use it.

What counts as dynamic content in Klaviyo?

Anything in an email that changes from one recipient to the next. In practice there are three kinds, and most good emails use more than one.

TypeWhat it doesTypical use
Personalization tagsInsert profile or event data into textFirst name, city, last product bought
Show/hide logicShow a block or section only to some profilesDifferent offer for buyers and non buyers, language blocks
Product feeds and blocksFill product sections automaticallyBestsellers, new arrivals, personal recommendations

How does show/hide logic work?

Show/hide logic decides per block or section whether a recipient sees it. It needs a drag and drop template. If you work with an HTML template, Klaviyo asks you to clone it into a drag and drop version first.

The steps in the editor:

  1. Select the block or section and open the Display tab.
  2. Under Show/hide logic, choose to show it only to a specific audience.
  3. Pick the condition type: properties about someone (profile data), or properties of the trigger event in a flow email.
  4. Choose the property, the comparison and a value, add more conditions if needed, and save.

If the builder can't express what you need, select "Use code" next to Logic and write the condition yourself. Klaviyo's examples look like this:

  • person|lookup:'Bag Preference' == 'Work' shows a block to profiles whose Bag Preference property is Work.
  • 'ITEM_NAME' in event.Items shows a block when the trigger event contains a certain product.

Limits worth knowing

Klaviyo documents a few that trip people up:

  • The logic builder handles profile data stored as text, numbers and lists. Dates and true/false values need a custom code condition.
  • Event conditions only see the trigger event. They don't look at past events and don't work in campaigns, list triggered flows or date triggered flows.
  • If a block and its parent section both have conditions, the block only shows when both are true. A block meant for Massachusetts inside a section meant for Canada shows to nobody.
  • Converting builder logic to code can't be undone, and Klaviyo support doesn't troubleshoot custom code.

Several versions of one block

The Display tab also has an option to personalize a block for multiple audiences. Each audience sees its own variant. Klaviyo allows up to 10 variants plus 1 fallback. Analytics are not split by variant, so if you need to know which version sold more, run an A/B test with separate emails instead.

Which profile properties are worth using?

Dynamic content is only as good as the data behind it. A show/hide block on "favorite category" does nothing if most profiles never got that property. So start with what you reliably have.

  • Purchase data from Shopify. Whether someone bought, how often, which product. Segments built from this are the most reliable base.
  • Answers from sign up forms and quizzes. Skin type, dog size, coffee brewing method. One extra question on the form pays off in every email afterwards.
  • Language and country. Essential if you sell in several markets. Our guide to Klaviyo for several countries covers how to capture them.
  • Subscription status from your subscription app, so active subscribers don't see the "subscribe and save" pitch.

Also write fallbacks for personalization tags. A greeting that pulls the first name needs a default, otherwise profiles without a name get "Hi ," at the top. In Klaviyo that's the default filter, for example {{ first_name|default:'there' }}.

How do product feeds and recommendations work?

Product blocks fill a section with products from your synced catalog. A block can pull from a product feed, from products you pick by hand, or from personalized recommendations. Product blocks work in the drag and drop and hybrid editors.

A product feed is a set of products chosen by rules you define, for example everything in one collection, or the newest items. Personalized recommendations combine catalog data with each subscriber's behavior. Two practical points from Klaviyo's documentation:

  • Recommendations based on viewed products need Viewed Product tracking on your store. Check that first.
  • When a recipient has too little data, or a new feed hasn't finished training, Klaviyo falls back to a secondary recommender such as best sellers. So a brand new account will show many people the same products for a while.

Out of stock products are another trap. If a product in a flow email goes out of stock, Klaviyo can skip the send with the reason Catalog Item Unavailable. Feeds that only include available products avoid that.

What does dynamic content look like in practice?

Abandoned checkout with the right reassurance

In an abandoned cart flow, the trigger event knows what was in the cart. Use an event condition to show a sizing block if the cart contains clothing, and a "how to use it" block if it contains a product that needs explaining. One email, and every reader sees the answer to their likely question.

Buyers and non buyers in one campaign

A launch campaign goes to the whole engaged list. Non buyers see a block with your welcome offer and reviews. Existing customers see a block about how the new product fits with what they already own. The rest of the email is the same. Build the condition on a profile property or segment based data you trust, such as order count.

Language blocks in flows

For a store selling in two languages, one welcome flow with German and English blocks can be easier to maintain than two flows. It gets messy past two languages, though. At three or more we split the flow instead.

Replenishment reminders

Show the exact product the customer bought last, pulled from their order data, with a block for the matching bundle if they bought a single unit. Klaviyo's catalog lookups and event data make this possible without a separate email for each product.

How do you test it?

Testing dynamic content takes longer than testing a normal email, and it's the step people skip. Klaviyo doesn't show logic variants on the editing canvas, so what you see while building is not what each person gets.

  • Use Preview and pick a profile that meets each condition and one that meets none.
  • For event conditions, preview different trigger events, for example a cart with clothing and a cart without.
  • Check that every block has a sensible fallback. An empty space where a block disappeared looks broken.
  • Send tests to yourself as real profiles with the right properties, and look at them on a phone.
Keep it readable for the next personName blocks clearly and keep a short note in the template or your docs about which block shows to whom. Six months later, nobody remembers why a block only appears for profiles with a certain property. Our email design guide has more on building templates that others can maintain.

Most accounts we audit use dynamic content for a first name and nothing else. Your segments already hold the data for much more. If you want to see what that could look like in your flows, book a free Klaviyo audit.

Questions we get a lot

What is dynamic content in Klaviyo?

Content in an email that changes depending on who receives it. In Klaviyo that means personalization tags like a first name, blocks or sections shown only to certain profiles with show/hide logic, and product blocks that pull from a product feed or recommendations.

How do I show or hide a block in a Klaviyo email?

In a drag and drop template, select the block or section, open the Display tab and under Show/hide logic choose to show it only to a specific audience. Then pick a condition, for example a profile property, and save. You can also write the condition as code.

Can show/hide logic use event data?

In flows triggered by an event, yes. You can build conditions on properties of the trigger event, such as the items in an abandoned checkout. Klaviyo notes that event conditions only look at the trigger event, so they don't work in campaigns, list triggered flows or date triggered flows.

What are product feeds in Klaviyo?

Sets of products chosen by rules you define, used in product blocks. A block can show a feed, products you pick by hand, or personalized recommendations based on catalog data and behavior. Recommendations based on viewed products need Viewed Product tracking.

How do I test dynamic content before sending?

Use Preview and pick profiles that meet the condition and profiles that don't. For event based conditions, preview different events. Klaviyo doesn't show logic variants on the editing canvas, so preview with real profiles is the only reliable check.

Want to see where your extra revenue is?

Book a free 30 minute audit. We go through your Klaviyo together and show you what we would change first.

Get a free audit