Skip to main content

How can I customize the quiz URL?

Written by Ana Bunaiasu

In order to create a custom Proxy URL, you need to follow the following steps:

1. In your Shopify admin, go to Settings > Apps and sales channels, then open Lantern Product Quiz Builder. Scroll down to the App proxy section.

Image showing the location of the “Manage App” button in the Lantern dashboard.

2. In the App Proxy section you'll find the App Proxy URL. You can customize it by clicking the Customize URL button.

Image showing the App Proxy Url section inside the 'Apps and sales channels' with the “Customize URL” button highlighted.

3. A pop-up will appear with the App Proxy URL options. You can choose one of the options already available, the shorter being the extension “/a/” after your store URL

Image showing the pop-up with App Proxy URL options, including a shorter option using “/a/” after the store URL.

4. You can now customize the section “perfect-product-finder” that comes in the following section in the URL [store URL]/a/perfect-product-finder . You can change this into anything, for example “x”. Now your base URL will become: [store URL]/a/x . The quiz slug you generated when creating the quiz will be added on to this.

Image showing the editable section of the App Proxy URL where “perfect-product-finder” can be customized to a different slug like “x”.

Please bear in mind that due to limitations with the Shopify API, our app won't be able to show this new URL inside your quiz flow editor, on the Publish page. The Preview link also won’t work because it uses default URLs originally created instead of custom ones.
​
The new URL will work normally and can be added to your store same as the one originally generated by the app, so what you will need to do is to replace the section [storeURL]/tools/perfect-product-finder with the custom proxy URL you just created. In our example, this is [store URL]/a/x

Warning: After changing the proxy URL, replace tools/perfect-product-finder with your new path (for example a/x) everywhere it is used:

Test each one on your live store.

GIF showing how the custom quiz URL appears on the storefront using the edited proxy slug instead of the default path.

Seeing a 404 on your quiz link?

After changing the app proxy

If you changed the app proxy, the Preview link, the quiz URL on the Publish page and the in-store quiz URL return a 404. Build the URL yourself instead: [store URL]/[your proxy path]/[quiz slug]

For example: [store URL]/apps/product-quiz/[slug]

After deleting a quiz and creating a new one with the same name and slug

The Preview link can return a 404 because the old slug is cached. To fix it:

  1. In the quiz editor, open Settings > General.

  2. Temporarily change the Quiz Flow Slug, for example by adding -test.

  3. Confirm the Edit slug warning and save.

  4. Open the preview again.

Change the slug back when you're ready to publish.

Did this answer your question?