In this lesson, we'll explore a real-life example of how to use Looker Studio and BigQuery ML to analyze customer segmentation for a Shopify store using Klaviyo data. The goal is to understand different customer segments based on Recency, Frequency, and Monetary (RFM) value.
RFM segmentation is a method that helps businesses identify different types of customers based on their:
Using these three values, we can segment customers into various clusters like high-value spenders or frequent recent customers.
In our example, the business had about 40,000 customers in their database but didn't know how to define the segments or which types of people to target.
To solve this problem, we used the K-means clustering algorithm available in BigQuery ML. This algorithm helps find similar clusters of entities within a dataset.
The raw data available for this project included client ID, email address from Shopify, date of purchase, and transaction amount. Using this data: