Skip to main content
Mage Loyalty automatically syncs loyalty data into Shopify metafields, making it available in your Liquid templates, theme editor, and Storefront API — no custom code or API calls required.

How it works

Mage writes two JSON metafields under the mage.loyalty namespace: Both metafields are kept in sync automatically. Shop metafields update whenever you change your program settings in the dashboard. Customer metafields update whenever a customer earns points, redeems a reward, or changes VIP tier.

Namespace and key

All Mage metafields use the same namespace and key:

When metafields update