Installation on Shopify

LoyaltyLion has full support for Shopify and Shopify Plus. When you install the LoyaltyLion app on Shopify, we’ll automatically integrate with your store. Use the instructions below if you need a more custom installation.

Installing the LoyaltyLion Shopify app

If you haven’t already, you can install the app from here:

Once you install the app and complete the setup, we’ll install our webhooks and add our SDK to your current theme.

How we add the SDK to your theme

When we add our SDK to your theme, we’ll do the following:

  • Create a new snippet called loyaltylion
  • Modify your theme.liquid layout to include our snippet in the </head>

You can move the include snippet if needed, but we recommend keeping it as high up as possible to ensure the LoyaltyLion UI components load quickly. Our SDK loads asynchronously so it doesn’t block page rendering.

Don’t edit the loyaltylion.liquid snippet. We push updates to it that can result in the removal of your changes.

We save your LoyaltyLion token and secret to your shop metafields.

Adding LoyaltyLion to a different theme

Our automatic installation only adds LoyaltyLion to your current, live theme. If you need to add LoyaltyLion to a different theme for testing, for example, do the following:

  • Copy the loyaltylion.snippet from your live theme into your second theme
  • Add {% include "loyaltylion" %} to the <head>

If you’ve lost or don’t have the loyaltylion.liquid file, email

Sharing themes between stores

Our standard loyaltylion.liquid snippet refers back to configuration saved to your site metafields. You can push an unmodified loyaltylion.liquid which uses these metafields to your version control system and reuse it on different Shopify stores without the need to reference each store’s token and secret directly.