Skip to content

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 Shop Quiz: Product Recommendation Quiz app.
  • Familiarity with your eCommerce website theme customization options.

Chat Button on the Homepage

Option 1: Through Shopify Theme

  1. Copy Quiz ID: Go to your Shop Quiz dashboard, select a quiz and click the ... button. Copy your Quiz ID.
  2. Open Store Themes: Go to Online Store > Themes, click Customize, then open App Embeds.
  3. Embed the Chat Button Quiz: Select Chat Button Quiz from the list.
  4. 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.
  5. Save Changes: Ensure all changes are saved before exiting the theme editor.

Option 2: Manual

  1. Obtain Chat Embed Code: From the quiz builder, click Share, select Chat button mode, and Show Instructions for Legacy Themes.
  2. Generate Popup Code: Adjust settings like welcome message, width or height and click Get code to generate an HTML code.
  3. Open Store Themes: In Themes, click Customize, add a Custom content section, then a Custom HTML/Custom liquid block.
  4. Paste Popup Code: In the HTML/custom liquid block, paste your popup code. paste this code into the HTML of your desired pages.
  5. Save Changes: Ensure all changes are saved before exiting the theme editor.
  1. Obtain Chat Embed Code: From the quiz builder, click Share, select Chat button mode.
  2. Generate Popup Code: Adjust settings like welcome message, width or height and click Get code to generate an HTML code. Copy the code.
  3. In WordPress, open Pages and find the Front Page. Click Edit to open the page.
  4. In the editor, find a Custom HTML element and add it to the page.
  5. In the element, paste the code copied from the app.
  6. Save the changes and update the page.
  7. From now on, the chat icon popup quiz will be visible on the main page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Chat Embed Code: From the quiz builder, click Share, select Chat button mode.
  3. Generate Popup Code: Adjust settings like welcome message, width or height and click Get code to generate an HTML code. Copy the code.
  4. In your Magento dashboard go to Content > Blocks. Click Add New Block.
  5. Edit the Block Title, Identifier and Store View and click Edit with Page Builder.
  6. Select Elements > Rows and drag a row into the canvas.
  7. Next open Elements and pick HTML Code. Drag the HTML Code onto the Row.
  8. Click the gear icon to open HTML settings.
  9. Under Enter HTML, CSS or JavaScript code paste the HTML code copied from the app.
  10. Remember to save the changes.
  11. From now on, the chat icon popup quiz will be visible on the main page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Chat Embed Code: From the quiz builder, click Share, select Chat button mode.
  3. Generate Popup Code: Adjust settings like welcome message, width or height and click Get code to generate an HTML code. Copy the code.
  4. In BigCommerce, go to Storefront > Web Pages. Find the main page.
  5. Switch to the HTML editor. Paste the HTML code copied from the app.
  6. Save the changes.
  7. From now on, the chat icon popup quiz will be visible on the main page.
  1. Add the following embed.js script before the </head> close tag in the header.
    <script src="https://admin.revenuehunt.com/embed.js" async></script>
    
    Without it, the quiz won't be loaded on your website.
  2. Obtain Chat Embed Code: From the quiz builder, click Share, select Chat button mode.
  3. Generate Popup Code: Adjust settings like welcome message, width or height and click Get code to generate an HTML code. Copy the code.
  4. In your store customization options find the main page.
  5. Find a Custom HTML element. In the element settings paste the code copied from the app.
  6. Save the changes.
  7. 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.