Skip to content

How to Embed an Inline Quiz on Your Store

This guide provides step-by-step instructions for embedding an inline quiz on various sections of your store, including the homepage, a new page, a specific collection page, and how to manage the quiz's size and autoscroll behavior.

Make sure you have:

  • Access to your eCommerce store's admin dashboard.
  • An existing quiz created with the Shop Quiz: Product Recommendation Quiz app.
  • Familiarity with your store's theme customization options.

Embedding an Inline Quiz on the Homepage

Option 1: Through Shopify Theme

  1. Navigate to Theme Customization: Go to Online Store > Themes in your Shopify dashboard. Click the Customize button for your active theme.
  2. Add Inline Quiz Section: Click + Add Section, then scroll to Apps and find Inline Quiz from Shop Quiz: Product Recommender. Select it to add to your homepage.
  3. Configure Quiz Settings: Click on the added quiz section to configure. Select the desired Quiz ID to embed and adjust settings like quiz height, disable auto-scroll, or fix quiz height for consistent results page height.
  4. Save Changes: Ensure all changes are saved before exiting the theme editor.

Option 2: Manual Embedding

  1. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode, and Show Instructions for Legacy Themes to copy the HTML embed code.
  2. Add Custom HTML Section: In the Shopify theme customizer, click Add section then select Custom content. Remove default content and add a Custom HTML section.
  3. Embed the Quiz: Paste the copied HTML code into the HTML input of the Custom HTML section and save.
  1. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  2. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  3. In WordPress, open Pages and find the Front Page. Click Edit to open the page.
  4. In the editor, find a Custom HTML element and add it to the page in a place where you want the quiz to show.
  5. In the element, paste the code copied from the app.
  6. Save the changes and update the page.
  7. From now on, the inline quiz will be visible on the main page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  4. In your Magento dashboard go to Content > Blocks. Click Add New Block.
  5. Edit the Block Title, Identifier and Store View and click Edit with Page Builder.
  6. Select Elements > Rows and drag a row into the canvas.
  7. Next open Elements and pick HTML Code. Drag the HTML Code onto the Row.
  8. Click the gear icon to open HTML settings.
  9. Under Enter HTML, CSS or JavaScript code paste the HTML code copied from the app.
  10. Remember to save the changes.
  11. From now on, the inline quiz will be visible on the main page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  4. In BigCommerce, go to Storefront > Web Pages. Find the main page.
  5. Switch to the HTML editor. Find the place where you want to add the quiz and paste the HTML code copied from the app.
  6. Save the changes.
  7. From now on, the inline quiz will be visible on the main page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  4. In your store customization options find the main page.
  5. Find the place where you want to add the quiz and find a Custom HTML element. In the element settings paste the code copied from the app.
  6. Save the changes.
  7. From now on, the inline quiz will be visible on the main page.

Embedding an Inline Quiz on a New Page

  1. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode, and Show Instructions for Legacy Themes to copy the HTML embed code.
  2. Insert Quiz into Page: Navigate to Online Store > Pages and select the page to embed the quiz. Click Show HTML and paste the embed code into the code editor.
  3. Single Quiz Per Page: To avoid issues, embed only one quiz per page. If using a non-Shopify version of the quiz, ensure the embed.js code is added to your site's header.
  1. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  2. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  3. In WordPress, open Pages and click Add New Page.
  4. In the editor, add a page title. Then, find a Custom HTML element and add it to the page in a place where you want the quiz to show.
  5. In the element, paste the code copied from the app.
  6. Save the changes and update the page.
  7. From now on, the inline quiz will be visible on that page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  4. In your Magento dashbaord go to Content > Pages. Click Add New Page.
  5. Edit the Page Title and open the Content tab. Click Edit with Page Builder.
  6. Select Elements > Rows and drag a row into the canvas.
  7. Next open Elements and pick HTML Code. Drag the HTML Code onto the Row.
  8. Click the gear icon to open HTML settings.
  9. Under Enter HTML, CSS or JavaScript code paste the HTML code copied from the app.
  10. Remember to save the changes.
  11. From now on, the inline quiz will be visible on that page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  4. In BigCommerce, go to Storefront > Web Pages. Click Create a Web Page.
  5. Under Web Page Details > Page Content switch to the HTML editor. Paste the HTML code copied from the app.
  6. Save the changes.
  7. From now on, the inline quiz will be visible on that page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  4. In your store customization options find the Pages menu and create a new page.
  5. In the page editor find a Custom HTML element. In the element settings paste the code copied from the app.
  6. Save the changes.
  7. From now on, the inline quiz will be visible on that page.

