Skip to main content

Installing an embedded quiz

Install an embedded quiz on your Shopify store using either the Quiz Widget block or a custom embed snippet.

Written by Chris MaGill

Install an embedded quiz on any page of your Shopify store to guide customers to the right products. Choose from two installation methods depending on your theme version.

In this article, you will learn about;


Installing the widget on a theme

  1. Navigate to Quizzes > Quiz List, click the 3 dots next to an existing quiz, and then Install.

Follow the instructions to install the embedded quiz using either of the two methods below.

Method 1: Add a quiz within a page section

💡 This method is only supported by Shopify 2.0 themes. Use Method 2 for stores on older themes.

  1. Click the copy button next to the Quiz ID field.

  2. In Shopify, go to Online Store > Theme > Customize.

  3. Navigate to Pages from the top menu and choose which page template to edit.

    1. To create a new template, scroll to the bottom of the Pages list and click Create template.

    2. Give your template a unique name.

    3. Select which existing template to base it on and click Create template.

  4. Make sure the Okendo app embed is switched on.

  5. Click Apps > Add Block and select Okendo's Quiz Widget.

  6. Insert the Quiz ID you copied from the Okendo app.

  7. The quiz now displays in the Theme Customizer. Click Save to finalize your changes.

💡 To display a quiz at the full width of a page, click on the Apps section and de-select Make section margins the same as theme.

Method 2: Embed quiz snippet in theme

  1. Click the copy button next to the Embed Snippet field.

  2. Follow the steps in Method 1 to open the Theme Customizer, but add a Custom Liquid section to the page instead of a Quiz Widget block. Go to Online Store > Theme > Customize.

  3. Choose a page template to edit.

  4. Click Add section and select Custom Liquid.

  5. Paste the copied code from Okendo into the Custom Liquid section.

  6. The quiz now displays in the Theme Customizer. Click Save to finalize your changes.

💡 To display a quiz in a modal triggered by a button click, refer to the installation instructions in this article.


Assigning a quiz to a page

Once a quiz has been added to a page template, it displays on any store page using that template. To create a new store page:

  1. From the Shopify admin, go to Online Store > Pages.

  2. Click Add page.

  3. Enter a title and content for the page.

  4. In the bottom right corner, select the theme template you want to use for the quiz page.

  5. In the Visibility section, choose when the page should be published.

  6. Click Save.


Widget display options

The following options can be configured in the Okendo admin before copying your embed snippet, or in the Shopify theme editor if using the Quiz ID method.

  1. Full Screen Mode: Displays the embedded quiz at full screen size, covering the whole page. Customers are taken to the homepage when closing the quiz.

  2. Header Offset: Offsets the quiz position by the height of your sticky header (if any) to prevent the header from overlapping the top of the quiz.


Installing quizzes on headless instances

For headless implementations, refer to the technical documentation.

Did this answer your question?