Build Engagement Scoring Model
1. Define your model
After compiling the data, you need to choose the factors that make your customers more qualified.
Following the physical retailer model example, the following criteria and scores for customers can be applied:
Criteria | Score |
|---|---|
Criteria | +1 |
Click Inside Email | +1 |
Email Bounced | -1 |
Recency of Last Order | +1 to +5 |
Average Amount of Orders | +1 to +5 |
Distance from Home or Store | +1 to +5 |
Notice how many factors have wide variations. Focusing on one, recency of last order, there is a scale from 1-5 correlating to how long ago a customer made their most recent purchase. Customers with orders in, for example, the previous month are given a high score of 5, while customers at the opposite end of the spectrum, —one purchase 11 months ago— are given a 1. Customers whose last order was over a year ago may be removed from this scoring system entirely to reflect how cold of a lead they are.
Ranged scoring provides greater nuance, as opposed to fixed scoring. For criteria involving frequency, having a given value often provides similar insight into customer intent. In this example, clicking an email adds one point to a customer’s score, so multiple clicks across multiple emails enhances their overall rank.
With your score criteria defined, it is time to implement the engagement scoring model using DESelect. The image below indicates the different selections created for the example, and the scores that will be calculated individually.

2. Create a selection
The first thing you need to do is create a selection that will calculate the points each customer collects for each criterion and store it in a Data Extension.
- Open DESelect inside your Marketing Cloud instance
- Click New Selection to create a new selection.
- Provide the name Customer Engagement Scores (or similar) for your selection.
- Choose your Selected Data Extensions, in this case Data Extensions Customers and Orders.
- Create a relationship between them on Id and CustomerId fields, and keep all records from Customers Data Extension.

- Move on to the Target Definition screen and click on Create Data Extension.
- Provide the name Customer Engagement Scores and click Save.
- Add the Id field of the Customers Data Extension to Target Data Extension fields.

3. Calculate individual scores
Calculate Opens – Clicks – Bounces Score
Next, you need to calculate the points for opens, clicks, and bounces. At this point, positive and negative scores is not relevant, therefore you will calculate these three fields in exactly the same way.
This will also help evaluate overall email deliverability and engagement by counting how many times a customer has opened an email, clicked inside an email, or bounced out of an email. This information can be found inside Data Views, which are tables generated by SFMC. Through Data Views you’ll find data such as subscribers and Marketing Cloud event tracking (e.g., email/sms sends, email opens, link clicks).
- Click on Add new value inside the Custom Values section.
- Set name to Opens Score, choose Aggregation as type and click on Next.
- Choose Count as the aggregation function.
- Choose SubscriberKey of _Open Data View as the field.
- Match Customers’ Email field with _Open ’s SubscriberKey field. The Custom Value looks like this:

- Click Save.
- Repeat steps 1 – 6 for _Click and _Bounce and name them Clicks Score and Bounces Score respectively.
- Add all the created values to the Target DE’s fields.

Calculate orders score
Next, you will assign points to customers based on when they placed an order. Based on the data, you could define the following rules:
- 1 point, for orders in the past year.
- 2 points, for orders in the past 9 months.
- 3 points, for orders in the past 6 months.
- 4 points for orders in the past 3 months.
- 5 points, for orders in the past month.
Assign scores
To assign the different scores to your customers:
- Click on Add new value inside the Custom Values section.
- Set name to Orders Score, choose Dynamic Value as type and click on Next.
- Select Number as field type and click on Add Criteria.
- Add Order Date from Orders DE to the filters section.
- Choose Is After Or On as filter type.
- Select Relative date and set it to 9 months ago.
- Add Order Date from Orders DE second time to the filters section.
- Choose Is Before Or On as filter type.
- Select Relative date and set it to 1 year ago.

- Set the Then value equal to 1. Yur custom value should look like this:

- Repeat steps 3 – 6, but set the Relative date to match the criteria we defined above, and the then value to the equivalent amount of points.

- Make sure the Default value is 0 and click on Save.
- Add the created value to your Target DEs fields.

