How to Add a Quiz Popup via a Chat-Like Button on Your Store¶
Enhance your Shopify / eCommerce store's interactivity by integrating a chat-like button that triggers a quiz popup. This guide provides step-by-step instructions on how to implement this feature, offering both theme-based and manual methods.
Make sure you have:
- Access to your eCommerce store's admin dashboard.
- An existing quiz created with the RevenueHunt app.
- Familiarity with your eCommerce website theme customization options.
Chat Button on the Homepage¶
Option 1: Through Shopify Theme¶
- Copy Quiz ID: Go to your RevenueHunt app dashboard, select a quiz and click the
...
button. Copy your Quiz ID. - Open Store Themes: Go to
Online Store > Themes
, clickCustomize
, then openApp Embeds
. - Embed the Chat Button Quiz: Select
Chat Button Quiz
from the list. - Customize the Chat Button: Enter your Quiz ID into the appropriate field. Adjust the chat button settings as needed. Activate the chat button by toggling it on.
- Save Changes: Ensure all changes are saved before exiting the theme editor.
Option 2: Manual¶
- Obtain Chat Embed Code: From the quiz builder, click
Share
, selectChat button
mode, andShow Instructions for Legacy Themes
. - Generate Popup Code: Adjust settings like welcome message, width or height and click
Get code
to generate an HTML code. - Open Store Themes: In
Themes
, clickCustomize
, add aCustom content
section, then aCustom HTML
/Custom liquid
block. - Paste Popup Code: In the HTML/custom liquid block, paste your popup code. paste this code into the HTML of your desired pages.
- Save Changes: Ensure all changes are saved before exiting the theme editor.
- Obtain Chat Embed Code: From the quiz builder, click
Share
, selectChat button
mode. - Generate Popup Code: Adjust settings like welcome message, width or height and click
Get code
to generate an HTML code. Copy the 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 the element, paste the code copied from the app.
- Save the changes and
update
the page. - From now on, the chat icon popup 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 Chat Embed Code: From the quiz builder, click
Share
, selectChat button
mode. - Generate Popup Code: Adjust settings like welcome message, width or height and click
Get code
to generate an HTML code. Copy the 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 chat icon popup 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 Chat Embed Code: From the quiz builder, click
Share
, selectChat button
mode. - Generate Popup Code: Adjust settings like welcome message, width or height and click
Get code
to generate an HTML code. Copy the code. - In BigCommerce, go to
Storefront
>Web Pages
. Find the main page. - Switch to the
HTML
editor. Paste the HTML code copied from the app. - Save the changes.
- From now on, the chat icon popup 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 Chat Embed Code: From the quiz builder, click
Share
, selectChat button
mode. - Generate Popup Code: Adjust settings like welcome message, width or height and click
Get code
to generate an HTML code. Copy the code. - In your store customization options find the main page.
- Find a
Custom HTML
element. In the element settings paste the code copied from the app. - Save the changes.
- From now on, the chat icon popup quiz will be visible on the main page.
Chat Button on All Pages¶
If you want the chat button to appear across your entire store, follow the Manual Instructions and insert the code before the </body>
closing tag in your shop’s theme.
By following these instructions, you can successfully add a chat-like button to your Shopify/eCommerce store that opens a quiz popup.