How to Embed an Inline Quiz on Your Store¶
An inline quiz sits inside a page, as part of it, rather than opening over the top. Put it on your homepage, on a landing page of its own, or on a collection page.
Before you start
You need a quiz built in the RevenueHunt app, and access to your theme editor.
On this version the quiz is a theme section, so there is no code to copy.
-
Open the Shopify theme editor.
-
Add a section to the page or template you want, and pick
Inline Quizfrom theAppsgroup.
On this version the quiz is a theme section, so there is no code to copy.
-
Open the Shopify theme editor.
-
Add a section to the page or template you want, and pick
Inline Quizfrom theAppsgroup.
On this version you paste an embed code into the page.
-
Generate the embed code from the
Sharesection of the app. -
Paste it into an HTML element on the page where you want the quiz.
On this version you paste an embed code into the page, and the script has to be on the page too.
-
Add the
embed.jsscript to your store header. -
Generate the embed code from the
Sharesection of the app. -
Paste it into an HTML element on the page where you want the quiz.
On this version you paste an embed code into the page, and the script has to be on the page too.
-
Add the
embed.jsscript to your store header. -
Generate the embed code from the
Sharesection of the app. -
Paste it into an HTML element on the page where you want the quiz.
On this version you paste an embed code into the page, and the script has to be on the page too.
-
Add the
embed.jsscript to your store header. -
Generate the embed code from the
Sharesection of the app. -
Paste it into an HTML element on the page where you want the quiz.
Embed an inline quiz on the homepage¶
Shopify 1.0 themes cannot run this
A quiz built in the Built for Shopify version needs an app section, and app sections are an Online Store 2.0 feature. A Shopify 1.0 theme does not support them.
Upgrade to an Online Store 2.0 theme to use them.
-
In your Shopify admin, go to
Online Store > Themesand clickCustomizeon your live theme. -
Click
Add section, open theAppsgroup, and addInline Quizfrom RevenueHunt. Your default quiz renders straight away.
-
Click the quiz section and set it up.

Setting What it does Quiz heightThe starting height. The first question always uses it, which is a Shopify requirement that stops the page jumping as it loads Quiz height (unit)Pixels (px)by default.Viewport height percentage (vh)is the alternativeFixed heightHolds that height for the whole quiz. Off means the quiz grows to fit each question after the first Full width quizSpans the quiz across the screen Auto-scroll on retake quizWhere the page scrolls when a customer retakes the quiz: Disabled,Top of the pageorTop of the quizAuto-scroll on question changeThe same, each time the customer moves to another question Quiz ID (optional)The quiz to show. Leave it empty for your default quiz Manage appOpens the RevenueHunt dashboard -
Click
Save. The quiz then shows on every page using this template.
-
Open the page in your store and check the quiz is there.
Which quiz appears
Your default quiz appears, unless you name another one.
With Shopify Markets set up, the default quiz for that market appears instead.
To show a particular quiz, set the Quiz ID. See Embed a specific quiz.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
With the theme section
-
In your Shopify admin, go to
Online Store > Themesand clickCustomizeon your live theme. -
Click
Add section, open theAppsgroup, and addInline Quizfrom RevenueHunt. -
Click the quiz section, pick the Quiz ID, and set the height, the fixed height and the auto-scroll.
-
Click
Save. -
Open the page in your store and check the quiz is there.
With pasted code
-
Open
Sharein the quiz builder, pickInline, thenShow Instructions for Legacy Themes. -
Click
Get the codeand copy the HTML. -
In the theme editor, click
Add sectionand pickCustom content. Remove the default content and add aCustom HTMLblock. -
Paste the code into the
HTMLinput, then save. -
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
In your WordPress admin, open
Pages, find your front page and clickEdit. -
Add a
Custom HTMLblock where you want the quiz. -
Paste the code into that block.
-
Click
Update. -
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
In your Magento admin, go to
Content > Blocksand clickAdd New Block. -
Fill in the block title, identifier and store view, then click
Edit with Page Builder. -
Drag a row in from
Elements > Rows, then dragHTML Codeonto that row. -
Click the gear icon to open
HTML settings, then paste the code underEnter HTML, CSS or JavaScript code. -
Save the block.
-
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
In BigCommerce, go to
Storefront > Web Pagesand open your main page. -
Switch to the
HTMLeditor and paste the code in. -
Save the page.
-
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
In your store editor, open the main page.
-
Find a
Custom HTMLelement and paste the code into its settings. -
Save the page.
-
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
Embed an inline quiz on a dedicated landing page¶
Shopify 1.0 themes cannot run this
A quiz built in the Built for Shopify version needs an app section, and app sections are an Online Store 2.0 feature. A Shopify 1.0 theme does not support them.
Upgrade to an Online Store 2.0 theme to use them.
-
In your Shopify admin, go to
Online Store > Themesand clickCustomizeon your live theme. -
Click the
Templatesmenu in the header.
-
Go to
Pages, clickCreate template, and name it, such asquiz-page. SetBased onto your default page template.
-
Click
Add section, open theAppsgroup, and addInline Quizfrom RevenueHunt. Your default quiz renders straight away.
-
Click the quiz section and set it up.

