Quiz Popup
Add Smartarget's Quiz Popup to Webflow to run product recommendation quizzes that capture visitor emails, using the Marketplace app or a pasted script.

Building a scored, multi-step quiz means stacking show-and-hide interactions or writing application code. Quiz Popup handles the question logic, result screens, and email capture in a hosted widget.
With Quiz Popup on your site, visitors answer a few questions in a popup and then get a matched recommendation or result. The quiz can ask visitors to sign up for your newsletter and give new subscribers a discount code if you choose to offer one. You configure the questions, theme, and display behavior in the Smartarget dashboard, so you don't rebuild your Webflow pages.
This integration suits ecommerce store owners who want a product finder and B2B service teams that qualify inbound leads. Coaches and course creators can use it to grow an email list with a themed quiz. Webflow freelancers and agencies can install it on client sites without developer help.
How to integrate Quiz Popup with Webflow
Smartarget, a suite of website widgets operated by TopSoft UG, provides Quiz Popup. Questions can include photos, simple text, date pickers, and number ranges. The quiz can show automatically or behind a floating button.
When visitors need help choosing a product, plan, or service, quiz answers let you segment them and return a matching result. Smartarget's dashboard also includes app analytics and weekly performance reports.
You can install Quiz Popup three ways. The Quiz Popup app connects your site to the Smartarget dashboard without writing code. With custom code, you paste the Smartarget script into your site's head and body code, into a single page, or into a Code Embed element. The Webflow Custom Code API registers and applies the script programmatically, which requires server-side development, and Smartarget's Webflow guide covers only the paste method.
Install the Quiz Popup app
Manage the quiz entirely from the Smartarget dashboard with the Quiz Popup app from the Webflow Marketplace, without copying scripts. The app requests permission to read and write custom code and to read site data and publishing. The listing carries the Approved by Webflow label, which means Webflow reviewed the app before listing it.

