Skip to content

Inline

Place the element below where the first quiz question should appear. Copy the Quiz ID from Setup › Integration and replace YOUR_QUIZ_ID. The Global script uses the Client ID. Which ID do I need?

Inline quiz
<div data-neocom-id="YOUR_QUIZ_ID"></div>

For startup mounting, include the visible element before the Global script initializes. If it is inserted or first shown later, follow the mountAdvisor reference. The quiz takes the width of its container, up to Max Width.

Dedicated page. Use a page such as /bike-finder when you want a shareable destination for banners, menus, newsletters or ads. Place the quiz under a headline that explains what it helps shoppers choose.

A Bike finder page shows its introduction followed by the first quiz question and the answers City streets and Gravel trails.

On an existing page. Embed the quiz above a product list when shoppers can use the first question to narrow their choices as they browse. Give it a short heading, such as “Which bike fits your commute?”

On a City bikes category page, an embedded question offers City streets or Gravel trails immediately above the product grid.

Max Width, Top Margin (so a sticky header or toolbar does not cover the quiz; separate values for mobile and desktop), corner radius, colors and fonts are set under Setup › Theme Designer › Basics. See Theme Designer.

To limit a quiz that covers several categories to the category of the page, add the Scope IDs to the element:

Inline quiz with Scopes
<div
data-neocom-id="YOUR_QUIZ_ID"
data-neocom-include-scopes="scope1,scope2"
data-neocom-exclude-scopes="scope3"
></div>

Scopes are not part of every contract; how to create them and where to find their IDs: Scopes. To open the same quiz as a modal from a button, use the JavaScript trigger; where to link to the page: Where to place your quiz.