How to Set Up Automatic Popups¶
An automatic popup opens the quiz on its own, a few seconds after the customer arrives. You choose where it runs: the home page, one page, or every page.
How often a customer sees it
A popup opens once per session. It does not reappear if the customer moves to another page, unless you turn Exit Intent on, or allow repeated displays.
Automatic popups are intrusive, which is why once per session is the default.
Before you start
You need a quiz built in the RevenueHunt app, and access to your theme editor. Editing theme source code can break a storefront, so bring in a developer if a step is beyond you.
Auto-popup on the main 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 clickCustomizeon your live theme. -
With the home page template open, click
Add section, open theAppstab, and addAuto Popup Quiz (Block).
-
Set up the popup.

Setting What it does Popup DelayHow many seconds to wait before the popup opens Popup WidthandHeightThe size of the popup, as a percentage of the screen Popup z-indexWhich other elements the popup sits in front of Quiz ID (optional)The quiz to open. Leave it empty for your default quiz Trigger Popup on Exit IntentOpens the popup when the customer moves to leave the page -
Click
Save. -
Open your store in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
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
Auto Popup Quiz (Legacy), paste the Quiz ID, and set the delay and size.The plain
Automatic Popup Quizembed serves the Built for Shopify version. A legacy quiz opened through it reports that it does not exist. -
Click
Save. -
Open your store in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
With pasted code
-
Open
Sharein the quiz builder, pickAutomatic, thenShow Instructions for Legacy Themes. -
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
In
Themes > Customize, add aCustom contentsection, then aCustom HTMLorCustom liquidblock. -
Paste the popup code into that block.
-
Click
Save. -
Open your store in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
-
Set the popup delay, width and height, 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 the page in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the popup delay, width and height, 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 the page in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the popup delay, width and height, 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 the page in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the popup delay, width and height, 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 the page in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
Auto-popup 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 > Pagesand clickAdd page. Name it, for exampleAutomatic Popup Page, set it toVisible, and save. -
Go to
Online Store > Themesand clickCustomize. -
Open the page template menu and click
+ Create a new template. Give it a name you will remember, such asAutomatic Quiz Popup. -
In that template, click
Add section, open theAppstab, and addAuto Popup Quiz (Block).
-
Set up the popup.

Setting What it does Popup DelayHow many seconds to wait before the popup opens Popup WidthandHeightThe size of the popup, as a percentage of the screen Popup z-indexWhich other elements the popup sits in front of Quiz ID (optional)The quiz to open. Leave it empty for your default quiz Trigger Popup on Exit IntentOpens the popup when the customer moves to leave the page -
Click
Save. -
Go back to
Online Store > Pages, open your page, and setPage Templateto the template you built.
-
Click
Save. -
Open that page in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
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, pickAutomatic, thenShow Instructions for Legacy Themes. -
Set the popup delay, width and height, 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 that page in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
-
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
In your WordPress admin, open
Pages, find the page you want the popup on and clickEdit. -
Add a
Custom HTMLblock and paste the code into it. -
Click
Update. -
Open the page in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the popup delay, width and height, 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 the page in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the popup delay, width and height, 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 the page in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
In your store editor, open the page you want the popup on.
-
Find a
Custom HTMLelement and paste the code into its settings. -
Save the page.
-
Open the page in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
Auto-popup 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 onAutomatic Popup Quiz. LeaveAuto Popup Quiz (Legacy)off. That one serves quizzes from the legacy app.
-
Set up the popup.

