Embed a survey in a page
Put a question beside the product description, below a sizing guide or at the end of an article. Shoppers can answer without leaving the page. Choose a method in your survey under Website triggers, frequency and exit behaviour → Website placement.
Paste a snippet into one page
Choose Inline code snippet, copy the survey embed code, and publish the survey. Paste the code into the HTML block where the questions belong. Each snippet identifies its own survey, so you can put different surveys in different blocks on the same page.
The snippet works on the page where you paste it, even if the survey has a different page-path or hostname rule. Other audience conditions, visitor frequency limits and the survey’s publication status still apply. The snippet works on its own.
Choose a section from Shopoll
Use Inside an existing page section when your site already loads the website script from Installation. If you use Shopify, you can enable the storefront app embed instead.
- Give the section a stable ID in your theme or page builder, such as
product-feedback. You can also use an existing class. - Enter a Container CSS selector, such as
#product-feedbackfor that ID or.product-details .feedbackfor a nested section. - In Audience and placements, select Website visitor, turn on Include in automatic website selection, and set any page and visitor rules.
- Save the draft and publish it. Open a page that matches your rules and check the section.
Shopoll appends the survey inside the first matching element and keeps the section’s existing content. Use a separate selector for each survey you want to show on the same page. If the configured selector has no match, Shopoll checks #shopoll-embed-target, then #shopoll-embed- followed by the survey ID. With no matching container, the page stays as it is. A section added later by a page builder can still receive its survey.
Preview and test
Preview current draft shows the inline survey below the product on the sample storefront. Open the real page to check that your selector matches your theme. The survey uses your on-site design settings inside its own frame. For a storefront that changes pages without reloading, call Shopoll.refresh() after navigation to recheck eligibility.