Tip

You can add a link to this page to your website menu or use the link to this new page in your marketing campaigns.

Embedding an Inline Quiz on a Specific Collection/Category Page

Option 1: In Collection Description

  1. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode, and Show Instructions for Legacy Themes to copy the HTML embed code.
  2. Embed Directly: Add the inline embed code to the HTML field of the collection description to display the quiz under the collection name.

Option 2: Through a New Collection Theme

  1. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode, and Show Instructions for Legacy Themes to copy the HTML embed code.
  2. Create Custom Collection Theme: Have a developer create a new theme template incorporating the quiz code, then apply this template to the desired collection page.
  1. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  2. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  3. Follow these instructions to enable HTML in category descriptions.
  4. Go back to your WordPress dashboard. Open WooCommerce> Products> Categories.
  5. Select a category and click Edit. Paste the code copied from the app in the description field.
  6. Save the changes.
  7. From now on, the inline quiz will be visible on that category page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  4. In your Magento dashbaord go to Catalog > Categories. Select a category.
  5. Open the Content tab. Click Edit with Page Builder.
  6. Select Elements > Rows and drag a row into the canvas.
  7. Next open Elements and pick HTML Code. Drag the HTML Code onto the Row.
  8. Click the gear icon to open HTML settings.
  9. Under Enter HTML, CSS or JavaScript code paste the HTML code copied from the app.
  10. Remember to save the changes.
  11. From now on, the inline quiz will be visible on that category page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  4. In BigCommerce, go to Products > Product Categories. Select a category and open it.
  5. Under Category Details > Description switch to the HTML editor.
  6. Paste the HTML code copied from the app.
  7. Save the changes.
  8. From now on, the inline quiz will be visible on that category page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Edit the inline quiz settings and click Get the code. Copy the HTML embed code.
  4. In your store customization options find the Product Categories menu and open the category settings.
  5. In the category description check for an HTML editor and paste the code copied from the app.
  6. (alternatively) In the category page editor find a Custom HTML element. In the element settings paste the code copied from the app.
  7. Save the changes.
  8. From now on, the inline quiz will be visible on that category page.

Fixing the Size of the Inline Quiz

To prevent the quiz from adjusting size based on content, manually set a fixed width and height in the quiz settings or embed code.

Option 1: Through Shopify Theme

  1. Navigate to Theme Customization: Go to Online Store > Themes in your Shopify dashboard. Click the Customize button for your active theme.
  2. Add Inline Quiz Section: Click + Add Section, then scroll to Apps and find Inline Quiz from Shop Quiz: Product Recommender. Select it to add to your homepage.
  3. Configure Quiz Settings: Click on the added quiz section to configure. Select the desired Quiz ID to embed and adjust settings like quiz height, disable auto-scroll, or fix quiz height for consistent results page height. Check the Fixed size option.
  4. Save Changes: Ensure all changes are saved before exiting the theme editor.

Option 2: Manual Embedding

  1. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode, and Show Instructions for Legacy Themes.
  2. Configure Quiz Settings: Set a desired quiz height and check the Fixed size option.
  3. Get new code: Click Get code and copy the new HTML embed code.
  4. Embed the Quiz: Paste the copied HTML code wherever you like on your website. Follow instructions on How to add an inline quiz on the Homepage, New Page or Collection/Category Page.
  1. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  2. Configure Quiz Settings: Set a desired quiz height and check the Fixed size option.
  3. Get new code: Click Get code and copy the new HTML embed code.
  4. Embed the Quiz: Paste the copied HTML code wherever you like on your website. Follow instructions on How to add an inline quiz on the Homepage, New Page or Collection/Category Page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Configure Quiz Settings: Set a desired quiz height and check the Fixed size option.
  4. Get new code: Click Get code and copy the new HTML embed code.
  5. Embed the Quiz: Paste the copied HTML code wherever you like on your website. Follow instructions on How to add an inline quiz on the Homepage, New Page or Collection/Category Page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Configure Quiz Settings: Set a desired quiz height and check the Fixed size option.
  4. Get new code: Click Get code and copy the new HTML embed code.
  5. Embed the Quiz: Paste the copied HTML code wherever you like on your website. Follow instructions on How to add an inline quiz on the Homepage, New Page or Collection/Category Page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Configure Quiz Settings: Set a desired quiz height and check the Fixed size option.
  4. Get new code: Click Get code and copy the new HTML embed code.
  5. Embed the Quiz: Paste the copied HTML code wherever you like on your website. Follow instructions on How to add an inline quiz on the Homepage, New Page or Collection/Category Page.