Setting What it does Quiz heightThe starting height. The first question always uses it, which is a Shopify requirement that stops the page jumping as it loads Quiz height (unit)Pixels (px)by default.Viewport height percentage (vh)is the alternativeFixed heightHolds that height for the whole quiz. Off means the quiz grows to fit each question after the first Full width quizSpans the quiz across the screen Auto-scroll on retake quizWhere the page scrolls when a customer retakes the quiz: Disabled,Top of the pageorTop of the quizAuto-scroll on question changeThe same, each time the customer moves to another question Quiz ID (optional)The quiz to show. Leave it empty for your default quiz Manage appOpens the RevenueHunt dashboard -
Go to
Online Store > Pagesand clickAdd page, or open an existing page. -
Under
Template, pick the template you just built, then clickSave.
-
Click
View Templateand check the quiz is on the page.
Which quiz appears
Your default quiz appears, unless you name another one.
With Shopify Markets set up, the default quiz for that market appears instead.
To show a particular quiz, set the Quiz ID. See Embed a specific quiz.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Open
Sharein the quiz builder, pickInline, thenShow Instructions for Legacy Themes. -
Click
Get the codeand copy the HTML. -
Go to
Online Store > Pagesand open the page you want the quiz on, or create one. -
Click
Show HTMLand paste the code into the editor. -
Click
Save. -
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
In your WordPress admin, open
Pagesand clickAdd New Page. -
Give the page a title, then add a
Custom HTMLblock where you want the quiz. -
Paste the code into that block.
-
Click
Update. -
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
In your Magento admin, go to
Content > Pagesand clickAdd New Page. -
Give the page a title, open the
Contenttab, and clickEdit with Page Builder. -
Drag a row in from
Elements > Rows, then dragHTML Codeonto that row. -
Click the gear icon to open
HTML settings, then paste the code underEnter HTML, CSS or JavaScript code. -
Save the page.
-
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
In BigCommerce, go to
Storefront > Web Pagesand clickCreate a Web Page. -
Under
Web Page Details > Page Content, switch to theHTMLeditor and paste the code in. -
Save the page.
-
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
In your store editor, open the
Pagesmenu and create a new page. -
Find a
Custom HTMLelement and paste the code into its settings. -
Save the page.
-
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
Use the page address
A landing page gives you an ordinary URL. Put it in your store menu, your email campaigns, your social posts or your ads.
Embed an inline quiz on a specific collection/category¶
Shopify 1.0 themes cannot run this
A quiz built in the Built for Shopify version needs an app section, and app sections are an Online Store 2.0 feature. A Shopify 1.0 theme does not support them.
Upgrade to an Online Store 2.0 theme to use them.
-
In your Shopify admin, go to
Online Store > Themesand clickCustomize. -
Open the template menu in the header, go to
Collections, and clickCreate template. -
Click
Add section, open theAppsgroup, and addInline Quizfrom RevenueHunt. -
Click the quiz section and set it up.

