Accessing your customer's loyalty data through Shopify Metafields

Since embarking on our mission to create our open platform, one of the most frequent demands has been the capability to integrate BrandLift information directly within liquid templates.

We've developed a robust, scalable solution that's been rigorously tested on Plus stores boasting customer bases in the hundreds of thousands. This solution offers near-instantaneous synchronization.

Expose customer data in Liquid theme code

Display a customer's points balance

{{customer.metafields.custom.brandlift.value.points_balance}}

Display a customer's VIP tier

{{customer.metafields.custom.brandlift.value.vip_tier}}

Display a customer's Referral URL

{{shop.url}}/?referral_code={{customer.metafields.custom.brandlift.value.referral_code}}

Expose customer data in Shopify Email templates

When incorporating BrandLift customer metafields into Shopify Liquid email templates, insert them within the code editor and extract the value from the metafield:

Display a customer's points balance

{{customer.metafields.custom.brandlift.points_balance}}

Display a customer's VIP tier

{{customer.metafields.custom.brandlift.vip_tier}}

Display a customer's Referral URL

{{shop.url}}/?referral_code={{customer.metafields.custom.brandlift.referral_code}}

Was this article helpful?

Developer Toolkit Overview