---
title: Example - Using contact scoring
related:
  - https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/contact-management/scoring-contacts/managing-contact-scores.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

> **Info:** **Enterprise license required**
>
> Features described on this page require the **Kentico Xperience Enterprise** license.

The following step-by-step example defines a [score](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/contact-management/scoring-contacts.md) and demonstrates how the system adds score points for contacts that match the rules.

**Prerequisites**:

- [Logging of activities is enabled](https://docs.kentico.com/13/on-line-marketing-features/configuring-and-customizing-your-on-line-marketing-features/configuring-activities.md) for the website.
- The website has several products located in the **/Products/Smartphones** section of the website.
  - Alternatively, you can adjust the examples to match your website.

## Creating sample scores

1. Open the **Scoring** application.
2. Click **New score**.
3. Enter the following details in the **New score** dialog:

   - **Display name**: Interested in smartphones
   - **Description**: enter text describing the score
   - **Enabled**: yes (selected)

     ![Creating a new score](https://docs.kentico.com/docsassets/13/example-using-contact-scoring/creating_score.png "Creating a new score")
4. Click **Save**.

   - The system creates the score and opens the **General** tab of the score's editing interface.
5. Switch to the **Rules** tab and click **New rule**.
6. Specify the following configuration options in the **New rule** dialog:

   - **Rule name**: Browsed smartphones
   - **Score value**: 1
   - **Rule type**: Activity
   - **Activity**: Page visit
   - **Activity URL**: _Starts with_ http://www.mysite.com/Products/Smartphones

     > **Info:** Enter your URL of the _Products/Smartphones_ section. The URL must be absolute.
   - **Recurring rule**: yes (checked)

     > **Info:** This rule adds one score point to contacts who view any page in the _Products/Smartphones_ section of the website (i.e. the list of available smartphone products and individual smartphone detail pages). The rule is recurring, which means that points are added even for repeated visits of the pages.
7. Leave the remaining options blank or with their default values and click **Save**.
8. Click **New rule** next to the **Save** button and enter the following configuration:

   - **Rule name**: Works as manager
   - **Score value**: 5
   - **Rule type**: Attribute
   - **Attribute**: Job title
   - **Condition**: _Contains_ manager

     > **Info:** This attribute rule adds 5 score points to contacts who have the word _manager_ in their job title (such contacts are likely to need smartphones in their job).
9. **Save** the rule and repeat the procedure one more time to create the final rule:

   - **Rule name**: Has business phone
   - **Value**: 5
   - **Rule type**: Attribute
   - **Attribute**: Business phone
   - **Condition**: _Is not empty_

     > **Info:** This rule adds 5 score points to contacts who have a business phone number (such contacts can also be considered as potential smartphone buyers).

If you switch back to the score's **Rules** tab, you can see a list of the defined rules.

![List of created scoring rules](https://docs.kentico.com/docsassets/13/example-using-contact-scoring/list_of_rules.png "List of created scoring rules")

## Trying out the scoring functionality

Now that you have defined the rules for the score, you can test how the system adds points to contacts.

This example uses two new contacts, which the system creates automatically when you access the website as a public visitor from two different browsers. If you already have contact information stored in your browsers, your contact data may be different, but the scoring functionality still works as demonstrated in the example.

1. Sign out of the administration interface, navigate to the **/Products/Smartphones** section of the site and view several product detail pages of smartphones.
2. Sign in to the administration interface and open the **Scoring** application.
3. **Edit** () the **Interested in smartphones** score.
4. Open the **Contacts** tab.

   - You should see a new contact with a score that matches the number of pages that you viewed in the Smartphones section.

   ![An anonymous scored contact](https://docs.kentico.com/docsassets/13/example-using-contact-scoring/scored_contact.png "An anonymous scored contact")
5. Open a different web browser and access the website's **/Products/Smartphones** section as an anonymous visitor again. This time, only view the list of smartphones once.
6. Switch back to the first browser and refresh the **Contacts** tab.
   - You should see another contact, with only one point added for viewing the list of smartphones.
7. Click **View contact details** () next to the second contact.

   - A contact profile opens on the **Profile** tab.
   - Click **Edit** to modify the properties of the given contact. The options are the same as in the contact editing interface (see the [Working with contacts](https://docs.kentico.com/13/on-line-marketing-features/managing-your-on-line-marketing-features/contact-management/working-with-contacts.md) for details).
8. In the **Contact details** category, fill in a **Business phone** number and a **Job title** containing the word _manager_.
9. Click **Save** and **Close** the dialog.

   - Back on the **Contacts** tab, you should see that the second contact now has 11 points (you may need to refresh the tab). The system added 5 points because the contact has a business phone and another 5 due to the word _manager_ in the contact's job title.

   ![Contact scores after changing contact attributes](https://docs.kentico.com/docsassets/13/example-using-contact-scoring/scored_contacts.png "Contact scores after changing contact attributes")
10. Click **View score details** () next to the contact.

    - The score details dialog shows exactly which rules have contributed to the contact's total score.

    ![Viewing score details](https://docs.kentico.com/docsassets/13/example-using-contact-scoring/score_details.png "Viewing score details")
