How to Add a Quiz Popup via a Chat-Like Button on Your Store¶
A chat button sits in a corner of your store, looking like a support widget. A customer clicks it and the quiz opens in a popup.
Unlike an automatic popup, it waits to be clicked, so it asks nothing of a customer who is not interested.
Before you start
You need a quiz built in the RevenueHunt app, and access to your theme editor.
Chat button on the homepage¶
Shopify 1.0 themes cannot run this
A quiz built in the Built for Shopify version needs an app embed or an app section, and both are Online Store 2.0 features. A Shopify 1.0 theme supports neither.
Upgrade to an Online Store 2.0 theme to use them.
-
In your Shopify admin, go to
Online Store > Themesand clickCustomizeon your live theme. -
With the home page template open, click
Add section, open theAppstab, and addChat Button Quiz.
-
Set up the button.

Setting What it does Chat button colorThe color of the button itself Chat icon colorThe color of the icon inside it Chat positionWhich corner the button sits in Hide after quiz completionTakes the button away once the customer reaches the results page Show notification dotPuts a small red dot on the icon Greeting messageThe line shown beside the icon. Leave it empty to hide it Popup width (% of screen)How wide the quiz opens Popup height (% of screen)How tall the quiz opens Popup z-indexWhich other elements the quiz sits in front of Quiz ID (optional)The quiz to open. Leave it empty for your default quiz -
Click
Save. -
Open your store and click the chat button. The quiz should open in a popup.
Which quiz opens
Your default quiz opens, unless you name another one.
With Shopify Markets set up, the default quiz for that market opens instead.
To open a particular quiz, set the Quiz ID. See Open a specific quiz.
With the app embed
-
Copy your Quiz ID. In the Dashboard, click the
...beside the quiz and copy the ID. -
Go to
Online Store > Themes, clickCustomize, then openApp embeds. -
Turn on
Chat Button Quiz (Legacy)and paste the Quiz ID into its settings.The plain
Chat Button Quizembed serves the Built for Shopify version. A legacy quiz opened through it reports that it does not exist. -
Adjust the colors, greeting message and popup size.
-
Click
Save. -
Open your store and click the chat button. The quiz should open in a popup.
With pasted code
-
Open
Sharein the quiz builder, pickChat button, thenShow Instructions for Legacy Themes. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
In
Themes > Customize, add aCustom contentsection, then aCustom HTMLorCustom liquidblock. -
Paste the code into that block.
-
Click
Save. -
Open your store and click the chat button. The quiz should open in a popup.
-
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
In your WordPress admin, open
Pages, find your front page and clickEdit. -
Add a
Custom HTMLblock and paste the code into it. -
Click
Update. -
Open your store and click the chat button. The quiz should open in a popup.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get 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 your store and click the chat button. The quiz should open in a popup.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get 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 your store and click the chat button. The quiz should open in a popup.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get 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 your store and click the chat button. The quiz should open in a popup.
Chat button on all pages¶
Shopify 1.0 themes cannot run this
A quiz built in the Built for Shopify version needs an app embed or an app section, and both are Online Store 2.0 features. A Shopify 1.0 theme supports neither.
Upgrade to an Online Store 2.0 theme to use them.
-
In your Shopify admin, go to
Online Store > Themesand clickCustomizeon your live theme. -
Open
App embedsand turn onChat Button Quiz. LeaveChat Button Quiz (Legacy)off. That one serves quizzes from the legacy app.
-
Set up the button.

Setting What it does Chat button colorThe color of the button itself Chat icon colorThe color of the icon inside it Chat positionWhich corner the button sits in Hide after quiz completionTakes the button away once the customer reaches the results page Show notification dotPuts a small red dot on the icon Greeting messageThe line shown beside the icon. Leave it empty to hide it Popup width (% of screen)How wide the quiz opens Popup height (% of screen)How tall the quiz opens Popup z-indexWhich other elements the quiz sits in front of Quiz ID (optional)The quiz to open. Leave it empty for your default quiz -
Click
Save. -
Open your store and click the chat button. The quiz should open in a popup.
The button now runs on every page that uses this theme.
Which quiz opens
Your default quiz opens, unless you name another one.
With Shopify Markets set up, the default quiz for that market opens instead.
To open a particular quiz, set the Quiz ID. See Open a specific quiz.
-
Open
Sharein the quiz builder, pickChat button, thenShow Instructions for Legacy Themes. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
Go to
Online Store > Themesand clickActions > Edit code. -
Open
theme.liquidorfooter.liquid, and Paste the code just before the closing</body>tag, so it loads on every page.** -
Click
Save. -
Open your store and click the chat button. The quiz should open in a popup.
-
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
In your WordPress admin, open
Appearance > Theme File Editorand selectfooter.php. -
Paste the code just before the closing
</body>tag, so it loads on every page. -
Click
Update File. -
Open your store and click the chat button. The quiz should open in a popup.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
Open the footer template of your Magento theme.
-
Paste the code just before the closing
</body>tag, so it loads on every page. -
Save the template, then deploy the static content and flush the cache.
-
Open your store and click the chat button. The quiz should open in a popup.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
Go to
Storefront > My Themes, thenAdvanced > Edit Theme Files. -
Open
footer.htmlunderTemplates, and Paste the code just before the closing</body>tag, so it loads on every page. -
Save the file and deploy the theme.
-
Open your store and click the chat button. The quiz should open in a popup.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
In your store editor, open your theme footer.
-
Paste the code just before the closing
</body>tag, so it loads on every page. -
Save the theme.
-
Open your store and click the chat button. The quiz should open in a popup.
Chat button on a specific page¶
Shopify 1.0 themes cannot run this
A quiz built in the Built for Shopify version needs an app embed or an app section, and both are Online Store 2.0 features. A Shopify 1.0 theme supports neither.
Upgrade to an Online Store 2.0 theme to use them.
-
In your Shopify admin, go to
Online Store > Themesand clickCustomize. -
Open the page template menu and pick the template you want the button on, or create a new one.
-
Click
Add section, open theAppstab, and addChat Button Quiz.

