Affinities
In SitecoreAI, affinities are preference scores based on the pages a visitor views on your website. They help you understand what topics, brands, and types of content matter most to each visitor. Affinities answer a key question: What is each website visitor most interested in? and enable you to personalize the content they see accordingly.
How affinities work
After setting up affinities for a site, SitecoreAI automatically calculates and continuously updates affinity scores as visitors view your pages. Throughout each session, SitecoreAI evaluates page views in near real time, recalculating and updating scores based on visitor behavior.
Affinity scores are dynamic and reflect each visitor’s changing interests over time. For example, if a visitor frequently views pages from a specific category like speakers, their affinity score for that category increases. If they later begin exploring more pages from a different category, the scores adjust to reflect those new interests. Because scores are updated continuously during the session, SitecoreAI can show the visitor personalized page variants based on their near real-time affinity score.
When the session ends, the final scores are saved to the profile and remain unchanged until the visitor's next session. Those scores are used to recalculate affinities and drive personalization in future sessions.
The visitor's affinity scores are retained on their profile for up to 30 days, ensuring they remain aligned with recent interests. Because these scores are calculated automatically by SitecoreAI, they cannot be manually created, modified, or recalculated.
Using affinities for personalization
Affinities make it easier to deliver relevant, personalized experiences based on each visitor's interests. You can use them to create tailored page variants for different audiences through an out-of-the-box affinity condition.