Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Customer RFM group now available in GraphQL Admin API

You can now access a customer's RFM (Recency, Frequency, Monetary) group through the GraphQL Admin API. This new rfmGroup field in customer statistics helps you understand customer engagement and purchasing patterns.

The rfmGroup field is available through the statistics field on the Customer object. You can use this information to segment customers based on their purchasing behavior and create targeted marketing campaigns.

For more detailed information, please refer to the official documentation.

Example query:

query {
  customer(id: "gid://shopify/Customer/1") {
    statistics {
      rfmGroup
    }
  }
}
Was this section helpful?