Setting What it does Quiz heightThe starting height. The first question always uses it, which is a Shopify requirement that stops the page jumping as it loads Quiz height (unit)Pixels (px)by default.Viewport height percentage (vh)is the alternativeFixed heightHolds that height for the whole quiz. Off means the quiz grows to fit each question after the first Full width quizSpans the quiz across the screen Auto-scroll on retake quizWhere the page scrolls when a customer retakes the quiz: Disabled,Top of the pageorTop of the quizAuto-scroll on question changeThe same, each time the customer moves to another question Quiz ID (optional)The quiz to show. Leave it empty for your default quiz Manage appOpens the RevenueHunt dashboard -
Click
Save. -
Apply the template to a collection. In
Products > Collections, open the collection and pick the template underTheme template. -
Open that collection page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
In the collection description
-
Open
Sharein the quiz builder, pickInline, thenShow Instructions for Legacy Themes. -
Click
Get the codeand copy the HTML. -
Paste the code into the HTML field of the collection description. The quiz then appears under the collection name.
-
Open that collection page in your store and check the quiz is there.
In a collection template
-
Open
Sharein the quiz builder, pickInline, thenShow Instructions for Legacy Themes. -
Click
Get the codeand copy the HTML. -
Ask a developer to build a collection template that holds the code, then apply that template to the collection.
-
Open that collection page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
Turn on HTML in category descriptions. See the WooCommerce guide to allowing HTML in category descriptions.
-
In your WordPress admin, open
WooCommerce > Products > Categories. -
Open a category, click
Edit, and paste the code into the description field. -
Save the category.
-
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
In your Magento admin, go to
Catalog > Categoriesand pick a category. -
Open
Contentand clickEdit with Page BuilderunderDescription. -
Drag a row in from
Elements > Rows, then dragHTML Codeonto that row. -
Click the gear icon to open
HTML settings, then paste the code underEnter HTML, CSS or JavaScript code. -
Save the category.
-
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
In BigCommerce, go to
Products > Product Categoriesand open a category. -
Under
Category Details > Description, switch to theHTMLeditor and paste the code in. -
Save the category.
-
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Adjust the inline settings, then click
Get the code. Copy the HTML it gives you. -
In your store editor, open the collection page you want the quiz on.
-
Find a
Custom HTMLelement and paste the code into its settings. -
Save the page.
-
Open the page in your store and check the quiz is there.
One quiz per page
Embed a single quiz on a page. Two on the same page conflict, and neither loads reliably.
FAQs¶
Embed a specific quiz¶
An inline quiz shows your default quiz. To show another one, put its ID in the Quiz ID (optional) field of the Inline Quiz section settings.

Finding the Quiz ID
In the Dashboard, click the ... beside the quiz and select Copy Quiz ID. The ID is case-sensitive.
Shopify Markets
With Shopify Markets set up, the default quiz for the customer's market appears instead of your store default.
Put the Quiz ID in the Quiz ID field of the Inline Quiz (Legacy) section settings, then save.

