{"id":517,"date":"2020-10-22T15:23:13","date_gmt":"2020-10-22T15:23:13","guid":{"rendered":"https:\/\/vwo.com\/product-updates\/?p=517"},"modified":"2023-10-27T07:55:45","modified_gmt":"2023-10-27T07:55:45","slug":"tailor-make-experiences-for-your-visitors-with-dynamic-text","status":"publish","type":"post","link":"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/","title":{"rendered":"Tailor make Experiences for your Visitors with Dynamic Text"},"content":{"rendered":"\n<p>Dynamic text adds another avenue to your <a href=\"https:\/\/vwo.com\/testing\/\" target=\"_blank\" rel=\"noreferrer noopener\">Testing<\/a> and <a href=\"https:\/\/vwo.com\/deploy\">Rollouts<\/a> initiatives with VWO. It allows you to present content that is more engaging, concise and focused on improving conversions and enables visitors to get through your conversion funnel in a smooth and quick manner. All of this can be achieved with minimal to no dependency on your ability to write code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Dynamic Text?<\/h2>\n\n\n\n<p>Any text element on the page- be it headings, blocks of paragraphs, or the text present in CTA buttons, is usually static. Attempts to improve and test them generally remain confined to static content. The example that follows can show you how using Dynamic Text can help add another dimension to a test.<\/p>\n\n\n\n<p>Let us say you are trying to improve the messaging around your shipping policy to understand its effect on the checkout process. If you offer free shipping for orders above $200, an appropriate message can be shown to your customer based on the current value of their cart. If the cart value is, say, $180, the message can convey that adding items worth $20 would give them free shipping, effectively making it an up-sell opportunity. By experimenting with different types of such messages, which are based on the value of the cart, you can study the effect it has on the checkout process\u2019 conversion rate and zero in on what works the best.<\/p>\n\n\n\n<p>Just to demonstrate how easy it is to generate Dynamic text using variables in VWO, check out another simple example where the customer&#8217;s name is fetched from a variable and simply used to greet them if they are logged in.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-wistia-inc wp-block-embed-wistia-inc\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" title=\"Dynamic Text Video\" src=\"https:\/\/fast.wistia.net\/embed\/iframe\/8gmir8zk3t?dnt=1#?secret=mupBGp3hmu\" data-secret=\"mupBGp3hmu\" frameborder=\"0\" scrolling=\"no\" width=\"690\" height=\"388\"><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\">A simple demo of how variables can help generate Dynamic Text on the page<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Why is this needed?<\/h2>\n\n\n\n<p>Website experiences are built with a lot of information about the visitor. This is usually a combination of general demographic data such as source, location, time of visit, etc., and customer-specific information such as past purchases, past content engaged with, average order value, frequency of purchases, and many other things. All these factors add up to building a &#8216;profile&#8217; of a visitor whose probable expectations are delivered with matching experiences.<\/p>\n\n\n\n<p>These factors are used extensively to test and deliver great experiences for visitors in an overarching manner. The text copy on the page, on the other hand, is usually worked on from a very static point of view. If made dynamic, the functional aspect of it can be made more engaging and direct and help test and optimize the website in interesting ways. This is achieved with the help of &#8216;variables,&#8217; similar to how templates are created for mail merge. Text generated for the website using such variables is generally to<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>directly show the value of a variable, e.g., greeting the user with their name once they log in. Here, the variable is the user&#8217;s Name, which is directly shown in a headline element.<\/li>\n\n\n\n<li>use the value of the variable as an evaluation criterion and show corresponding content, similar to the free shipping example described above. Here, the \u2018cart value\u2019 is evaluated to display a corresponding message.<\/li>\n<\/ol>\n\n\n\n<p>You notice that using such &#8216;variables&#8217; in text elements forms the crux of generating Dynamic Text. To get a detailed understanding of what variables you can use with VWO to generate dynamic text, do check out <a href=\"https:\/\/help.vwo.com\/hc\/en-us\/articles\/900003213926\" target=\"_blank\" rel=\"noreferrer noopener\">this article<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How does this work?<\/strong><\/h2>\n\n\n\n<p>VWO uses <a href=\"https:\/\/ejs.co\/\" target=\"_blank\" rel=\"noreferrer noopener\">Embedded Javascript (EJS)<\/a> format to identify and perform Javascript operations that are &#8217;embedded&#8217; in HTML.<\/p>\n\n\n\n<p>The following shows the difference between using plain HTML and one with dynamic text (variable) to show how they differ in syntax and how they function.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;h1&gt; Hi firstName! &lt;\/h1&gt;<\/code><\/pre>\n\n\n\n<p>would render as plain static headline text: Hi firstName!<\/p>\n\n\n\n<p>But in case of<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;h1&gt; Hi &lt;%= firstName %&gt;! &lt;\/h1&gt;<\/code><\/pre>\n\n\n\n<p>when John visits your website, the headline reads: Hi John!<\/p>\n\n\n\n<p>As you notice, the magic lies in the <em>&lt;%=<\/em> <em>%&gt;<\/em>, which helps VWO identify that anything between them is to be evaluated dynamically.<\/p>\n\n\n\n<p>You can even use advanced conditional statements like &#8216;If Else&#8217; or loops like &#8216;Do while&#8217; to create dynamic variations leveraging the power of data available on the page or from external sources.&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dynamic text adds another avenue to your Testing and Rollouts initiatives with VWO. It allows you to present content that is more engaging, concise and focused on improving conversions and enables visitors to get through your conversion funnel in a smooth and quick manner. All of this can be achieved with minimal to no dependency&#8230;<\/p>\n","protected":false},"author":275,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,5],"tags":[12,13],"feature":[],"industry-type":[],"class_list":["post-517","post","type-post","status-publish","format-standard","hentry","category-testing","category-deploy","tag-client-side-testing","tag-visual-editor"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tailor make Experiences for your Visitors with Dynamic Text| VWO Product Updates<\/title>\n<meta name=\"description\" content=\"Dynamic text adds another avenue to your Testing and Deploy initiatives with VWO. It allows you to present content that is more engaging, concise, focused on improving conversions in a smooth and quick manner\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tailor make Experiences for your Visitors with Dynamic Text| VWO Product Updates\" \/>\n<meta property=\"og:description\" content=\"Dynamic text adds another avenue to your Testing and Deploy initiatives with VWO. It allows you to present content that is more engaging, concise, focused on improving conversions in a smooth and quick manner\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/\" \/>\n<meta property=\"og:site_name\" content=\"VWO Product Updates\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-22T15:23:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-27T07:55:45+00:00\" \/>\n<meta name=\"author\" content=\"Sathyajith Vijayakumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/\"},\"author\":{\"name\":\"Sathyajith Vijayakumar\",\"@id\":\"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/c7749fc56afdfa5dd54b5be40818cfa5\"},\"headline\":\"Tailor make Experiences for your Visitors with Dynamic Text\",\"datePublished\":\"2020-10-22T15:23:13+00:00\",\"dateModified\":\"2023-10-27T07:55:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/\"},\"wordCount\":696,\"commentCount\":0,\"keywords\":[\"Client Side Testing\",\"Visual Editor\"],\"articleSection\":[\"VWO Testing\",\"VWO Web Rollouts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/\",\"url\":\"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/\",\"name\":\"Tailor make Experiences for your Visitors with Dynamic Text| VWO Product Updates\",\"isPartOf\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/#website\"},\"datePublished\":\"2020-10-22T15:23:13+00:00\",\"dateModified\":\"2023-10-27T07:55:45+00:00\",\"author\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/c7749fc56afdfa5dd54b5be40818cfa5\"},\"description\":\"Dynamic text adds another avenue to your Testing and Deploy initiatives with VWO. It allows you to present content that is more engaging, concise, focused on improving conversions in a smooth and quick manner\",\"breadcrumb\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/vwo.com\/product-updates\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tailor make Experiences for your Visitors with Dynamic Text\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/vwo.com\/product-updates\/#website\",\"url\":\"https:\/\/vwo.com\/product-updates\/\",\"name\":\"VWO Product Updates\",\"description\":\"Just another VWO site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/vwo.com\/product-updates\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/c7749fc56afdfa5dd54b5be40818cfa5\",\"name\":\"Sathyajith Vijayakumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/067196409673f840322b0a84a2b9177566057677bff3e239367e400d8fabcdc8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/067196409673f840322b0a84a2b9177566057677bff3e239367e400d8fabcdc8?s=96&d=mm&r=g\",\"caption\":\"Sathyajith Vijayakumar\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tailor make Experiences for your Visitors with Dynamic Text| VWO Product Updates","description":"Dynamic text adds another avenue to your Testing and Deploy initiatives with VWO. It allows you to present content that is more engaging, concise, focused on improving conversions in a smooth and quick manner","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:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/","og_locale":"en_US","og_type":"article","og_title":"Tailor make Experiences for your Visitors with Dynamic Text| VWO Product Updates","og_description":"Dynamic text adds another avenue to your Testing and Deploy initiatives with VWO. It allows you to present content that is more engaging, concise, focused on improving conversions in a smooth and quick manner","og_url":"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/","og_site_name":"VWO Product Updates","article_published_time":"2020-10-22T15:23:13+00:00","article_modified_time":"2023-10-27T07:55:45+00:00","author":"Sathyajith Vijayakumar","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/#article","isPartOf":{"@id":"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/"},"author":{"name":"Sathyajith Vijayakumar","@id":"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/c7749fc56afdfa5dd54b5be40818cfa5"},"headline":"Tailor make Experiences for your Visitors with Dynamic Text","datePublished":"2020-10-22T15:23:13+00:00","dateModified":"2023-10-27T07:55:45+00:00","mainEntityOfPage":{"@id":"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/"},"wordCount":696,"commentCount":0,"keywords":["Client Side Testing","Visual Editor"],"articleSection":["VWO Testing","VWO Web Rollouts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/","url":"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/","name":"Tailor make Experiences for your Visitors with Dynamic Text| VWO Product Updates","isPartOf":{"@id":"https:\/\/vwo.com\/product-updates\/#website"},"datePublished":"2020-10-22T15:23:13+00:00","dateModified":"2023-10-27T07:55:45+00:00","author":{"@id":"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/c7749fc56afdfa5dd54b5be40818cfa5"},"description":"Dynamic text adds another avenue to your Testing and Deploy initiatives with VWO. It allows you to present content that is more engaging, concise, focused on improving conversions in a smooth and quick manner","breadcrumb":{"@id":"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vwo.com\/product-updates\/tailor-make-experiences-for-your-visitors-with-dynamic-text\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vwo.com\/product-updates\/"},{"@type":"ListItem","position":2,"name":"Tailor make Experiences for your Visitors with Dynamic Text"}]},{"@type":"WebSite","@id":"https:\/\/vwo.com\/product-updates\/#website","url":"https:\/\/vwo.com\/product-updates\/","name":"VWO Product Updates","description":"Just another VWO site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vwo.com\/product-updates\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/c7749fc56afdfa5dd54b5be40818cfa5","name":"Sathyajith Vijayakumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/067196409673f840322b0a84a2b9177566057677bff3e239367e400d8fabcdc8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/067196409673f840322b0a84a2b9177566057677bff3e239367e400d8fabcdc8?s=96&d=mm&r=g","caption":"Sathyajith Vijayakumar"}}]}},"_links":{"self":[{"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/posts\/517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/users\/275"}],"replies":[{"embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/comments?post=517"}],"version-history":[{"count":30,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/posts\/517\/revisions"}],"predecessor-version":[{"id":2401,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/posts\/517\/revisions\/2401"}],"wp:attachment":[{"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/media?parent=517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/categories?post=517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/tags?post=517"},{"taxonomy":"feature","embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/feature?post=517"},{"taxonomy":"industry-type","embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/industry-type?post=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}