Using Yotpo Loyalty & Referrals Metafields in Shopify
    • Dark
      Light

    Using Yotpo Loyalty & Referrals Metafields in Shopify

    • Dark
      Light

    Article summary

    Products


    Loyalty & Referrals

    Supported plans

    Pro, Premium, Enterprise

    eCommerce Platform

    Shopify, Shopify Plus

    Goals and Outcomes

    Shopify metafields allow you to store and display custom data across your store, including on customers, products, and orders. With Yotpo Loyalty & Referrals, essential loyalty program data is automatically synced to customer metafields in Shopify. This gives you greater visibility and control over your loyalty data while enabling more personalized shopping experiences and smarter automation.

    In this article, you’ll learn:

    • What Yotpo loyalty data is available as metafields in Shopify

    • How to access and manage these metafields in the Shopify admin

    • Examples of using loyalty metafields to support your business strategy

    Yotpo Loyalty Data as Metafields

    Yotpo loyalty metafields are available to all merchants on Pro, Premium, and Enterprise plans with an active loyalty program. These metafields are automatically added to customer profiles and synced in real-time between Yotpo and Shopify.

    Note

    If you want to stop metafield syncing, please contact your Yotpo representative or our support team.

    Compatibility

    Yotpo Loyalty Metafields

    The following core loyalty data is saved and available as customer metafields in Shopify:

    • Shopify account

    • Loyalty opt-in

    • Loyalty opt-in date

    • Loyalty points balance

    Learn more in the table below:

    Metafield name

    Namespace and key

    Description

    Value type

    Behavior by  Shopify account type

    Yotpo Loyalty Has Shopify Account

    yotpo.loyalty_has_shopify_account

    Indicates whether the customer has a Shopify account.

    Boolean

    (true / false)

    Legacy accounts: Shows True if the customer has a Shopify account, and False if they don’t.

    Customer Accounts: The value is False by default since there is no account creation.

    Yotpo Loyalty Opt-in

    yotpo.loyalty_opt_in

    Indicates if the customer is opted into your loyalty program.

    Boolean

    (true / false)

    Based on your program’s opt-in strategy:

    “All customers” - customers are automatically enrolled, so "True" will appear after a customer record is created in Shopify, for both new Customer Accounts and Legacy accounts.

    “Only members who signed up” - it depends your Shopify account type:

    • For Legacy accounts: if the shopper has created an account in Shopify (meaning the account status is set to true).

    • For Customer Accounts - customers are enrolled after they agree to become members and join the program through the consent checkbox.

    Yotpo Opt-in Date

    yotpo.loyalty_opt_in_date

    Timestamp of when the customer opted into the loyalty program.

    ISO 8601 DateTime

    Displays N/A if the customer is not opted in.

    Yotpo Loyalty Points Balance

    yotpo.loyalty_current_points_balance

    The customer’s current points balance.

    Integer

    Example: 0, 100, -100

    Important

    • Yotpo loyalty metafields are read-only, flat, and cannot be manually edited in Shopify to prevent data inconsistencies and ensure your loyalty data is correct.

    • All metafields follow a unified format using a namespace and key to ensure uniqueness, e.g., app--123456789--loyalty_opt_in.

    Viewing Metafields in the Shopify Admin

    Customer metafield definitions navigation in Shopify admin

    To view Yotpo loyalty metafields in your Shopify admin:

    1. From your Shopify Admin, go to Settings.

    2. Select Metafields and metaobjects and click the Customers definition.

      The Customers metafield definitions in Shopify

    3. From the actions dropdown, select View read only definitions.

      View read only definitions

    4. You’ll see Yotpo loyalty metafields listed with their respective names and values.

      Read only metafield definitions: Yotpo's loyalty metafields

    5. To view data for a specific customer, go to Customers, select a customer, and scroll down to the Metafields section.

      Yotpo loyalty customer metafields example

    Use Cases and Examples

    1. Create Flows with Shopify Flow

    Use Yotpo loyalty metafields to create Shopify Flows and trigger automations.

    Example: Send a post-purchase marketing email to loyalty members (using the yotpo.loyalty_opt_in metafield) after they place an order.

    Shopify Flow example

    2. Personalize Product Pages with Loyalty Data

    Boost product page conversion by showcasing social proof from your loyalty program.

    Example: Display the number of loyalty members who bought a product directly on the product page (e.g., “15 loyalty members bought this in the last 30 days”) to encourage purchases through FOMO and trust.

    Over 65% of customers prefer buying from brands they feel loyal to. Showcasing loyalty insights helps strengthen that connection and boost repeat purchases.

    3. Show Dynamic Messaging or Pricing Based on Loyalty Status

    Customize your storefront experience and build exclusivity based on loyalty membership.

    Example: Show members-only pricing or promos based on loyalty status (yotpo.loyalty_opt_in = true), along with a message like “Welcome back! As a member, you save 15% on this item.”


    Was this article helpful?