-
Set up the button.

Setting What it does Chat button colorThe color of the button itself Chat icon colorThe color of the icon inside it Chat positionWhich corner the button sits in Hide after quiz completionTakes the button away once the customer reaches the results page Show notification dotPuts a small red dot on the icon Greeting messageThe line shown beside the icon. Leave it empty to hide it Popup width (% of screen)How wide the quiz opens Popup height (% of screen)How tall the quiz opens Popup z-indexWhich other elements the quiz sits in front of Quiz ID (optional)The quiz to open. Leave it empty for your default quiz -
Click
Save. The button now shows on every page using this template. -
Apply the template to your page. In
Online Store > Pages, open the page, or clickAdd pageto make one. Set its template to the one you just built, set the visibility toVisible, and save. -
Open your store and click the chat button. The quiz should open in a popup.
Which quiz opens
Your default quiz opens, unless you name another one.
With Shopify Markets set up, the default quiz for that market opens instead.
To open a particular quiz, set the Quiz ID. See Open a specific quiz.
-
Open
Sharein the quiz builder, pickChat button, thenShow Instructions for Legacy Themes. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
In Shopify, go to
Online Store > Pages, open the page, clickShow HTML, and paste the code in. -
Click
Save. -
Open your store and click the chat button. The quiz should open in a popup.
-
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
In your WordPress admin, open
Pages, find the page you want the button on and clickEdit. -
Add a
Custom HTMLblock and paste the code into it. -
Click
Update. -
Open your store and click the chat button. The quiz should open in a popup.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
In your Magento admin, go to
Content > Pagesand open the page, or clickAdd New Page. -
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 your store and click the chat button. The quiz should open in a popup.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
In BigCommerce, go to
Storefront > Web Pagesand open the page, or clickCreate a Web Page. -
Under
Web Page Details > Page Content, switch to theHTMLeditor and paste the code in. -
Save the page.
-
Open your store and click the chat button. The quiz should open in a popup.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Open
Sharein the quiz builder and pickChat button. -
Set the colors, greeting message and popup size, then click
Get code. Copy the HTML it gives you. -
In your store editor, open the page you want the button on.
-
Find a
Custom HTMLelement and paste the code into its settings. -
Save the page.
-
Open your store and click the chat button. The quiz should open in a popup.
FAQs¶
Open a specific quiz¶
A chat button opens your default quiz. To open another one, put its ID in the Quiz ID (optional) field of the Chat Button Quiz settings in the theme editor.

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 opens instead of your store default.
Generate the chat button code from the Share tab of the quiz you want to open, then use that code. The quiz ID is baked into it.
Generate the chat button code from the Share tab of the quiz you want to open, then use that code. The quiz ID is baked into it.
Generate the chat button code from the Share tab of the quiz you want to open, then use that code. The quiz ID is baked into it.
Generate the chat button code from the Share tab of the quiz you want to open, then use that code. The quiz ID is baked into it.
Generate the chat button code from the Share tab of the quiz you want to open, then use that code. The quiz ID is baked into it.
The quiz you are looking for does not exist¶

Shopify 1.0 themes cannot run this
A quiz built in the Built for Shopify version needs an app embed or an app section, and both are Online Store 2.0 features. A Shopify 1.0 theme supports neither.
Upgrade to an Online Store 2.0 theme to use them.
This error means the button is being served by the embed for the other version of the app.
-
Go to
Online Store > Themes > Customize > App embedsand check which chat embed is on. For a quiz built here,Chat Button Quizis the right one.
-
Turn
Chat Button Quiz (Legacy)off and turnChat Button Quizon. The legacy embed serves quizzes from the legacy app, so it cannot find a quiz built in this version. -
Click
Save, then reload your store.
This error means the button cannot find the quiz, either because it is unpublished or because the wrong embed is on.
-
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. -
Go to
Online Store > Themes > Customize > App embedsand turn onChat Button Quiz (Legacy). The plainChat Button Quizembed serves quizzes from the Built for Shopify version, so it cannot find a legacy quiz. -
Paste the Quiz ID into the
Quiz IDfield.
-
Click
Save, then reload the page.
This error means the button cannot find the quiz.
-
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. -
Check the
embed.jsscript is on the page. Add it through a custom HTML element if it is missing. -
Save the page, then reload it.
This error means the button cannot find the quiz.
-
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. -
Check the
embed.jsscript is on the page. Add it through a custom HTML element if it is missing. -
Save the page, then reload it.
This error means the button cannot find the quiz.
-
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. -
Check the
embed.jsscript is on the page. Add it through a custom HTML element if it is missing. -
Save the page, then reload it.
This error means the button cannot find the quiz.
-
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. -
Check the
embed.jsscript is on the page. Add it through a custom HTML element if it is missing. -
Save the page, then reload it.
This article explains how to add a chat button that opens your quiz. It also covers where to run it, and what to check when it does not appear.