{"id":2833,"date":"2024-07-23T06:49:21","date_gmt":"2024-07-23T06:49:21","guid":{"rendered":"https:\/\/vwo.com\/product-updates\/?p=2833"},"modified":"2025-03-12T10:57:59","modified_gmt":"2025-03-12T10:57:59","slug":"custom-code-blocks-with-trigger-conditions","status":"publish","type":"post","link":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/","title":{"rendered":"Introducing code blocks: Take complete control of custom code execution in variations"},"content":{"rendered":"\n<p>We\u2019re excited to introduce custom code blocks in our visual editor for web optimization campaigns. Within these blocks, you can incorporate your modifications and use the trigger configurations to control the precise execution timing of these changes. Let&#8217;s explore the feature in more detail to discover how it enhances your workflow.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What are code blocks?<\/strong><\/h2>\n\n\n\n<p>Code blocks are discrete sections designed to organize and manage your code changes in web testing, personalization, and rollout campaigns. In VWO, custom code blocks let you write JavaScript, CSS, and HTML to create and manage variations in your experiments. The trigger configurations in code blocks allow you to dictate exactly when the code changes must be executed. For example, to test different discount banners based on the day of the week <em>(higher discount percentage on weekdays and lower discount percentage on weekends)<\/em>, you could write a custom JavaScript code block that changes the banner text dynamically, a task not easily done with a visual editor alone.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Advantages of using code blocks<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Get complete control over changes created in a variation&nbsp;<\/h3>\n\n\n\n<p>Custom code blocks let you control the timing and order of changes. Each block has a trigger dropdown to specify when to execute code as the variation loads for visitors. These controls enable precise and advanced campaign management.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Better support for modern single-page applications<\/h3>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<p>While working with single-page applications (SPAs), timing when variations changes are applied is critical to delivering a good user experience. Custom code blocks and trigger configurations help you ensure that changes within the code blocks are triggered at the right time without affecting visitors\u2019 experience.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-eu.googleusercontent.com\/docsz\/AD_4nXdT-6TiwOM9NteInRkj7-JVuGaCFElLaOlzrFQCG_vP_ABo9np0Jd_N65gIRel40x5eGXEzvs_3oOzDu64ouwBqU1rrt6KK-OoT3tafwbgRer3qla8hIwq6W19IH7aLqfiqaIVrnfZRGTRTPCungL3qrz4?key=CLhAzYYDU1qWWiFjpyUd0A\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Code Blocks in VWO<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How you can control when code changes are triggered<\/strong> ?<\/h2>\n\n\n\n<p>You can create multiple code blocks within a campaign, each with its own triggers and configurations, to control when the code executes after the campaign goes live. Similar to variations, code blocks can be renamed, cloned, or deleted, providing flexibility and precision in managing your code modifications. Let\u2019s discuss various scenarios and use cases under which you can benefit from this new feature:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Trigger on campaign execution<\/h3>\n\n\n\n<p>This configuration executes your code changes when the campaign loads on the visitor\u2019s browser. It&#8217;s perfect for immediate modifications that must be visible once the page loads, like time-sensitive offers or announcements.&nbsp;<\/p>\n\n\n\n<p>Example: Display a premium experience pop-up notifying customers of an experience redesign on your webpage.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" controls muted src=\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/07\/Campaign-Executes.mp4\" playsinline><\/video><figcaption class=\"wp-element-caption\">Code runs on campaign execution<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. Trigger changes on element loaded<\/h3>\n\n\n\n<p>Execute changes when a specific element on the page, identified by its CSS selector <sup><a href=\"#CSS-selector\">[1]<\/a><\/sup> loads. This method allows you to target and apply changes to specific elements based on their attributes, classes, or IDs. Targeted changes ensure that modifications apply only when the element is present.<\/p>\n\n\n\n<p>Let\u2019s say you want to add a shine or a glowing effect across your \u2018Add to Cart\u2019 button to attract attention and increase click-through rates. You can select this configuration to execute on the button\u2019s load instead of the page load.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" autoplay controls loop muted src=\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/07\/Element-loaded-1.mp4\" playsinline><\/video><figcaption class=\"wp-element-caption\">Shine on button code executes when &#8216;Add to Cart&#8217; button loads<\/figcaption><\/figure>\n\n\n\n<p>Sometimes, web pages revert to their original state and do not display the changes made through experimentation or personalization software editors. This is especially common with single-page applications. You can now turn on the &#8216;Keep applying changes&#8217; toggle to fix it. When enabled, VWO will reapply your changes every time the element is reloaded on the page, ensuring visitors always see your campaign modifications.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-eu.googleusercontent.com\/docsz\/AD_4nXcCxY3a2Tdjmt_WLrZcEd-M8sLbyUJyAEp2TLQo7XAamkHC6BABSquStCEEoaxhjGeqr3_IhylsMOsjZ_Zt3lacom-NQdHsIoJmfQzRSWBKuwivzJ3HQic932htg_tGP4EOjyq71eWAjUkgV08rjVvjInTw?key=CLhAzYYDU1qWWiFjpyUd0A\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Keep applying changes enabled on VWO<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. Trigger changes on DOM ready<\/h3>\n\n\n\n<p>Apply changes once the page\u2019s structure (DOM) is ready <sup><a href=\"#Dom-is-ready\">[2]<\/a><\/sup>. The configuration ensures all elements are ready, making it perfect for complex changes that depend on the complete page structure. This is great for modifications that require the entire page to be fully loaded.<\/p>\n\n\n\n<p>For example, if you want to change an &#8216;Add to cart&#8217; button and show a bundle pop-up when clicked, you can set it up so your changes happen on DOM ready. Then, when a visitor clicks the button, the pop-up will appear as expected.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" autoplay controls loop muted src=\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/07\/DOM-1.mp4\" playsinline><\/video><figcaption class=\"wp-element-caption\">Changes execute on DOM ready and changes shown on &#8216;Add to Cart&#8217; button click<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">4. Execute code blocks in a sequential order<\/h3>\n\n\n\n<p>Order the execution sequence of multiple code blocks to control the flow of changes. The configuration enables structured and sequential modifications and allows for complex interactions and dependencies between changes. This is ideal for dependent changes that need to occur one after another.<\/p>\n\n\n\n<p>For example, you want to display a tooltip message on hover for a new product only after loading a blinking hotspot indicator. Sequential execution enables this.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" controls src=\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/07\/run-after-other-code.mp4\"><\/video><figcaption class=\"wp-element-caption\">Information code block executes only after hotspot code executes<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">5. Trigger changes on navigating away from a campaign page<\/h3>\n\n\n\n<p>Use this trigger configuration to revert changes when a visitor moves from a campaign page to a non-campaign page. For example, show a promo code on the campaign page, like the home page, and remove it when the visitor navigates to a different page. This is especially useful for single-page applications, ensuring changes on the campaign page are undone when the visitor leaves. Without this, visitors might see altered elements on other pages, creating a poor and disjointed experience.<\/p>\n\n\n\n<p>Example: Let&#8217;s say you want to show a promo code section only on your app&#8217;s home page. When users go to other non-campaign pages, you want this section to disappear. Use the campaign exit trigger to add code that reverses changes and hides the promo code section when visitors leave the campaign page.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" autoplay controls loop muted src=\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/07\/Campaign-exit-trigger-1.mp4\" playsinline><\/video><figcaption class=\"wp-element-caption\">Promo code runs on home page and reverts when visitor moves away from campaign page<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">6. Ensure particular elements show only after the page load&nbsp;<\/h3>\n\n\n\n<p>To provide a seamless experience for your visitors, VWO offers the &#8216;Hide element(s) until code runs&#8217; feature. This ensures that specific elements are only displayed once all changes are fully loaded, preventing any brief display of original content before your campaign changes take effect.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-eu.googleusercontent.com\/docsz\/AD_4nXeEtei_HCDwVkFIClJ3v4l5uYUSU0K5Yvw74IdojM_vYoHD1YxzO77mtPlHArdnT4wqff_nBTL1-GuVrdIpMsPlxQQ5t9kDXvsnJ54N0XJ35-joDSXl98Laxk52MIZIzwz2xP1NjOp7XQ1GzoeaBAHfi1aA?key=CLhAzYYDU1qWWiFjpyUd0A\" alt=\"\"\/><figcaption class=\"wp-element-caption\">Hiding elements till code runs on VWO<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Ready to dive in?<\/h2>\n\n\n\n<p>Custom code blocks and their trigger configurations are available across all plans of VWO Testing, VWO Personalize, and VWO Rollouts for Data360-enabled accounts. Using custom code blocks, you can immediately start making even more sophisticated campaign changes and triggering them just as per your business need and custom use case. Refer to our <a href=\"https:\/\/help.vwo.com\/hc\/en-us\/articles\/32240535491225-Using-Code-Blocks-to-Create-Variations-in-VWO\">knowledge base article<\/a> for more about using custom code blocks.<\/p>\n\n\n\n<p>If you have any questions, drop a line to <a href=\"mailto:support@vwo.com\">support@vwo.com<\/a>. We are happy to help.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"CSS-selector\"><em>[1] A CSS selector is a pattern used to select and style specific elements on a webpage. It tells the browser which HTML elements to apply CSS properties.<\/em><\/h6>\n\n\n\n<h6 class=\"wp-block-heading\" id=\"Dom-is-ready\"><em>[2] The DOM is ready when the HTML is fully loaded, so you can start changing elements on the page. This happens before all images and other resources are completely loaded.<\/em><\/h6>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re excited to introduce custom code blocks in our visual editor for web optimization campaigns. Within these blocks, you can incorporate your modifications and use the trigger configurations to control the precise execution timing of these changes. Let&#8217;s explore the feature in more detail to discover how it enhances your workflow. What are code blocks?&#8230;<\/p>\n","protected":false},"author":819,"featured_media":2765,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[38,3,5],"tags":[12,39,13],"feature":[],"industry-type":[],"class_list":["post-2833","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-personalize","category-testing","category-deploy","tag-client-side-testing","tag-personalization","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>Introducing Custom Code Blocks With Triggers On VWO<\/title>\n<meta name=\"description\" content=\"Introducing code blocks: Take complete control of custom code execution in variations. Read this post to know more details about this update.\" \/>\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\/custom-code-blocks-with-trigger-conditions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Introducing Custom Code Blocks With Triggers On VWO\" \/>\n<meta property=\"og:description\" content=\"Introducing code blocks: Take complete control of custom code execution in variations. Read this post to know more details about this update.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/\" \/>\n<meta property=\"og:site_name\" content=\"VWO Product Updates\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-23T06:49:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-12T10:57:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/06\/og-image-Introducing-Custom-Code-Blocks.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Thejas Sridhar\" \/>\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\/custom-code-blocks-with-trigger-conditions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/\"},\"author\":{\"name\":\"Thejas Sridhar\",\"@id\":\"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/0eb76cbc077c7a643e7c63db7d1e34e7\"},\"headline\":\"Introducing code blocks: Take complete control of custom code execution in variations\",\"datePublished\":\"2024-07-23T06:49:21+00:00\",\"dateModified\":\"2025-03-12T10:57:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/\"},\"wordCount\":1145,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/06\/og-image-Introducing-Custom-Code-Blocks.jpg\",\"keywords\":[\"Client Side Testing\",\"Personalization\",\"Visual Editor\"],\"articleSection\":[\"VWO Personalize\",\"VWO Testing\",\"VWO Web Rollouts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/\",\"url\":\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/\",\"name\":\"Introducing Custom Code Blocks With Triggers On VWO\",\"isPartOf\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/06\/og-image-Introducing-Custom-Code-Blocks.jpg\",\"datePublished\":\"2024-07-23T06:49:21+00:00\",\"dateModified\":\"2025-03-12T10:57:59+00:00\",\"author\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/0eb76cbc077c7a643e7c63db7d1e34e7\"},\"description\":\"Introducing code blocks: Take complete control of custom code execution in variations. Read this post to know more details about this update.\",\"breadcrumb\":{\"@id\":\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#primaryimage\",\"url\":\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/06\/og-image-Introducing-Custom-Code-Blocks.jpg\",\"contentUrl\":\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/06\/og-image-Introducing-Custom-Code-Blocks.jpg\",\"width\":2400,\"height\":1260,\"caption\":\"Custom code blocks in VWO\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/vwo.com\/product-updates\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introducing code blocks: Take complete control of custom code execution in variations\"}]},{\"@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\/0eb76cbc077c7a643e7c63db7d1e34e7\",\"name\":\"Thejas Sridhar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2023\/03\/Thejas_pic-scaled-e1680084839651-150x150.jpg\",\"contentUrl\":\"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2023\/03\/Thejas_pic-scaled-e1680084839651-150x150.jpg\",\"caption\":\"Thejas Sridhar\"},\"description\":\"A computer science engineer turned product marketer. When I'm not writing or singing, I love enjoying the rain, sunrises, and other fine things money can't buy.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Introducing Custom Code Blocks With Triggers On VWO","description":"Introducing code blocks: Take complete control of custom code execution in variations. Read this post to know more details about this update.","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\/custom-code-blocks-with-trigger-conditions\/","og_locale":"en_US","og_type":"article","og_title":"Introducing Custom Code Blocks With Triggers On VWO","og_description":"Introducing code blocks: Take complete control of custom code execution in variations. Read this post to know more details about this update.","og_url":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/","og_site_name":"VWO Product Updates","article_published_time":"2024-07-23T06:49:21+00:00","article_modified_time":"2025-03-12T10:57:59+00:00","og_image":[{"width":2400,"height":1260,"url":"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/06\/og-image-Introducing-Custom-Code-Blocks.jpg","type":"image\/jpeg"}],"author":"Thejas Sridhar","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#article","isPartOf":{"@id":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/"},"author":{"name":"Thejas Sridhar","@id":"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/0eb76cbc077c7a643e7c63db7d1e34e7"},"headline":"Introducing code blocks: Take complete control of custom code execution in variations","datePublished":"2024-07-23T06:49:21+00:00","dateModified":"2025-03-12T10:57:59+00:00","mainEntityOfPage":{"@id":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/"},"wordCount":1145,"commentCount":0,"image":{"@id":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#primaryimage"},"thumbnailUrl":"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/06\/og-image-Introducing-Custom-Code-Blocks.jpg","keywords":["Client Side Testing","Personalization","Visual Editor"],"articleSection":["VWO Personalize","VWO Testing","VWO Web Rollouts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/","url":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/","name":"Introducing Custom Code Blocks With Triggers On VWO","isPartOf":{"@id":"https:\/\/vwo.com\/product-updates\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#primaryimage"},"image":{"@id":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#primaryimage"},"thumbnailUrl":"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/06\/og-image-Introducing-Custom-Code-Blocks.jpg","datePublished":"2024-07-23T06:49:21+00:00","dateModified":"2025-03-12T10:57:59+00:00","author":{"@id":"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/0eb76cbc077c7a643e7c63db7d1e34e7"},"description":"Introducing code blocks: Take complete control of custom code execution in variations. Read this post to know more details about this update.","breadcrumb":{"@id":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#primaryimage","url":"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/06\/og-image-Introducing-Custom-Code-Blocks.jpg","contentUrl":"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2024\/06\/og-image-Introducing-Custom-Code-Blocks.jpg","width":2400,"height":1260,"caption":"Custom code blocks in VWO"},{"@type":"BreadcrumbList","@id":"https:\/\/vwo.com\/product-updates\/custom-code-blocks-with-trigger-conditions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vwo.com\/product-updates\/"},{"@type":"ListItem","position":2,"name":"Introducing code blocks: Take complete control of custom code execution in variations"}]},{"@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\/0eb76cbc077c7a643e7c63db7d1e34e7","name":"Thejas Sridhar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vwo.com\/product-updates\/#\/schema\/person\/image\/","url":"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2023\/03\/Thejas_pic-scaled-e1680084839651-150x150.jpg","contentUrl":"https:\/\/static.wingify.com\/gcp\/uploads\/sites\/13\/2023\/03\/Thejas_pic-scaled-e1680084839651-150x150.jpg","caption":"Thejas Sridhar"},"description":"A computer science engineer turned product marketer. When I'm not writing or singing, I love enjoying the rain, sunrises, and other fine things money can't buy."}]}},"_links":{"self":[{"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/posts\/2833","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\/819"}],"replies":[{"embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/comments?post=2833"}],"version-history":[{"count":22,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/posts\/2833\/revisions"}],"predecessor-version":[{"id":3330,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/posts\/2833\/revisions\/3330"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/media\/2765"}],"wp:attachment":[{"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/media?parent=2833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/categories?post=2833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/tags?post=2833"},{"taxonomy":"feature","embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/feature?post=2833"},{"taxonomy":"industry-type","embeddable":true,"href":"https:\/\/vwo.com\/product-updates\/wp-json\/wp\/v2\/industry-type?post=2833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}