Skip to main content

Open your quiz in a POPUP

Written by Traian

If you prefer, you can check out this information in video format.

The Popup display option lets you open your quiz in a popup on your store.
To use this option, you first need to enable the Lantern Quiz Pop-up app embed in your Shopify Theme Editor.

1. Activate the Lantern Quiz Pop-up app embed

1.1 Go to the Publish page in Lantern.

1.2 Under Ways to show your quiz, select Popup, then click Copy popup URL.

Image showing the Lantern Publish page with Popup selected under Ways to show your quiz and the Copy popup URL button highlighted.

​

1.3 Click Go to the Theme Editor.

1.4 In the Theme Editor, open App embeds from the left-hand menu.

1.5 Enable the Lantern Quiz Pop-up app embed.

Image showing the 'Go to the Theme Editor' button highlighted on the Publish page. After clicking it, the Shopify Theme Editor is displayed with the App Embeds section open and the Lantern Quiz Popup toggle enabled and highlighted.

Once the app embed is enabled, you can use the copied Popup URL as the destination link for buttons or links in your store.

2. Trigger a popup quiz by clicking a button

In this example, we’ll use a button on the homepage.

2.1 Open the page or section where the button is located.

2.2 Select the button you want to use.

2.3 Change the button label if needed, for example to Open Quiz.

2.4 Paste the copied Popup URL into the Button link field.

Image showing the right-hand menu of the Theme Editor where the Shop All button label has been changed to

Important note: After pasting the Popup URL, make sure to click the suggested link option. If you do not select it, your changes may not be saved correctly.

2.5 Save your changes and test the button to make sure the quiz opens as a popup.

Image showing a preview of the storefront with the Open Quiz button clicked and the Lantern quiz displayed as a popup.

3. Set up automatic popups

You can also make the popup open automatically based on customer behaviour.

In the Theme Editor, open the Lantern Quiz Pop-up app embed settings.
​

Image showing the auto-trigger behavior options for the Lantern pop-up in the Theme Editor with the Auto-Trigger on Exit Intent, Auto-Trigger on Scroll, and Auto-Trigger after x seconds highlighted.

You can trigger the popup automatically in three ways:

  • on exit intent

  • after scrolling a certain number of pixels

  • after a certain number of seconds

You can use one of them or turn on more than one. The popup opens on whichever happens first.

Trigger the popup on exit intent

Turn on Auto-Trigger on Exit Intent. The popup opens when the customer moves the mouse toward the top of the browser, as if to leave the page. This only works on computers, since phones and tablets don't have a mouse.

Trigger the popup on scroll

  1. Turn on Auto-Trigger on Scroll.

  2. Set Scroll Trigger to how far down the page the customer needs to scroll, in pixels. For example, with 750px the popup opens once the customer has scrolled 750 pixels down the page.

Image showing the auto-trigger on scroll toggle enabled, with the scroll distance set to 750px before the quiz popup is triggered.

Trigger the popup after a number of seconds

  1. Turn on Auto-Trigger After x Seconds.

  2. Set Time Delay Trigger to the number of seconds to wait before the popup opens.

Image showing the auto-trigger setting configured to open the quiz popup after 5 seconds. The display

Choose how often the popup appears

Under How many times to show the popup?, choose how often the same customer sees the automatic popup, for example Once. This applies to all three triggers above.

Choose which quiz should auto-trigger

If you enable any automatic popup option, make sure to also paste the Popup URL into the Which quiz should auto-trigger? field.

Image showing the input field under "Which quiz should auto-trigger?" in the Theme Editor, with the quiz pop-up URL pasted and highlighted.

Choose which pages the popup opens on

By default, the automatic popup can open on any page of your store. Two optional settings in the same Lantern Quiz Pop-up app embed let you choose where it opens:

  • Only auto-trigger on these pages: the popup opens only on the pages you list here. Leave it empty to allow every page.

  • Never auto-trigger on these pages: the popup never opens on the pages you list here. If a page is in both lists, the popup doesn't open there.

Write one page per line, using the part of the page's address that comes after your domain. An asterisk (*) stands for "anything":

  • / is your homepage.

  • /pages/quiz is that one page.

  • /products/* is every product page, and /collections/* is every collection page.

  • /collections/watches* is the watches collection, including its filtered and sorted views.

  • sale* is any page with "sale" in its address.

Image showing the Lantern Quiz Pop-up app embed settings with example page paths entered under Only auto-trigger on these pages and Never auto-trigger on these pages.

You can also paste a page's full address, like https://yourstore.com/pages/quiz. If your store is available in other languages or markets, for example /fr/products/..., you don't need to list those versions: /products/* covers them too.

The popup never opens automatically on these pages, with no setup needed:

These two lists only control the automatic popup. A button or link with the Popup URL, like the one in step 2, opens the quiz on any page.

If you need help setting this up or have any other questions, please contact us using the in-app chat or email us at [email protected].

Did this answer your question?