If you've decided not to use the launcher button we've placed on your site, you can disable it. Once its disabled, you'll need to setup one of two methods in order for members to access your loyalty program and redeem their points.

 

URL Method

The URL method basically involved placing a query string parameter in the URL of any page of your website. With the query string parameter present, the widget will automatically launch once the page is loaded.

Example:

Change: https://www.yoursite.com

To: https://www.yoursite.com?launchLoyalty=1

 

JavaScript Method

The javascript method allows you to tie a click event from any element on your site to the loyalty widget. You can make your own launcher, edit your theme to include the loyalty widget into your site's menu, or just about anything else you can think of. To implement the javascript method, you'll need to add an onClick attribute to an element on your site.

Example:

<a href="javascript:void(0);" onClick="launchLoyalty();">Rewards</a>


You could also launch the widget automatically when the page loads like this:

<script>
window.addEventListener('load', function() {
  setTimeout(function(){ launchLoyalty(); },1000);
});
</script>


Did this answer your question?