Installation
SDK installation
We automatically install the LoyaltyLion SDK into your theme on Shopify, BigCommerce and Adobe Commerce.
The LoyaltyLion SDK needs to be added into your store’s template or theme to identify customers and render UI components.
Add the SDK snippet to your template
Copy the following snippet into your template’s </head>
.
Initialize the SDK
Once you’ve added the snippet, the LoyaltyLion SDK begins loading and assigns itself to window.loyaltylion
, but is inactive until you initialize it with the loyaltylion.init
method.
Refer to the initialization section for more information.
Add our UI components
When the SDK is initialized, you can start adding our UI components to your pages. The quickest way to get started is use our combined Loyalty Page component, which can be embedded on a page.