{"id":3276,"date":"2026-03-31T13:05:43","date_gmt":"2026-03-31T12:05:43","guid":{"rendered":"https:\/\/www.poll-hero.com\/docs\/embedded-survey-direct-injection-coming-soon\/"},"modified":"2026-04-17T13:41:27","modified_gmt":"2026-04-17T12:41:27","password":"","slug":"embedded-survey-direct-injection-coming-soon","status":"publish","type":"docs","link":"https:\/\/www.poll-hero.com\/en\/docs\/embedded-survey-direct-injection-coming-soon\/","title":{"rendered":"Embedded Survey &#8211; Direct Injection (Coming Soon)"},"content":{"rendered":"\n<p>In the Launch tab, you can decide how to integrate your embedded survey. If you choose the <a href=\"https:\/\/www.w3schools.com\/cssref\/css_selectors.php\" rel=\"nofollow noopener\" target=\"_blank\">CSS Selector<\/a> option instead of Embed Code, you can use Direct Injection to decide exactly where the survey should be positioned. It is then embedded using CSS selectors and <a href=\"https:\/\/www.w3schools.com\/cssref\/css_ref_combinators.php\" rel=\"nofollow noopener\" target=\"_blank\">combinators<\/a>.  <\/p>\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.poll-hero.com\/wp-content\/uploads\/2026\/03\/Direct-Injection_Screenshot.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"753\" height=\"342\" src=\"https:\/\/www.poll-hero.com\/wp-content\/uploads\/2026\/03\/Direct-Injection_Screenshot.png\" alt=\"\" class=\"wp-image-3237\" srcset=\"https:\/\/www.poll-hero.com\/wp-content\/uploads\/2026\/03\/Direct-Injection_Screenshot.png 753w, https:\/\/www.poll-hero.com\/wp-content\/uploads\/2026\/03\/Direct-Injection_Screenshot-300x136.png 300w, https:\/\/www.poll-hero.com\/wp-content\/uploads\/2026\/03\/Direct-Injection_Screenshot-360x164.png 360w\" sizes=\"(max-width: 753px) 100vw, 753px\" \/><\/a><\/figure>\n\n<p>With Direct Inject, you can &#8220;find&#8221; specific elements on your page. PollHero then injects the survey at the first location that matches the selected element.  <\/p>\n\n<p>You can choose from 5 options: <\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>Replace:<\/strong> <strong>Replaces<\/strong> the element found via the selectors with the survey. The target element is removed from the page. <\/li>\n\n\n\n<li><strong>At First: <\/strong>If the target element is a container with multiple elements, it will be placed in the <strong>first<\/strong> position within that container.<\/li>\n\n\n\n<li><strong>At Last:<\/strong> If the target element is a container with multiple elements, it will be placed in the <strong>last<\/strong> position within that container.<\/li>\n\n\n\n<li><strong>Before: <\/strong>The survey is placed directly <strong>before the start<\/strong> of the target element.<\/li>\n\n\n\n<li><strong>After: <\/strong>The survey is placed directly <strong>after the end<\/strong> of the target element.<\/li>\n\n\n\n<li><\/li>\n<\/ul>\n\n<p>To use Direct Inject, enter your CSS selector into the input field above the position selection. You can then use PollHero Targeting to set which pages PollHero should search for the target element.  <\/p>\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Launch tab, you can decide how to integrate your embedded survey. If you choose the CSS Selector option instead of Embed Code, you can use Direct Injection to decide exactly where the survey should be positioned. It is then embedded using CSS selectors and combinators. With Direct Inject, you can &#8220;find&#8221; specific elements [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_category":[92],"doc_tag":[],"class_list":["post-3276","docs","type-docs","status-publish","hentry","doc_category-targeting"],"acf":[],"year_month":"2026-04","word_count":201,"total_views":"3","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Pia von PollHero","author_nicename":"pia_pollhero","author_url":"https:\/\/www.poll-hero.com\/en\/author\/pia_pollhero\/"},"doc_category_info":[{"term_name":"Targeting","term_url":"https:\/\/www.poll-hero.com\/en\/docs\/targeting\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.poll-hero.com\/en\/wp-json\/wp\/v2\/docs\/3276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poll-hero.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.poll-hero.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.poll-hero.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poll-hero.com\/en\/wp-json\/wp\/v2\/comments?post=3276"}],"version-history":[{"count":1,"href":"https:\/\/www.poll-hero.com\/en\/wp-json\/wp\/v2\/docs\/3276\/revisions"}],"predecessor-version":[{"id":3278,"href":"https:\/\/www.poll-hero.com\/en\/wp-json\/wp\/v2\/docs\/3276\/revisions\/3278"}],"wp:attachment":[{"href":"https:\/\/www.poll-hero.com\/en\/wp-json\/wp\/v2\/media?parent=3276"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.poll-hero.com\/en\/wp-json\/wp\/v2\/doc_category?post=3276"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.poll-hero.com\/en\/wp-json\/wp\/v2\/doc_tag?post=3276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}