{"id":2114,"date":"2024-12-05T16:39:30","date_gmt":"2024-12-05T16:39:30","guid":{"rendered":"https:\/\/www.riddle.com\/blog\/?p=2114"},"modified":"2026-06-25T08:21:02","modified_gmt":"2026-06-25T08:21:02","slug":"dynamic-and-personalized-content-with-variables","status":"publish","type":"post","link":"https:\/\/www.riddle.com\/blog\/use-cases\/engagement\/dynamic-and-personalized-content-with-variables\/","title":{"rendered":"Why use Riddle events for dynamic and personalized content"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The best-performing websites only show content that is relevant to the individual visitor. By personalizing content, you can remove distractions and increase conversions. Take Amazon, for example. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have never searched for pet supplies, Amazon knows that you most likely don&#8217;t own pets and will not serve any pet food on their homepage for you. This personalization goes mostly unnoticed, but it is a powerful sales driver for them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Personalization is a bit more challenging if you don&#8217;t have a purchase history from your users. Using Riddle&#8217;s <a href=\"https:\/\/www.riddle.com\/quiz-maker?utm_source=blog&#038;utm_medium=referral&#038;utm_campaign=bloglink\">quiz maker<\/a> to create quizzes and personality tests is a powerful way to learn more about your users&#8217; preferences. The data you collect is <a href=\"https:\/\/www.salesforce.com\/uk\/marketing\/personalization\/zero-party-data\/\" target=\"_blank\" rel=\"noopener\">zero-party<\/a>, so you can freely use it for personalization.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1? Include questions in your Riddles that unlock answers to the most useful personalization for your business. If you run a travel website, knowing if someone prefers vacations in the mountains is a powerful data point. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can use our event system to push data from the Riddle iFrame to the surrounding website, where you can use that information to create custom content or set cookies. Check out this\u00a0<a href=\"https:\/\/www.riddle.com\/examples\/ad-examples\/ad-refresh-outside-the-riddle-embed?utm_source=blog&#038;utm_medium=referral&#038;utm_campaign=bloglink\" target=\"_blank\" rel=\"noreferrer noopener\">example<\/a>\u00a0where the answer option you choose changes the text in an advertising banner on the website.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also use our event system to push data into Google Tag Manager, Google Analytics, or any other tracking tool with our custom event setup.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"651\" height=\"317\" src=\"https:\/\/www.riddle.com\/blog\/wp-content\/uploads\/2023\/01\/variables-to-create-dynamic-content.webp\" alt=\"User variables to add dynamic content collected from form and other quiz blocks.\" class=\"wp-image-1993\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-here-are-four-examples-of-how-using-our-events-can-enhance-your-content-nbsp\">Here are four examples of how using our events can enhance your content:&nbsp;<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-dynamic-banner-updates-based-on-quiz-responses\">1. Dynamic banner updates based on quiz responses<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When a user answers a quiz question, you can immediately adjust banner content based on their choice. For example, if a user on a travel site selects \u201cmountains\u201d over \u201cbeach\u201d in a preferences quiz, a banner at the top of the page can display mountain vacation packages. This creates a seamless, personalized experience without having to refresh the page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-setting-cookies-for-future-content-personalization\">2. Setting cookies for future content personalization<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">By leveraging the onComplete event after a user completes a quiz, you can set a cookie reflecting their preferences, which can be referenced in future visits. For instance, a cooking blog might set a cookie if a user selects \u201cvegetarian\u201d in a dietary quiz. On subsequent visits, the site could prioritize showing vegetarian recipes, creating an ongoing personalized experience.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-content-personalization-with-a-google-tag-manager-integration\">3. Content personalization with a Google Tag Manager integration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Pushing quiz data to Google Tag Manager allows you to create custom content or retargeting strategies within Google Analytics. For example, a quiz response indicating interest in outdoor activities could be used to prioritize similar content across the website for that user or to create a tailored ad audience, boosting conversion rates through targeted advertising.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-4-adaptive-product-recommendations-in-real-time\">4. Adaptive product recommendations in real time<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use Riddle\u2019s onResponse event to instantly modify product recommendations on your page based on quiz answers. For instance, on an e-commerce fashion site, if a user selects \u201ccasual\u201d over \u201cformal\u201d style in a quiz, the product carousel can dynamically switch to show casual clothing items. This allows you to align product suggestions with the user\u2019s preferences, increasing the likelihood of conversion.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Quizzes are one of the best sources of zero-party data. Quiz-takers usually answer questions honestly and out of personal interest, making them a perfect data source for personalization. Using Riddle&#8217;s JavaScript events, you can personalize your content in real-time or store personalization information in a cookie for ongoing use. Integrating this data into your website experience using Riddle events transforms generic content into a customized journey, increasing user engagement, driving conversions, and fostering long-term loyalty.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Whether you\u2019re adjusting banners, tailoring product recommendations, or setting cookies for future personalization, Riddle events open endless possibilities to make each user interaction meaningful and relevant. Start experimenting with Riddle\u2019s event system to see how personalized content can elevate your site experience and keep users returning for more.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-further-reading\">Further reading<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/business.adobe.com\/blog\/basics\/how-to-personalize-content\" target=\"_blank\" rel=\"noreferrer noopener\">Adobe<\/a>&nbsp;highlights that personalized content is crucial for attracting and retaining customers.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.zendesk.de\/blog\/complete-guide-personalization\/\" target=\"_blank\" rel=\"noreferrer noopener\">Zendesk<\/a>&nbsp;outlines the critical role of personalization in enhancing customer experiences and satisfaction.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-2114001\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How can I personalize website content with a quiz?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Collect a visitor&#8217;s preferences as zero-party data through a quiz or personality test, then use Riddle&#8217;s event system to push that data to the surrounding page so you can tailor content or set cookies, even without any prior purchase history.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-2114002\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What is Riddle&#8217;s event system?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>It pushes data from the Riddle iframe out to the host website and to tools like Google Tag Manager and Google Analytics, so a quiz answer can trigger dynamic changes on your page or feed your analytics and retargeting.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-2114003\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Can a quiz answer change my page content in real time?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes. For example, if a user on a travel site picks mountains over beach, a banner can immediately switch to mountain vacation packages, creating a seamless personalized experience with no page refresh.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-2114004\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How do I personalize repeat visits based on a quiz?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Use the onComplete event to set a cookie reflecting a user&#8217;s choice, such as vegetarian on a cooking site, then prioritize matching content on their future visits for an ongoing personalized experience.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-2114005\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Can quiz data feed Google Analytics or Tag Manager?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes. You can push quiz responses into Google Tag Manager or Google Analytics with Riddle&#8217;s custom events, then use them for tailored content, segmentation, and retargeting strategies.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>The best-performing websites only show content that is relevant to the individual visitor. By personalizing content, you can remove distractions and increase conversions. Take Amazon, for example. If you have never searched for pet supplies, Amazon knows that you most likely don&#8217;t own pets and [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":4209,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":"","rank_math_title":"","rank_math_description":"Riddle variables are a no-code solution to create dynamic and personalized quizzes, polls, surveys and personality tests","rank_math_focus_keyword":"personalized content","rank_math_canonical_url":"","rank_math_facebook_title":"","rank_math_facebook_description":"","rank_math_twitter_title":"","rank_math_twitter_description":"","rank_math_robots":["index"]},"categories":[88],"tags":[],"class_list":["post-2114","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-engagement"],"author_meta":{"display_name":"Boris","author_link":"https:\/\/www.riddle.com\/blog\/author\/boris\/"},"featured_img":"https:\/\/www.riddle.com\/blog\/wp-content\/uploads\/2024\/12\/Why-use-riddle-events.webp","coauthors":[],"tax_additional":{"categories":{"linked":["<a href=\"https:\/\/www.riddle.com\/blog\/category\/use-cases\/engagement\/\" class=\"advgb-post-tax-term\">Engagement<\/a>"],"unlinked":["<span class=\"advgb-post-tax-term\">Engagement<\/span>"]}},"comment_count":"0","relative_dates":{"created":"Posted 2 years ago","modified":"Updated 22 hours ago"},"absolute_dates":{"created":"Posted on December 5, 2024","modified":"Updated on June 25, 2026"},"absolute_dates_time":{"created":"Posted on December 5, 2024 4:39 pm","modified":"Updated on June 25, 2026 8:21 am"},"featured_img_caption":"","series_order":"","_links":{"self":[{"href":"https:\/\/www.riddle.com\/blog\/wp-json\/wp\/v2\/posts\/2114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.riddle.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.riddle.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.riddle.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.riddle.com\/blog\/wp-json\/wp\/v2\/comments?post=2114"}],"version-history":[{"count":14,"href":"https:\/\/www.riddle.com\/blog\/wp-json\/wp\/v2\/posts\/2114\/revisions"}],"predecessor-version":[{"id":8418,"href":"https:\/\/www.riddle.com\/blog\/wp-json\/wp\/v2\/posts\/2114\/revisions\/8418"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.riddle.com\/blog\/wp-json\/wp\/v2\/media\/4209"}],"wp:attachment":[{"href":"https:\/\/www.riddle.com\/blog\/wp-json\/wp\/v2\/media?parent=2114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.riddle.com\/blog\/wp-json\/wp\/v2\/categories?post=2114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.riddle.com\/blog\/wp-json\/wp\/v2\/tags?post=2114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}