Calculate distance score
Moving forward, you want to assign scores based on the distance from customers’ homes to your business' physical location. You can do that based on their postal codes. We know about the Postal Codes that values:
- Between postal codes 15019-15378 are 5 km away from your store, and will get 5 points.
- Between postal codes 15378-15737 are 10 km away from your store, and will get 4 points.
- Between postal codes 15737-16096 are 15 km away fromy our store, and will get 3 points.
- Between postal codes 16096-16455 are 20 km away from your store, and will get 2 points.
- Greater than postal code 16455 are more than 20 km away from your store, and will get 1 point.
Assign different scores
To assign the different scores to your customers:
- Click on Add new value inside the Custom Values section.
- Set the name to Distance Score, choose Dynamic Value as type and click on Next.
- Select Number as field type and click on Add Criteria.
- Add Zip Code from Orders DE to the filters section. Depending on your organization’s data model, this field may be labeled Postal Code and may be nestled under the Customers data extension.
- Choose Between as the filter type.
- Set the first input field to 15019 and the second to 15378.

- Click on Save and set the Then value equal to 5. Your Custom Value should look like this.

- Repeat steps 3 – 7 for the rest of the postal codes mentioned above, each time decreasing the Then value by 1. In the last group choose Greater Than as filter type.

- Make sure the Default value is 0 and click on Save.
- Add the created value to your Target DE’s fields.

Total amount average
Lastly, you want to assign a different score based on the average of the total dollar amount a customer has spent on purchases in this time period (in this example, one year). For example, you can identify the following groups.
- Average between 0 – 25 gets 1 point.
- Average between 25 – 50 gets 2 points.
- Average between 50 – 75 gets 3 points.
- Average between 75 – 100 gets 4 points.
- Average above 100 gets 5 points.
Calculate total amount average
To get the customers of each group, you need to first calculate the average of the total amount for each customer.
- Click on Add new value under the custom values section.
- Set the name to Total Amount Average, choose Aggregation as type and click on Next.
- Select Average value for field as the aggregation function.
- Choose Total Amount from the Orders Data Extension as the field.
- Match Orders’ CustomerId field with Customers’ Id field.Your Custom Value should look like this.

- Click on Save.
- Add the created value to your Target DE’s fields.

- Click on the Save Data Extension button.
- Save your work on the Selection itself. Exit to the DESelect Segment homepage.
- Click on the Create button.
4. Total amount score
Create new selection
In order to create the Total Amount Score based on the Total Amount Average we need to create a new selection.
- Click on Run to populate your Customer Engagement Scores Data Extension with results.
- Click on the New Selection button.
- Name it Final Customer Engagement Scores.
- Add Customer Engagement Scores Data Extension to your Selected Data Extensions.
- Move on to the Target Definition screen and click on Create Data Extension.
- Provide the name Final Customer Engagement Scores and click Save.
- Click on the Add All Fields button.
- Remove the Total Amount Average field.
Create total amount score
Now we can calculate the Total Amount Score by implementing the following steps.
- Click on Add new value inside the Custom Values section.
- Set the name to Total Amount Score, choose Dynamic Value as type, and click on Next.
- Select Number as field type and click on Add Criteria.
- Add Total Amount Average from Customer Engagement Scores Data Extension to the filters section.
- Choose Between as the filter type.
- Set the first input field to 0 and the second to 25.

- Click on Save and set the Then value equal to 1. Your Custom Value should look like this.

- Repeat the steps 3 – 7 for the rest of the averages mentioned above, each time increasing the Then value by 1. In the last group choose Greater Than as filter type.

- Make sure the Default value is 0 and click on Save.
- Add the created value to your Target DE’s fields.

- At the top click to Save Data Extension, then confirm with Create.
- Click Run to create the data extension. You can also Preview beforehand in the Preview section.
5. Calculate total engagement score
Calculate each customer’s total engagement score
After calculating each criteria score separately, it is time to sum them up and end up with a single audience engagement score per customer.
- Create a new selection and name it Customers With Score.
- Add the Final Customer Engagement Scores Data Extension.
- On the target definition screen create a Customers with Score Data Extension.
- Add the Id field to your Target Data Extension.
- Click on the Add new value button.
- Set the name Total Engagement Score, choose Apply formula to a field and click Next.
- Click Apply any function and Next.
- Choose Number as the field type.
- Select the Opens Score field of Final Customer Engagement Scores DE in the dropdown and click Insert Field.
- Add a plus operator (+).
- Do the same for Clicks Score , Bounces Score, OrdersScore, Distance Score and Total Amount Score. Though because Bounces has a negative score, we change the plus (+) icon in front of this field to a minus (-). The formula should look like this.

- Double-check the accuracy of your SQL syntax with Check syntax.
- Add the Total Engagement Score field to the Target Data Extension.

- Click on Save Data Extension.
- Click Create.
- Click Run to finish.