---
title: "How to Calculate a Total Lead Score Using Profile-Based Operations"
slug: "add-together-lead-scores"
updated: 2025-09-01T14:19:35Z
published: 2025-09-01T14:19:35Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mapp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Calculate a Total Lead Score Using Profile-Based Operations

## Goal

To calculate a total lead score for a contact. This is the sum of the points the contact has for each open, click and purchase

## Background Information ​

In this example you assign a contact 1 point for every open, 2 points for every click and 3 points for every purchase. This data is stored in 3 separate attributes. You use an operation to add the scores together.

## Prerequisites

1. In the ​*Administration​ > ​Attributes*​ area, create the following new custom user attributes.

| Name | Data Type |
| --- | --- |
| Opens1Point | Number |
| Clicks2Points | Number |
| Purchase3Points | Number |
| LeadScoring_Total | Number |
2. In the ​Automation​ area, create three event-based automations. You can create all three automations on a whiteboard.

| Event | Job | Target Attribute | Value |
| --- | --- | --- | --- |
| [Message Opened (C)​](/v1/docs/message-opened-c) | [​Increase or Decrease Profile Value (C)​](/v1/docs/increase-or-decrease-profile-value-c) | Opens1Point | 1 |
| [​Message Link Clicked (C)​](/v1/docs/message-link-clicked-c) | Clicks2Points | 2 |
| [​Conversion Registered (C)​](/v1/docs/conversion-registered-c) | Purchase3Points | 3 |

## Procedure

1. In ​Automation​, create a new profile-based automation with the type ​**Operation**​. The target attribute is ​LeadScoring_Total​. The operation has the following expression:

| ${user.CustomAttribute['Opens1Point']+user.CustomAttribute['Clicks2Points']+user.CustomAttribute['Purchase3Points']} |
| --- |
2. Click the ​**Save**​ button.
3. Select the profile-based automation and click the ​**Activate**​ button. ⇒ The profile-based automation is now active.
4. Click the ​**Apply Automations​** button. ⇒ Engage applies the automation to all contacts in the system. This can take a long time. An email notifies you when the automation is finished.