To set up the integration:
- Open the Quiz Popup listing in the Webflow Marketplace and click Log in to install.
- Build your quiz in the Smartarget dashboard, including questions, required fields, theme, and display behavior.
- Publish your site so the quiz goes live.
The app gives you these quiz controls:
- Question types: Questions can use photos, simple text, date pickers, and number ranges.
- Required fields and scheduling: You mark each field as mandatory or optional, and you can schedule the quiz to appear for a limited time.
- Display trigger: The quiz opens automatically when visitors arrive, or from a floating button with a call to action.
- Email capture: Visitors can sign up for your newsletter and receive a discount code if you offer one.
The quiz works on desktop and mobile.
Add the Quiz Popup script with custom code
If you prefer to control exactly where the quiz loads, paste the Smartarget script yourself. First, get the script from Smartarget. Create a Smartarget account and set up your Quiz configuration. Then go to Integrations and copy the JavaScript code, as Smartarget's Webflow Quiz guide describes. You need a Core, Growth, Agency, or Freelancer Workspace, or an active Site plan, to add custom code.
Load the quiz site-wide with footer code
Footer code runs on every page and loads before the closing body tag. Placing scripts there lets page content load before the JavaScript runs, which helps page speed.
To add the script site-wide:
- Go to Site settings > Custom code.
- Paste the Smartarget script into the Footer code section.
- Click Save changes.
- Publish your site.
The Head code and Footer code sections each accept up to 50,000 characters. That leaves plenty of room for other scripts.
Limit the quiz to one page with page settings
A product category page or a B2B service page may need its own quiz. Code in a page's custom code section applies only to that page and appears after any site-wide code.
To add the script to one page:
- Open your site in Webflow and open Page settings for the target page.
- Under Custom code, paste the script into the Before
</body>tag section. - Save your changes and publish the site.
Check your Smartarget plan before you use a page-level install. Smartarget's free plan shows apps on every page only during the trial, then on the homepage alone, while its paid PRO version shows apps on all pages.
Place the quiz inline with a Code Embed element
A Code Embed element loads the script from a specific spot on one page instead of from site-wide or page settings. This can suit a landing page layout, though the popup itself may still display as an overlay.
To embed the quiz inline:
- Copy the Smartarget script to your clipboard.
- Open the Add panel and add a Code Embed element to the canvas.
- Paste the script, then save and close the modal.
- Publish your site.
A Code Embed element can't exceed 50,000 characters, and custom code doesn't run in expand canvas view. If you turn on Asynchronously load JavaScript in Advanced publishing options, Webflow's async loading guide recommends a defer attribute for external scripts and a window load handler for inline JavaScript.
Deploy the script with the Webflow Custom Code API
Agencies that install Quiz Popup on many client sites can deploy the script through the Webflow Data API v2. This replaces pasting it by hand. This path requires a Webflow App with an OAuth token and server-side code. Smartarget's Webflow guide documents no API or webhook for quiz responses, so this path handles script deployment only.
The JavaScript snippet comes from the Integrations area of your Smartarget account, and Webflow's custom code endpoints register it and apply it to sites or individual pages. Site and Workspace tokens can't call the custom code endpoints.
Register and apply the Quiz Popup script
Registering the script once lets you apply the same version to every site or page your app manages. Your app needs the custom_code:read and custom_code:write scopes, listed in the scopes reference.
To implement this:
- Register the snippet as an inline script with
POST /v2/sites/{site_id}/registered_scripts/inline. The body requiressourceCode,version(a SemVer string), anddisplayName. Pass the JavaScript without its surrounding script tags, because Webflow adds them. You can register inline scripts up to 2,000 characters, per the register inline script reference, so a longer snippet needs the hosted path. - If the script is hosted at a URL, use
POST /v2/sites/{site_id}/registered_scripts/hostedinstead. It requireshostedLocation,integrityHash,version, anddisplayName, per the register hosted script reference. - Apply the registered script site-wide with
PUT /v2/sites/{site_id}/custom_code, or to one page withPUT /v2/pages/{page_id}/custom_code. - Publish the site, because custom code changes take effect only on publish.
- To remove the quiz, call the same
PUTendpoint without the script in the request body.
A minimal inline registration body looks like this:
{
"sourceCode": "<Smartarget snippet copied from Integrations>",
"version": "1.0.0",
"displayName": "SmartargetQuiz"
}
Registered script versions are immutable, so register a new version whenever you change the Smartarget snippet.
What you can build with the Quiz Popup Webflow integration
Quiz Popup fits any page where a visitor has to pick between options before acting.
- Product finder for a store: A beauty brand asks photo-based questions about skin type and concerns. It then shows a matched product with a link to its product page.
- B2B lead qualification: A multi-step quiz on a service page collects budget range, team size, and project needs. It then segments results by answer pattern to prioritize follow-up.
- Newsletter growth quiz: A coaching site runs a leadership style quiz that invites visitors to join the newsletter. It delivers a discount code to new subscribers.
- Product page recommendation: A short quiz opens from a floating button on a product page. It points visitors to a better-matched item.
Each of these runs inside the Smartarget widget, so the quiz logic lives outside your Webflow project. If you'd rather own the scoring code yourself, build a scored quiz in Webflow Cloud with React.
Frequently asked questions
To paste the Smartarget script into site or page custom code, or into a Code Embed element, you need a Core, Growth, Agency, or Freelancer Workspace, or a site with an active Site plan.
Preview mode turns off custom code by default. Turn on the Enable custom code toggle in the bottom left corner, as described in the preview mode guide. With the toggle on, preview runs on a separate canvas.webflow.com subdomain, so a script tied to your site's domain may not load there. Test the quiz on your published site.
Not directly. Smartarget's Webflow guide covers only adding the quiz script, and it documents no webhook or API for sending quiz responses into the Webflow CMS or a Webflow form. Writing responses into your site would need a custom build that Smartarget doesn't document.
Yes. Paste the Smartarget script into the Before
</body>tag section of that page's Page settings instead of the site-wide Footer code. Smartarget's free plan shows apps on every page only during the trial and on the homepage after it, so a quiz on an inner page needs Smartarget's paid PRO version.Treat the quiz as a third-party script under your consent setup, and review Smartarget's privacy policy for how it handles data. Scripts pasted into head and body custom code fire before a consent tool such as Consent Pro can intercept them, so load the quiz through your consent tool instead. Smartarget's Webflow guide documents no setting that holds the quiz until consent. Webflow's tracking consent guide covers Analyze and Optimize only, so choose a consent management platform that can block third-party scripts before you publish.

Description
Add Smartarget's quiz popups to Webflow pages through the Quiz Popup Marketplace app or a pasted script. Capture emails and deliver product recommendations or discount codes.
This integration page is provided for informational and convenience purposes only.
quizell-product-quiz
Connect Quizell Product Quiz with Webflow to embed product recommendation quizzes that capture leads and guide visitors to the right products.

Quizell
Connect Quizell with Webflow to embed product recommendation quizzes that route each visitor to a matching product or a qualified sales form.

involve.me
Embed involve.me quiz funnels and calculators on Webflow pages, then send completed submissions to the Webflow CMS through Zapier or a webhook.
Outgrow
Connect Outgrow, an interactive content platform, with Webflow to embed quizzes, ROI calculators, and product recommendation tools on pages and route captured lead data to CMS collections.

EX.CO
EX.CO is a technology company used by brands & publishers to turn content into engaging experiences.


