You can open the Glow widget from your own storefront links, buttons, menu items, banners, or campaign links.
This is useful if you want to hide Glow's default launcher button, add loyalty to your store navigation, link to your rewards program from an email campaign, or create your own branded rewards button.
Before you start
Make sure the Glow storefront script is loading on the page where you want to open the widget.
If the Glow app embed or storefront script is not loading, the custom link or button will not be able to open the widget.
Option 1: Open the widget with a URL
Add launchLoyalty=1 to the end of the page URL.
For example:
https://www.yourstore.com?launchLoyalty=1
If the URL already has a question mark, add the parameter with & instead:
https://www.yourstore.com/collections/bestsellers?sort_by=best-selling&launchLoyalty=1
When a customer opens that link, Glow opens the loyalty widget automatically.
This works well for:
Loyalty links in your store navigation.
Email and SMS campaigns.
Homepage banners.
Post-purchase messages.
Landing pages that promote your loyalty program.
Option 2: Open the widget with JavaScript
Glow also exposes a JavaScript function called window.launchLoyalty() after the storefront script finishes loading.
You can use it from a custom button like this:
<button type="button" onclick="window.launchLoyalty && window.launchLoyalty()"> Open rewards</button>
If your theme code runs before Glow has finished loading, attach the click handler after the page loads:
<button type="button" id="open-rewards"> Open rewards</button><script> document.addEventListener('DOMContentLoaded', function () { var button = document.getElementById('open-rewards'); button.addEventListener('click', function () { if (window.launchLoyalty) { window.launchLoyalty(); } }); });</script>
Your theme developer can add this to a theme section, menu item, custom liquid block, or promotional banner.
Hiding the default launcher button
If you are replacing Glow's launcher with your own link or button, you can hide the default launcher.
In Glow, go to Settings > Account Settings > Widget, then set Launcher Position to Hidden and save your settings.
The launcher button will be hidden, but your URL links and JavaScript button can still open the widget as long as the Glow storefront script is loading on the page.
Can I open a specific widget section?
Glow currently supports opening the widget itself from a URL or custom button.
For the Pop Up widget style, you can also choose to open the redeem section automatically whenever the widget launches. Go to Settings > Account Settings > Widget, then set Launch Widget Redeem Section? to Yes.
For the Modern widget style, customers open the widget first and then choose How to Earn, Get Rewards, Discounts, History, or Rules from the widget menu.
Glow's current storefront script does not support opening arbitrary modern-widget sections with a URL parameter.
Troubleshooting
The link does not open the widget
Check that the page loads Glow's storefront script. If the app embed is disabled or the storefront script is missing, launchLoyalty=1 and window.launchLoyalty() cannot open the widget.
The custom button does nothing
The button may be running before Glow has finished loading.
Try binding the click handler after DOMContentLoaded, and make sure the button checks that window.launchLoyalty exists before calling it.
The default launcher is hidden, and my custom button still does not work
Hiding the launcher only removes Glow's default button. It does not install a replacement button for you.
Make sure your theme still includes a custom link using launchLoyalty=1 or a button that calls window.launchLoyalty().
Related articles