Preventing Autoscroll in Inline Quiz

Option 1: Through Shopify Theme

  1. Navigate to Theme Customization: Go to Online Store > Themes in your Shopify dashboard. Click the Customize button for your active theme.
  2. Add Inline Quiz Section: Click + Add Section, then scroll to Apps and find Inline Quiz from Shop Quiz: Product Recommender. Select it to add to your homepage.
  3. Configure Quiz Settings: Click on the added quiz section to configure. Select the desired Quiz ID to embed and adjust settings. Uncheck the Automatic Scroll into View option.
  4. Save Changes: Ensure all changes are saved before exiting the theme editor.

Option 2: Manual Adjustment

  1. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode, and Show Instructions for Legacy Themes.
  2. Get new code: Click Get code and copy the new HTML embed code.
  3. Adjust Embed Code: Add data-autoscroll="false" to the quiz's embed code to prevent automatic scrolling when the quiz is interacted with. For example:
    <div class="rh-widget rh-inline" data-url="https://admin.revenuehunt.com/public/quiz/dbqHqN" data-autoscroll="false" style="margin: 10px auto; width: 100%; height: 600px; display: flex;"></div>
    
  4. Embed the Quiz: Paste the adjusted HTML code wherever you like on your website.
  1. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  2. Get new code: Click Get code and copy the new HTML embed code.
  3. Adjust Embed Code: Add data-autoscroll="false" to the quiz's embed code to prevent automatic scrolling when the quiz is interacted with. For example:
    <div class="rh-widget rh-inline" data-url="https://admin.revenuehunt.com/public/quiz/dbqHqN" data-autoscroll="false" style="margin: 10px auto; width: 100%; height: 600px; display: flex;"></div>
    
  4. Embed the Quiz: Paste the adjusted HTML code wherever you like on your website. Follow instructions on How to add an inline quiz on the Homepage, New Page or Collection/Category Page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Get new code: Click Get code and copy the new HTML embed code.
  4. Adjust Embed Code: Add data-autoscroll="false" to the quiz's embed code to prevent automatic scrolling when the quiz is interacted with. For example:
    <div class="rh-widget rh-inline" data-url="https://admin.revenuehunt.com/public/quiz/dbqHqN" data-autoscroll="false" style="margin: 10px auto; width: 100%; height: 600px; display: flex;"></div>
    
  5. Embed the Quiz: Paste the adjusted HTML code wherever you like on your website. Follow instructions on How to add an inline quiz on the Homepage, New Page or Collection/Category Page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Get new code: Click Get code and copy the new HTML embed code.
  4. Adjust Embed Code: Add data-autoscroll="false" to the quiz's embed code to prevent automatic scrolling when the quiz is interacted with. For example:
    <div class="rh-widget rh-inline" data-url="https://admin.revenuehunt.com/public/quiz/dbqHqN" data-autoscroll="false" style="margin: 10px auto; width: 100%; height: 600px; display: flex;"></div>
    
  5. Embed the Quiz: Paste the adjusted HTML code wherever you like on your website. Follow instructions on How to add an inline quiz on the Homepage, New Page or Collection/Category Page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Inline Embed Code: From the quiz builder, click Share, select Inline mode.
  3. Get new code: Click Get code and copy the new HTML embed code.
  4. Adjust Embed Code: Add data-autoscroll="false" to the quiz's embed code to prevent automatic scrolling when the quiz is interacted with. For example:
    <div class="rh-widget rh-inline" data-url="https://admin.revenuehunt.com/public/quiz/dbqHqN" data-autoscroll="false" style="margin: 10px auto; width: 100%; height: 600px; display: flex;"></div>
    
  5. Embed the Quiz: Paste the adjusted HTML code wherever you like on your website. Follow instructions on How to add an inline quiz on the Homepage, New Page or Collection/Category Page.

By following these steps, you can successfully integrate an interactive inline quiz into your Shopify store.