Setting What it does Popup DelayHow many seconds to wait before the popup opens Popup WidthandHeightThe size of the popup, as a percentage of the screen Popup z-indexWhich other elements the popup sits in front of Quiz ID (optional)The quiz to open. Leave it empty for your default quiz Trigger Popup on Exit IntentOpens the popup when the customer moves to leave the page -
Click
Save. -
Open your store in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
The popup 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, pickAutomatic, thenShow Instructions for Legacy Themes. -
Set the popup delay, width and height, 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. -
Click
Save. -
Open your store in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
A popup on every page needs a plugin that can run one site-wide, such as Popup Maker or Elementor.
-
Install and activate a popup plugin from your WordPress admin.
-
Open
Sharein the quiz builder, pickAutomatic, thenShow Instructions for Legacy Themes. -
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
In the plugin, create a new popup and name it.
-
Add a
Custom HTMLblock to the popup and paste the code into it. -
Set the plugin to show the popup on every page.
-
Publish the popup.
-
Open your store in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
A popup on every page needs an extension that can run one site-wide.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Install a popup extension from the Magento Marketplace, with Composer or by uploading it to your server.
-
Open
Sharein the quiz builder, pickAutomatic, thenShow Instructions for Legacy Themes. -
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
In the extension settings, create a new popup and paste the code into it.
-
Set the extension to show the popup on every page. Its display timing and triggers are set here too.
-
Save the extension settings.
-
Open your store in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
With the Script Manager
-
Open
Sharein the quiz builder, pickAutomatic, thenShow Instructions for Legacy Themes. -
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
In BigCommerce, go to
Storefront > Script Managerand clickCreate a Script. -
Fill the script in. Give it a name, set
Location on PagetoFooter, and set the pages toAll Pages. -
Paste the popup code into
Script Contents, then save. -
Open your store in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
By editing the theme files
Use this one if you need more control than the Script Manager gives you.
-
Open
Sharein the quiz builder, pickAutomatic, thenShow Instructions for Legacy Themes. -
Set the popup delay, width and height, 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. -
Save the file and deploy the theme.
-
Clear your browser cache, then open your store in a private browsing window and wait for the popup.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
In your store editor, open your theme footer.
-
Paste the popup code into the footer, so it loads on every page.
-
Save the theme.
-
Open your store in a private browsing window and wait for the popup. A popup shows once per session, so a fresh window is the only way to see it again.
FAQs¶
Open a specific quiz¶
An automatic popup opens your default quiz. To open another one, put its ID in the Quiz ID (optional) field of the popup 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 popup code from the Share tab of the quiz you want to open, then use that code. The quiz ID is baked into it, as data-quiz-id.
Generate the popup code from the Share tab of the quiz you want to open, then use that code. The quiz ID is baked into it, as data-quiz-id.
Generate the popup code from the Share tab of the quiz you want to open, then use that code. The quiz ID is baked into it, as data-quiz-id.
Generate the popup code from the Share tab of the quiz you want to open, then use that code. The quiz ID is baked into it, as data-quiz-id.
Generate the popup code from the Share tab of the quiz you want to open, then use that code. The quiz ID is baked into it, as data-quiz-id.
Show popup on exit intent¶
Exit intent opens the popup when the customer moves the cursor towards the tab or window controls, rather than after a delay.
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 onAutomatic Popup Quiz.
-
Turn
Trigger Popup on Exit Intenton, and adjust the width and height if you need to.
-
Click
Save. -
Open your store, then move the cursor up towards the tab bar. The popup should open.
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
Auto Popup Quiz (Legacy), paste the Quiz ID, and turnExit intenton. -
Click
Save. -
Open your store, then move the cursor up towards the tab bar. The popup should open.
With pasted code
-
Open
Sharein the quiz builder, pickAutomatic, thenShow Instructions for Legacy Themes. -
Turn
Exit intenton in the settings, then clickGet code. Copy the HTML it gives you. -
In
Themes > Customize, add aCustom contentsection, then aCustom HTMLorCustom liquidblock. -
Paste the popup code into that block.
-
Click
Save. -
Open your store, then move the cursor up towards the tab bar. The popup should open.
-
Turn
Exit intenton in the settings, then clickGet code. Copy the HTML it gives you. -
Put the code on your store, on the home page, a specific page or every page.
-
Open your store, then move the cursor up towards the tab bar. The popup should open.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Turn
Exit intenton in the settings, then clickGet code. Copy the HTML it gives you. -
Put the code on your store, on the home page, a specific page or every page.
-
Open your store, then move the cursor up towards the tab bar. The popup should open.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Turn
Exit intenton in the settings, then clickGet code. Copy the HTML it gives you. -
Put the code on your store, on the home page, a specific page or every page.
-
Open your store, then move the cursor up towards the tab bar. The popup should open.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Turn
Exit intenton in the settings, then clickGet code. Copy the HTML it gives you. -
Put the code on your store, on the home page, a specific page or every page.
-
Open your store, then move the cursor up towards the tab bar. The popup should open.
Repeated popup displays per session¶
This version shows the popup once per session and offers no way to change that.
The one exception is exit intent, which can fire again on the same visit. See Show popup on exit intent.
-
Open
Sharein the quiz builder, pickAutomatic, thenShow Instructions for Legacy Themes. -
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
Add
data-aggressive="true"to the popup code. The popup then keeps returning during the session until the customer finishes the quiz. -
In
Themes > Customize, add aCustom contentsection, then aCustom HTMLorCustom liquidblock. -
Paste the popup code into that block.
-
Click
Save. -
Open your store, dismiss the popup, and carry on browsing. It should come back.
-
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
Add
data-aggressive="true"to the popup code. The popup then keeps returning during the session until the customer finishes the quiz. -
Put the code on your store, on the home page, a specific page or every page.
-
Open your store, dismiss the popup, and carry on browsing. It should come back.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
Add
data-aggressive="true"to the popup code. The popup then keeps returning during the session until the customer finishes the quiz. -
Put the code on your store, on the home page, a specific page or every page.
-
Open your store, dismiss the popup, and carry on browsing. It should come back.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
Add
data-aggressive="true"to the popup code. The popup then keeps returning during the session until the customer finishes the quiz. -
Put the code on your store, on the home page, a specific page or every page.
-
Open your store, dismiss the popup, and carry on browsing. It should come back.
-
Add the
embed.jsscript before the closing</head>tag of your store header. The quiz does not load without it. -
Set the popup delay, width and height, then click
Get code. Copy the HTML it gives you. -
Add
data-aggressive="true"to the popup code. The popup then keeps returning during the session until the customer finishes the quiz. -
Put the code on your store, on the home page, a specific page or every page.
-
Open your store, dismiss the popup, and carry on browsing. It should come back.
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 popup is being served by the embed for the other version of the app.
-
Go to
Online Store > Themes > Customize > App embedsand check which popup embed is on. For a quiz built here,Automatic Popup Quizis the right one.
-
Turn
Auto Popup Quiz (Legacy)off and turnAutomatic Popup 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 popup 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 onAuto Popup Quiz (Legacy). The plainAutomatic Popup 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 popup 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 popup 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 popup 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 popup 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 open a quiz as an automatic popup, where to run it, and what to check when it does not appear.