If you pasted the code by hand instead, generate it from the Share tab of the quiz you want. The ID is already in the code, as data-url.
Finding the Quiz ID
In the Dashboard, click the ... beside the quiz and select Copy Quiz ID. The ID is case-sensitive.
Generate the embed code from the Share tab of the quiz you want to show. The quiz is named in the code itself, as data-url.
Finding the Quiz ID
In the Dashboard, click the ... beside the quiz and select Copy Quiz ID. The ID is case-sensitive.
Generate the embed code from the Share tab of the quiz you want to show. The quiz is named in the code itself, as data-url.
Finding the Quiz ID
In the Dashboard, click the ... beside the quiz and select Copy Quiz ID. The ID is case-sensitive.
Fixing the size of the inline quiz¶
By default the quiz starts at the height you set, then grows to fit each question. Fix the height and it stays as it is throughout.
-
In your Shopify admin, go to
Online Store > Themesand clickCustomize. -
Click the
Inline Quizsection already on the page. -
Set
Quiz height, and pick the unit underQuiz height (unit).
-
Turn
Fixed heighton. The quiz then keeps that height for every question. -
Click
Save, then open the page and check the height holds as you answer.
The first question always uses the set height
Shopify requires it, so the page does not jump about as it loads. Without Fixed height, the quiz expands to fit from the second question onward.
With the theme section
-
In your Shopify admin, go to
Online Store > Themesand clickCustomize. -
Click the
Inline Quizsection already on the page. -
Set the quiz height and check
Fixed size. -
Click
Save, then open the page and check the height holds as you answer.
With pasted code
-
Set the quiz height and check
Fixed size. -
Click
Get codeand copy the new HTML. -
Replace the old embed code on your page with the new one, on the homepage, a landing page or a collection page.
-
Open the page and check the height holds as you answer.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the quiz height and check
Fixed size. -
Click
Get codeand copy the new HTML. -
Replace the old embed code on your page with the new one, on the homepage, a landing page or a collection page.
-
Open the page and check the height holds as you answer.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the quiz height and check
Fixed size. -
Click
Get codeand copy the new HTML. -
Replace the old embed code on your page with the new one, on the homepage, a landing page or a collection page.
-
Open the page and check the height holds as you answer.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the quiz height and check
Fixed size. -
Click
Get codeand copy the new HTML. -
Replace the old embed code on your page with the new one, on the homepage, a landing page or a collection page.
-
Open the page and check the height holds as you answer.
Preventing auto-scroll in inline quiz¶
Auto-scroll moves the page as the customer answers, so the quiz stays in view. Turn it off to leave the page where it is.
This version has two auto-scroll settings, and both are Disabled by default, so there is usually nothing to turn off.
-
In your Shopify admin, go to
Online Store > Themesand clickCustomize. -
Click the
Inline Quizsection already on the page. -
Set
Auto-scroll on retake quizandAuto-scroll on question changetoDisabled.The alternatives are
Top of the pageandTop of the quiz.
-
Click
Save, then take the quiz and check the page stays put.
With the theme section
-
In your Shopify admin, go to
Online Store > Themesand clickCustomize. -
Click the
Inline Quizsection already on the page. -
Uncheck
Automatic Scroll into View. -
Click
Save, then take the quiz and check the page stays put.
With pasted code
-
Click
Get codeand copy the HTML. -
Add
data-autoscroll="false"to the quiz element. -
Replace the old embed code on your page with the edited one, on the homepage, a landing page or a collection page.
-
Take the quiz and check the page stays put.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Click
Get codeand copy the HTML. -
Add
data-autoscroll="false"to the quiz element. -
Replace the old embed code on your page with the edited one, on the homepage, a landing page or a collection page.
-
Take the quiz and check the page stays put.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Click
Get codeand copy the HTML. -
Add
data-autoscroll="false"to the quiz element. -
Replace the old embed code on your page with the edited one, on the homepage, a landing page or a collection page.
-
Take the quiz and check the page stays put.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Click
Get codeand copy the HTML. -
Add
data-autoscroll="false"to the quiz element. -
Replace the old embed code on your page with the edited one, on the homepage, a landing page or a collection page.
-
Take the quiz and check the page stays put.
The quiz you are looking for does not exist¶
This error means the quiz cannot be found, either because it is unpublished or because the embed points at the wrong one.

Shopify 1.0 themes cannot run this
A quiz built in the Built for Shopify version needs an app section, and app sections are an Online Store 2.0 feature. A Shopify 1.0 theme does not support them.
Upgrade to an Online Store 2.0 theme to use them.
-
Open the Quiz Builder and check the quiz is published.
-
Check you added
Inline Quizand notInline Quiz (Legacy). The legacy section serves quizzes from the legacy app, so it cannot find a quiz built in this version.
-
Click the
Inline Quizsection and check theQuiz ID (optional)field. Leave it empty for your default quiz, or paste the right ID. The ID is case-sensitive. -
Click
Save, then reload the page.
-
Open the Quiz Builder and check the quiz is published, with the top-right
Publishbutton. -
Copy the
Quiz IDfrom Quiz settings. The ID is case-sensitive. -
Check the
Inline Quiz (Legacy)section holds that ID, or that your pasted code carries the matchingdata-url.
-
Click
Save, then reload the page.
-
Open the Quiz Builder and check the quiz is published, with the top-right
Publishbutton. -
Regenerate the code from
Shareand paste it in again. An old code can point at a quiz that has since changed. -
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Save the page, then reload it.
-
Open the Quiz Builder and check the quiz is published, with the top-right
Publishbutton. -
Regenerate the code from
Shareand paste it in again. An old code can point at a quiz that has since changed. -
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Save the page, then reload it.
-
Open the Quiz Builder and check the quiz is published, with the top-right
Publishbutton. -
Regenerate the code from
Shareand paste it in again. An old code can point at a quiz that has since changed. -
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Save the page, then reload it.
-
Open the Quiz Builder and check the quiz is published, with the top-right
Publishbutton. -
Regenerate the code from
Shareand paste it in again. An old code can point at a quiz that has since changed. -
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Save the page, then reload it.
This article explains how to put a quiz inside a page of your store, and how to control its height and its scrolling.