Constructing a Custom URL with the Short Version:
Use this method if you have a custom domain connected to your Shopify store. This allows you to link an URL that doesn’t contain the myshopify.com URL version and use your custom domain URL instead. Note that once people click on this button in their results e-mail they will automatically be redirected in the URL to use your custom domain.
We will construct the URL using the following structure:
[your.websiteURL]/tools/perfect-product-finder{{event.results_url_short|default:''}}
Here’s the breakdown of the pieces that construct this URL:
2.3.1 Store URL:
By default in the long URL version this is what type of URL our event will send to Klaviyo:
https://whiskers-tails-co.myshopify.com
but if you have a custom domain connected to Shopify you will need to replace that with your own custom domain which could be something like:https://whiskersandtails.com
2.3.2 App Proxy:
The default app proxy path is
/tools/perfect-product-finder
. If you’ve changed this, update this section accordingly. You can find your current app proxy setting in your Shopify dashboard under Settings → Apps and sales channel and it is the part that follows after your full website name including myshopify.com and you can see it under App Proxy URL.2.3.3 Results Page Slug:
The last part of the constructed URL is the slug of the results page which is stored in the following event that you can stick to the rest of the URL:
{{ event.results_url_short|default:'' }}
For example if we have our custom domain being http://whiskersandtails.com and didn’t change our proxy URL, our final link will have the following final format:
https:/whiskersandtails.com/tools/perfect-product-finder{{event.results_url_short|default:''}}
Note: This setup is universal and applies to any quiz created with Lantern. The format for linking to the results page will be identical across all quizzes, so you can copy this format for any quiz you send through Klaviyo.