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 RevenueHunt app.
- Familiarity with your store's theme customization options.
Embedding an Inline Quiz on the Homepage¶
Option 1: Through Shopify Theme¶
- Navigate to Theme Customization: Go to
Online Store > Themes
in your Shopify dashboard. Click theCustomize
button for your active theme. - Add Inline Quiz Section: Click
+ Add Section
, then scroll toApps
and findInline Quiz from RevenueHunt
. Select it to add to your homepage. - 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.
- Save Changes: Ensure all changes are saved before exiting the theme editor.
Option 2: Manual Embedding¶
- Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode, andShow Instructions for Legacy Themes
to copy the HTML embed code. - Add Custom HTML Section: In the Shopify theme customizer, click
Add section
then selectCustom content
. Remove default content and add aCustom HTML
section. - Embed the Quiz: Paste the copied HTML code into the
HTML
input of the Custom HTML section and save.
Warning
Version 2 of the RevenueHunt app is not yet available. It is currently in the beta testing phase. Learn more here.
- Navigate to Theme Customization: Go to
Online Store > Themes
in your Shopify dashboard. Click theCustomize
button for your active theme. -
Add Inline Quiz Section: Click
+ Add Section
, then scroll toApps
and findV2 - Inline Quiz from RevenueHunt
. Select it to add to your homepage.The default quiz for your store will be rendered. If you’ve configured Markets, the default quiz for that specific market will be shown instead.
-
Configure Quiz Settings: Click on the added quiz section to configure. Adjust settings like quiz height, disable auto-scroll, or fix quiz height for consistent results page height.
- Save Changes: Ensure all changes are saved before exiting the theme editor.
- Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - In WordPress, open
Pages
and find the Front Page. ClickEdit
to open the page. - In the editor, find a
Custom HTML
element and add it to the page in a place where you want the quiz to show. - In the element, paste the code copied from the app.
- Save the changes and
update
the page. - From now on, the inline quiz will be visible on the main page.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - In your Magento dashboard go to
Content
>Blocks
. ClickAdd New Block
. - Edit the Block Title, Identifier and Store View and click
Edit with Page Builder
. - Select
Elements
>Rows
and drag a row into the canvas. - Next open
Elements
and pickHTML Code
. Drag theHTML Code
onto the Row. - Click the gear icon to open
HTML settings
. - Under
Enter HTML, CSS or JavaScript code
paste the HTML code copied from the app. - Remember to save the changes.
- From now on, the inline quiz will be visible on the main page.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - In BigCommerce, go to
Storefront
>Web Pages
. Find the main page. - Switch to the
HTML
editor. Find the place where you want to add the quiz and paste the HTML code copied from the app. - Save the changes.
- From now on, the inline quiz will be visible on the main page.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - In your store customization options find the main page.
- 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. - Save the changes.
- From now on, the inline quiz will be visible on the main page.
Embedding an Inline Quiz on a New Page¶
- Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode, andShow Instructions for Legacy Themes
to copy the HTML embed code. - Insert Quiz into Page: Navigate to
Online Store > Pages
and select the page to embed the quiz. ClickShow HTML
and paste the embed code into the code editor. - 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.
Warning
Version 2 of the RevenueHunt app is not yet available. It is currently in the beta testing phase. Learn more here.
-
Navigate to Theme Customization: Go to
Online Store > Themes
in your Shopify dashboard. -
Assign a Theme to a Specific Page (Using Templates): Shopify doesn't support applying different themes to individual pages, but you can create custom templates within a theme to give specific pages a unique layout.
-
Create a New Page Template. From the Themes page, click
Actions
next to your published theme. SelectEdit code
. -
In the code editor, find the
Templates
folder. -
Click
Add a new template.
Choose Page from the dropdown. Name your template (e.g., custom-page). -
Customize the code as needed. Click
Save
.
-
-
Assign the Template to a Page : Go to
Online Store > Pages
. ClickAdd page
or select an existing page to edit. In the Template section on the right, choose your new template from the Theme template dropdown. ClickSave
and thenView Template
. -
Add Inline Quiz Section: Click
+ Add Section
, then scroll toApps
and findV2 - Inline Quiz from RevenueHunt
. Select it to add to your page template.The default quiz for your store will be rendered. If you’ve configured Markets, the default quiz for that specific market will be shown instead.
-
Configure Quiz Settings: Click on the added quiz section to configure. Adjust settings like quiz height, disable auto-scroll, or fix quiz height for consistent results page height.
- Save Changes: Ensure all changes are saved before exiting the theme editor. Now, that page will use the custom template with the quiz you created, allowing for a different layout or style within the same theme.
- Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - In WordPress, open
Pages
and clickAdd New Page
. - 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. - In the element, paste the code copied from the app.
- Save the changes and
update
the page. - From now on, the inline quiz will be visible on that page.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - In your Magento dashbaord go to
Content
>Pages
. ClickAdd New Page
. - Edit the Page Title and open the
Content
tab. ClickEdit with Page Builder
. - Select
Elements
>Rows
and drag a row into the canvas. - Next open
Elements
and pickHTML Code
. Drag theHTML Code
onto the Row. - Click the gear icon to open
HTML settings
. - Under
Enter HTML, CSS or JavaScript code
paste the HTML code copied from the app. - Remember to save the changes.
- From now on, the inline quiz will be visible on that page.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - In BigCommerce, go to
Storefront
>Web Pages
. ClickCreate a Web Page
. - Under
Web Page Details
>Page Content
switch to theHTML
editor. Paste the HTML code copied from the app. - Save the changes.
- From now on, the inline quiz will be visible on that page.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - In your store customization options find the
Pages
menu and create a new page. - In the page editor find a
Custom HTML
element. In the element settings paste the code copied from the app. - Save the changes.
- 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¶
- Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode, andShow Instructions for Legacy Themes
to copy the HTML embed code. - 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¶
- Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode, andShow Instructions for Legacy Themes
to copy the HTML embed code. - 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.
Coming Soon
- Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - Follow these instructions to enable HTML in category descriptions.
- Go back to your WordPress dashboard. Open
WooCommerce
>Products
>Categories
. - Select a category and click
Edit
. Paste the code copied from the app in the description field. - Save the changes.
- From now on, the inline quiz will be visible on that category page.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - In your Magento dashbaord go to
Catalog
>Categories
. Select a category. - Open the
Content
tab. ClickEdit with Page Builder
. - Select
Elements
>Rows
and drag a row into the canvas. - Next open
Elements
and pickHTML Code
. Drag theHTML Code
onto the Row. - Click the gear icon to open
HTML settings
. - Under
Enter HTML, CSS or JavaScript code
paste the HTML code copied from the app. - Remember to save the changes.
- From now on, the inline quiz will be visible on that category page.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - In BigCommerce, go to
Products
>Product Categories
. Select a category and open it. - Under
Category Details
>Description
switch to theHTML
editor. - Paste the HTML code copied from the app.
- Save the changes.
- From now on, the inline quiz will be visible on that category page.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Edit the inline quiz settings and click
Get the code
. Copy the HTML embed code. - In your store customization options find the
Product Categories
menu and open the category settings. - In the category description check for an HTML editor and paste the code copied from the app.
- (alternatively) In the category page editor find a
Custom HTML
element. In the element settings paste the code copied from the app. - Save the changes.
- 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¶
- Navigate to Theme Customization: Go to
Online Store > Themes
in your Shopify dashboard. Click theCustomize
button for your active theme. - Add Inline Quiz Section: Click
+ Add Section
, then scroll toApps
and findInline Quiz from RevenueHunt
. Select it to add to your homepage. - 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. - Save Changes: Ensure all changes are saved before exiting the theme editor.
Option 2: Manual Embedding¶
- Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode, andShow Instructions for Legacy Themes
. - Configure Quiz Settings: Set a desired quiz height and check the
Fixed size
option. - Get new code: Click
Get code
and copy the new HTML embed code. - 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.
Warning
Version 2 of the RevenueHunt app is not yet available. It is currently in the beta testing phase. Learn more here.
- Navigate to Theme Customization: Go to
Online Store > Themes
in your Shopify dashboard. Click theCustomize
button for your active theme. - Add Inline Quiz Section: Click
+ Add Section
, then scroll toApps
and findV2 -Inline Quiz from RevenueHunt
. Select it to add to your homepage. - 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. - Save Changes: Ensure all changes are saved before exiting the theme editor.
- Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Configure Quiz Settings: Set a desired quiz height and check the
Fixed size
option. - Get new code: Click
Get code
and copy the new HTML embed code. - 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.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Configure Quiz Settings: Set a desired quiz height and check the
Fixed size
option. - Get new code: Click
Get code
and copy the new HTML embed code. - 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.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Configure Quiz Settings: Set a desired quiz height and check the
Fixed size
option. - Get new code: Click
Get code
and copy the new HTML embed code. - 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.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Configure Quiz Settings: Set a desired quiz height and check the
Fixed size
option. - Get new code: Click
Get code
and copy the new HTML embed code. - 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¶
- Navigate to Theme Customization: Go to
Online Store > Themes
in your Shopify dashboard. Click theCustomize
button for your active theme. - Add Inline Quiz Section: Click
+ Add Section
, then scroll toApps
and findInline Quiz from RevenueHunt
. Select it to add to your homepage. - 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. - Save Changes: Ensure all changes are saved before exiting the theme editor.
Option 2: Manual Adjustment¶
- Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode, andShow Instructions for Legacy Themes
. - Get new code: Click
Get code
and copy the new HTML embed code. - 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: - Embed the Quiz: Paste the adjusted HTML code wherever you like on your website.
Warning
Version 2 of the RevenueHunt app is not yet available. It is currently in the beta testing phase. Learn more here.
- Navigate to Theme Customization: Go to
Online Store > Themes
in your Shopify dashboard. Click theCustomize
button for your active theme. - Add Inline Quiz Section: Click
+ Add Section
, then scroll toApps
and findV2 - Inline Quiz from RevenueHunt
. Select it to add to your homepage. - 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. - Save Changes: Ensure all changes are saved before exiting the theme editor.
- Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Get new code: Click
Get code
and copy the new HTML embed code. - 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: - 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.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Get new code: Click
Get code
and copy the new HTML embed code. - 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: - 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.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Get new code: Click
Get code
and copy the new HTML embed code. - 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: - 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.
- Add the following embed.js script before the
</head>
close tag in the header. Without it, the quiz won't be loaded on your website. - Obtain Inline Embed Code: From the quiz builder, click
Share
, selectInline
mode. - Get new code: Click
Get code
and copy the new HTML embed code. - 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: - 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.