{"id":38421,"date":"2024-02-14T18:20:00","date_gmt":"2024-02-14T12:50:00","guid":{"rendered":"https:\/\/email.uplers.com\/blog\/?p=38421"},"modified":"2024-04-18T15:51:06","modified_gmt":"2024-04-18T10:21:06","slug":"dynamic-emails-in-klaviyo","status":"publish","type":"post","link":"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/","title":{"rendered":"Expert Guide: Creating Dynamic Emails in Klaviyo"},"content":{"rendered":"\n<p>In email marketing, dynamic email is part of email personalization. A dynamic email allows marketers to display dynamically changing parts of an email to different segments of the audience. Only a specific segment will see the personalized message in an email. The rest will see the same email content, images, and CTAs but no personalized message.&nbsp;<\/p>\n\n\n\n<p>In this guide, we will show you how to create a Klaviyo dynamic email in the context of the following models:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#first\">How to add \u201cFirst-name\u201d personalization in Klaviyo<\/a><br \/><\/li><li><a href=\"#dynamic\">How to build dynamic blocks in a cart abandonment email<\/a><br \/><\/li><li><a href=\"#images\">How to add dynamic images to an email<\/a><br \/><\/li><li><a href=\"#hide\">How to dynamically show\/hide template blocks in Klaviyo<\/a><\/li><\/ul>\n\n\n\n<p>To begin with, let\u2019s explore how to implement \u201cfirst-name\u201d personalization in Klaviyo.&nbsp;&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"first\">Inserting First Name Property into Emails<\/h2>\n\n\n\n<p>Follow these steps to add a variable that will dynamically populate a recipient\u2019s first name. (Note that the process is the same for messages and push notifications.)<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Log in to your Klaviyo account. Open an email.<br \/><\/li><li>Click Add Personalization in the text block, as shown below.&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"642\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Add-Personalization.png\" alt=\"Klaviyo account dashboard\" class=\"wp-image-38422\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Add-Personalization.png 400w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Add-Personalization-187x300.png 187w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Add-Personalization-87x140.png 87w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Add-Personalization-374x600.png 374w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Select First Name from the list. Then, click Insert.&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"319\" height=\"458\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/inserting_first_name_tag.png\" alt=\"Inserting first name tag in klaviyo email\" class=\"wp-image-38425\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/inserting_first_name_tag.png 319w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/inserting_first_name_tag-209x300.png 209w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/inserting_first_name_tag-98x140.png 98w\" sizes=\"auto, (max-width: 319px) 100vw, 319px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"318\" height=\"537\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Insert_name_tag_in_Klaviyo.png\" alt=\"Inserting first name tag in klaviyo email\" class=\"wp-image-38426\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Insert_name_tag_in_Klaviyo.png 318w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Insert_name_tag_in_Klaviyo-178x300.png 178w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Insert_name_tag_in_Klaviyo-83x140.png 83w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/figure><\/div>\n\n\n\n<p>On clicking Insert, you should see this tag: <strong>{{ first_name|default:&#8217;there&#8217; }}. <\/strong><strong><br \/><\/strong>On sending the email, the tag will be replaced with the concerned recipient\u2019s first name.&nbsp;<\/p>\n\n\n\n<p>Note that Klaviyo also offers you the option to customize the first name variable. Next, we will see how to implement Klaviyo dynamic content.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"dynamic\">Building Dynamic Blocks in A Flow Email&nbsp;<\/h2>\n\n\n\n<p>In this section, we will learn how to create a dynamic block for a cart abandonment reminder email. First, create your flow by following these steps:<\/p>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1918\" height=\"359\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/klaviyo_dashboard.png\" alt=\"Klaviyo dashboard\n\" class=\"wp-image-38427\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/klaviyo_dashboard.png 1918w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/klaviyo_dashboard-300x56.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/klaviyo_dashboard-1024x192.png 1024w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/klaviyo_dashboard-768x144.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/klaviyo_dashboard-1536x287.png 1536w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/klaviyo_dashboard-624x117.png 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/klaviyo_dashboard-600x112.png 600w\" sizes=\"auto, (max-width: 1918px) 100vw, 1918px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>In the Klaviyo dashboard, go to the Flows tab on the left and click Create Flow.<br \/><\/li><li>Click Create from Scratch. Enter a name for your flow and click Create Flow.<br \/><\/li><li>Click Metric under Trigger setup. For a cart abandonment email, we will use the Checkout Started event, as shown in the following screenshot.&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"443\" height=\"749\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Selecting-trigger-Klaviyo.png\" alt=\"Selecting a trigger in Klaviyo\" class=\"wp-image-38428\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Selecting-trigger-Klaviyo.png 443w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Selecting-trigger-Klaviyo-177x300.png 177w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Selecting-trigger-Klaviyo-83x140.png 83w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Selecting-trigger-Klaviyo-355x600.png 355w\" sizes=\"auto, (max-width: 443px) 100vw, 443px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Click Done, and drag and drop an Email Action into the flow.&nbsp;<\/li><\/ul>\n\n\n\n<p>Having created a flow from scratch, in the following steps, we show how you add a dynamic table to the email block you added to your flow:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Click Configure Content, then click Drag and Drop, and choose a template.<br \/><\/li><li>Now, drag a table block to the <a href=\"https:\/\/email.uplers.com\/blog\/tips-to-create-klaviyo-email-templates\/\" target=\"_blank\" rel=\"noreferrer noopener\">email template<\/a>. Note that, at this point, the table is static.<br \/><\/li><li>Convert the table into a dynamic block by navigating to Table Settings.<br \/><\/li><li>Select Dynamic. Your table is now a dynamic block.&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1436\" height=\"661\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/adding-dynamic-table-to-the-email-block.gif\" alt=\"adding a dynamic table to the email block\" class=\"wp-image-38429\"\/><figcaption><a href=\"https:\/\/help.klaviyo.com\/hc\/en-us\/articles\/4408802597659\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Source<\/a><\/figcaption><\/figure><\/div>\n\n\n\n<p>Next, we will identify the row collection and select a row alias. First, you need to find the name of your array. (In Klaviyo, a list is a data type that contains an array of values):<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Click Preview and Test in the upper right corner of the Klaviyo dashboard.<br \/><\/li><li>Click Event. Select the Checkout Started event.<br \/><\/li><li>Now, go over the Preview data and find out the relevant array, as shown below.&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"575\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Klaviyo-dashboard.gif\" alt=\"Klaviyo dashboard\" class=\"wp-image-38430\"\/><figcaption><a href=\"https:\/\/help.klaviyo.com\/hc\/en-us\/articles\/4408802597659\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Source<\/a><\/figcaption><\/figure><\/div>\n\n\n<div class=\"banner_wrapper\" style=\"\"><div class=\"banner  banner-31244 bottom vert custom-banners-theme-default_style\" style=\"\"><a class=\"custom_banners_big_link\"  target=\"_blank\"  href=\"https:\/\/email.uplers.com\/klaviyo-email-templates\/\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"220\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2022\/04\/Klaviyo.jpg\" class=\"attachment-full size-full\" alt=\"Klaviyo expert\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2022\/04\/Klaviyo.jpg 800w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2022\/04\/Klaviyo-300x83.jpg 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2022\/04\/Klaviyo-768x211.jpg 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2022\/04\/Klaviyo-624x172.jpg 624w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/div><\/div>\n\n\n\n<p>For this example, the two arrays are Items and line_items, as shown below. The Items array lists the name of each item, whereas the line_items includes additional details about a particular item, such as name, image URL, price, vendor, stock-keeping unit, etc.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"804\" height=\"1282\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Items.png\" alt=\"items\" class=\"wp-image-38431\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Items.png 804w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Items-188x300.png 188w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Items-642x1024.png 642w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Items-768x1225.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Items-88x140.png 88w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Items-624x995.png 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Items-376x600.png 376w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><figcaption><a href=\"https:\/\/help.klaviyo.com\/hc\/en-us\/articles\/4408802597659\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Source<\/a><\/figcaption><\/figure><\/div>\n\n\n\n<p>Now, you choose a row alias. The point of using a row alias is to identify variables that need to be pulled from your arrays. In the present example, the dynamic table block lists the items in the customer\u2019s abandoned cart. Accordingly, you can use the \u201citem\u201d alias.&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"1020\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Table.png\" alt=\"Table\" class=\"wp-image-38432\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Table.png 792w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Table-233x300.png 233w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Table-768x989.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Table-109x140.png 109w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Table-624x804.png 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Table-466x600.png 466w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><figcaption><a href=\"https:\/\/help.klaviyo.com\/hc\/en-us\/articles\/4408802597659\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Source<\/a><\/figcaption><\/figure><\/div>\n\n\n\n<p>You want to choose an alias that is simple, descriptive, and easy to remember. That done, we will now add dynamic product details. Follow these steps to add the product title:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Go to one of the table\u2019s columns and paste this event variable: <strong>{{ event.extra.line_items.0.title }}<\/strong><br \/><\/li><li>Convert the above event variable to this: <strong>{{ item.title }}<\/strong>. So, you are basically replacing the text used for the Row Collection with the newly-created alias.<br \/><\/li><li>Preview the email to check if the title of the item displays correctly.&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1999\" height=\"917\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/email-preview.png\" alt=\"Preview email\" class=\"wp-image-38433\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/email-preview.png 1999w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/email-preview-300x138.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/email-preview-1024x470.png 1024w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/email-preview-768x352.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/email-preview-1536x705.png 1536w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/email-preview-624x286.png 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/email-preview-600x275.png 600w\" sizes=\"auto, (max-width: 1999px) 100vw, 1999px\" \/><figcaption><a href=\"https:\/\/help.klaviyo.com\/hc\/en-us\/articles\/4408802597659\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Source<\/a><\/figcaption><\/figure><\/div>\n\n\n\n<p>Similarly, you can add product URL variables, currency variables, and so on.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"images\">Adding A Dynamic Image in An Email<\/h2>\n\n\n\n<p>With the help of dynamic images, you can customize emails for each recipient on the basis of their profile data stored within Klaviyo or their event data. For leveraging <a href=\"https:\/\/email.uplers.com\/blog\/klaviyo-integrations\/\" target=\"_blank\" rel=\"noreferrer noopener\">Klaviyo integrations<\/a> First, you need to store dynamic image information in Klaviyo, after which you can add it through the following steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Open the email template where you want to add the dynamic image.<br \/><\/li><li>Now click Preview and Test. You should see something like the following. Click Search for a Profile if you have stored the image as a custom property, or Click Event if the image variable is stored within an event\u2019s data.&nbsp;&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1916\" height=\"822\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/dynamic-image-in-email.png\" alt=\" Dynamic Image in An Email\" class=\"wp-image-38434\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/dynamic-image-in-email.png 1916w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/dynamic-image-in-email-300x129.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/dynamic-image-in-email-1024x439.png 1024w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/dynamic-image-in-email-768x329.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/dynamic-image-in-email-1536x659.png 1536w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/dynamic-image-in-email-624x268.png 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/dynamic-image-in-email-600x257.png 600w\" sizes=\"auto, (max-width: 1916px) 100vw, 1916px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Copy your tag, and drag an image block to the email template.<br \/><\/li><li>Click Browse, and select Dynamic Image. Now paste the tag you copied in the last step into the Dynamic variable or Dynamic URL field, as shown below.&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1029\" height=\"731\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/browse_image.png\" alt=\"Browse image\" class=\"wp-image-38435\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/browse_image.png 1029w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/browse_image-300x213.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/browse_image-1024x727.png 1024w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/browse_image-768x546.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/browse_image-197x140.png 197w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/browse_image-624x443.png 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/browse_image-600x426.png 600w\" sizes=\"auto, (max-width: 1029px) 100vw, 1029px\" \/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Click Save. As always, preview your email to see if the tag is working fine.&nbsp;<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"hide\">Displaying or Hiding Template Blocks<\/h2>\n\n\n\n<p>In this section, we will learn how to show template blocks only to a certain number of email recipients. There are two ways of implementing this: through profile data and through event data. First, let\u2019s see how to implement it with the help of a recipient\u2019s profile data.&nbsp;<\/p>\n\n\n\n<p>We will apply conditional logic to show or hide template blocks:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Select the Add Personalization option.<br \/><\/li><li>Choose an option from the dropdown to add it to the text block in the template.<br \/><\/li><li>Now, choose the variable name from within the tag. In the following example, the complete tag is <strong>{{ person|lookup:&#8221;Likes Promotion&#8221;|default:&#8221;&#8221; }<\/strong><strong>. <\/strong>But the variable name is <strong>person|lookup:&#8221;Likes Promotion.&#8221;<\/strong><strong> <\/strong>You must choose the variable name, not the full tag, to use in your condition.&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"228\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/display-hiding-template-blocks.png\" alt=\"Displaying or Hiding Template Blocks\" class=\"wp-image-38436\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/display-hiding-template-blocks.png 400w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/display-hiding-template-blocks-300x171.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/display-hiding-template-blocks-246x140.png 246w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure><\/div>\n\n\n\n<p>Now, we will implement the same conditional logic with the help of event data. Follow these steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Go to the template editor. Click Preview and Test.<br \/><\/li><li>Click Event under Preview Data Source. Select the event from the dropdown menu that will trigger the email.<br \/><\/li><li>In the Event Properties dropdown, find the data you\u2019d like to include.<br \/><\/li><li>Click the Property name, copy the tag, and paste it into the text block of the template.<br \/><\/li><li>Extract the variable from the tag to use it for your condition, as shown in the following <a href=\"https:\/\/email.uplers.com\/klaviyo-email-templates\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Klaviyo email<\/strong><\/a><strong> example<\/strong>.&nbsp;<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image border1-black\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1999\" height=\"1006\" src=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Klaviyo_email.png\" alt=\"Klaviyo email sample\" class=\"wp-image-38437\" srcset=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Klaviyo_email.png 1999w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Klaviyo_email-300x151.png 300w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Klaviyo_email-1024x515.png 1024w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Klaviyo_email-768x386.png 768w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Klaviyo_email-1536x773.png 1536w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Klaviyo_email-278x140.png 278w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Klaviyo_email-624x314.png 624w, https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/Klaviyo_email-600x302.png 600w\" sizes=\"auto, (max-width: 1999px) 100vw, 1999px\" \/><figcaption><a href=\"https:\/\/help.klaviyo.com\/hc\/en-us\/articles\/7655965301531#h_01G90KN66FVPBY18R2FHHJ20M0\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Source<\/a><\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up!<\/h2>\n\n\n\n<p>Personalization is one of the defining aspects of email marketing. Klaviyo\u2019s dynamic email features help you send the right message to the right people at scale.&nbsp;<\/p>\n\n\n\n<p>Navigating Klaviyo is not particularly difficult. The platform is easy to use and intuitive. Designed exclusively for e-commerce retailers, Klaviyo is ideal for building personalized email campaigns for your audience base.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Klaviyo\u2019s intuitive, user-friendly platform enables you to create and implement dynamic emails with ease. Follow our expert guide to learn how<\/p>\n","protected":false},"author":78,"featured_media":38438,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1250,1266],"tags":[],"class_list":["post-38421","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-klaviyo","category-technical"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Expert Guide to Dynamic Emails in Klaviyo<\/title>\n<meta name=\"description\" content=\"Achieve excellence in email marketing with our expert guide for crafting dynamic emails in Klaviyo.Elevate your campaigns and connect with your audience.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Expert Guide to Dynamic Emails in Klaviyo\" \/>\n<meta property=\"og:description\" content=\"Achieve excellence in email marketing with our expert guide for crafting dynamic emails in Klaviyo.Elevate your campaigns and connect with your audience.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/\" \/>\n<meta property=\"og:site_name\" content=\"Email Uplers\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/email.uplers\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-14T12:50:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-18T10:21:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/How-To-Create-Dynamic-Emails-in-Klavyio-540x282.png\" \/>\n\t<meta property=\"og:image:width\" content=\"540\" \/>\n\t<meta property=\"og:image:height\" content=\"282\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Susmit Panda\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@email_uplers\" \/>\n<meta name=\"twitter:site\" content=\"@email_uplers\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Susmit Panda\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/\",\"url\":\"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/\",\"name\":\"Expert Guide to Dynamic Emails in Klaviyo\",\"isPartOf\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/How-To-Create-Dynamic-Emails-in-Klavyio.png\",\"author\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/24f62735fffd154f82f33d19d2eaacb3\"},\"description\":\"Achieve excellence in email marketing with our expert guide for crafting dynamic emails in Klaviyo.Elevate your campaigns and connect with your audience.\",\"breadcrumb\":{\"@id\":\"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/#primaryimage\",\"url\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/How-To-Create-Dynamic-Emails-in-Klavyio.png\",\"contentUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/How-To-Create-Dynamic-Emails-in-Klavyio.png\",\"width\":1170,\"height\":470,\"caption\":\"Dynamic Emails in Klaviyo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/email.uplers.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Expert Guide: Creating Dynamic Emails in Klaviyo\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#website\",\"url\":\"https:\/\/email.uplers.com\/blog\/\",\"name\":\"Email Uplers\",\"description\":\"Email Marketing Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/email.uplers.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/24f62735fffd154f82f33d19d2eaacb3\",\"name\":\"Susmit Panda\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/07\/Susmit-96x96.png\",\"contentUrl\":\"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/07\/Susmit-96x96.png\",\"caption\":\"Susmit Panda\"},\"description\":\"A realist at heart and an idealist at head, Susmit is a content writer at Email Uplers. He has been in the digital marketing industry for half a decade. When not writing, he can be seen squinting at his Kindle, awestruck.\",\"sameAs\":[\"https:\/\/email.uplers.com\/\",\"https:\/\/www.linkedin.com\/in\/susmit-panda-965a1214a\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Expert Guide to Dynamic Emails in Klaviyo","description":"Achieve excellence in email marketing with our expert guide for crafting dynamic emails in Klaviyo.Elevate your campaigns and connect with your audience.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/","og_locale":"en_US","og_type":"article","og_title":"Expert Guide to Dynamic Emails in Klaviyo","og_description":"Achieve excellence in email marketing with our expert guide for crafting dynamic emails in Klaviyo.Elevate your campaigns and connect with your audience.","og_url":"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/","og_site_name":"Email Uplers","article_publisher":"https:\/\/www.facebook.com\/email.uplers\/","article_published_time":"2024-02-14T12:50:00+00:00","article_modified_time":"2024-04-18T10:21:06+00:00","og_image":[{"width":540,"height":282,"url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/How-To-Create-Dynamic-Emails-in-Klavyio-540x282.png","type":"image\/png"}],"author":"Susmit Panda","twitter_card":"summary_large_image","twitter_creator":"@email_uplers","twitter_site":"@email_uplers","twitter_misc":{"Written by":"Susmit Panda","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/","url":"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/","name":"Expert Guide to Dynamic Emails in Klaviyo","isPartOf":{"@id":"https:\/\/email.uplers.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/#primaryimage"},"image":{"@id":"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/#primaryimage"},"thumbnailUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/How-To-Create-Dynamic-Emails-in-Klavyio.png","author":{"@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/24f62735fffd154f82f33d19d2eaacb3"},"description":"Achieve excellence in email marketing with our expert guide for crafting dynamic emails in Klaviyo.Elevate your campaigns and connect with your audience.","breadcrumb":{"@id":"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/#primaryimage","url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/How-To-Create-Dynamic-Emails-in-Klavyio.png","contentUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2024\/02\/How-To-Create-Dynamic-Emails-in-Klavyio.png","width":1170,"height":470,"caption":"Dynamic Emails in Klaviyo"},{"@type":"BreadcrumbList","@id":"https:\/\/email.uplers.com\/blog\/dynamic-emails-in-klaviyo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/email.uplers.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Expert Guide: Creating Dynamic Emails in Klaviyo"}]},{"@type":"WebSite","@id":"https:\/\/email.uplers.com\/blog\/#website","url":"https:\/\/email.uplers.com\/blog\/","name":"Email Uplers","description":"Email Marketing Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/email.uplers.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/24f62735fffd154f82f33d19d2eaacb3","name":"Susmit Panda","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/email.uplers.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/07\/Susmit-96x96.png","contentUrl":"https:\/\/email.uplers.com\/blog\/wp-content\/uploads\/2023\/07\/Susmit-96x96.png","caption":"Susmit Panda"},"description":"A realist at heart and an idealist at head, Susmit is a content writer at Email Uplers. He has been in the digital marketing industry for half a decade. When not writing, he can be seen squinting at his Kindle, awestruck.","sameAs":["https:\/\/email.uplers.com\/","https:\/\/www.linkedin.com\/in\/susmit-panda-965a1214a\/"]}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/38421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/users\/78"}],"replies":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/comments?post=38421"}],"version-history":[{"count":7,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/38421\/revisions"}],"predecessor-version":[{"id":39212,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/posts\/38421\/revisions\/39212"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/media\/38438"}],"wp:attachment":[{"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/media?parent=38421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/categories?post=38421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/email.uplers.com\/blog\/wp-json\/wp\/v2\/tags?post=38421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}