Set up affinities for a site
Before you can use affinity scores to personalize experiences in SitecoreAI, you must first set up affinities on your site pages.
Affinities describe what a page is about by defining the topics or categories associated with it. When visitors view those pages, SitecoreAI uses these affinities to understand what they are interested in.
Each affinity represents a specific topic of interest and consists of:
-
an Affinity name - the attribute you want to track (for example, product_type, model, focus).
-
an Affinity value - the value for that attribute on the page (for example, electric, SUV, performance).
When affinities are assigned to pages, SitecoreAI calculates affinity scores based on visitor behavior. These scores indicate how strongly a visitor is interested in each topic.
-
You must set up affinities on individual pages within a site.
-
Affinities assigned to pages on one site do not apply to other sites.
-
Each page can have up to 10 affinities.
-
Only pages with assigned affinities contribute to affinity score calculations.
Set up affinities on a page
Use affinities to define the topics or categories you want to track for each page.
Choose attributes that reflect the interests you want to track.
Example
For a page about vehicle models, you might configure the following affinities:
-
Affinity name: product_type and Affinity value: Electric
-
Affinity name: model and Affinity value: SUV
-
Affinity name: focus and Affinity value: Performance
When a visitor views this page, their affinity scores increase for each of these attributes and values, helping identify their areas of interest.
To set up affinities on a page:
-
In the navigation menu, click Performance.
-
In the left-hand pane, select Settings
> Affinities. -
On the Affinities page, select the site where you want to set up affinities. The site pages appear in a list similar to the content tree in Page builder.
-
Select the relevant page then click Add affinity.
-
In the Add affinity dialog, specify the details that define the topic of interest on the page:
-
In the Affinity name field, enter the attribute you want to track on the page (for example, product_type, model, focus).
-
In the Affinity value field, enter the corresponding value for that attribute (for example, electric, SUV, performance).
For example, on a vehicle product page, you might add an affinity:
-
Affinity name: product_type and Affinity value: Electric
When a visitor views this page, their affinity score increases for the Electric value of the product_type attribute, indicating interest in electric vehicles.
TipWhen entering affinity names and values, use
a-z,0-9, and underscores for spaces. -
-
Click Save.
-
To add additional affinities to the same page, repeat these steps. You can add up to 10 affinities per page.
Next steps
After affinities are set up, SitecoreAI starts calculating affinity scores as visitors view your pages.
You can then use these scores to customize experiences based on what each visitor is most interested in. See Personalize a page using affinities.