The category affinity feature in Adobe Target automatically captures the categories on your site that a user visits and then calculates the user’s affinity for each category so it can be targeted and segmented on. Category affinity helps to ensure that content is targeted to visitors who are most likely to act on that information.
Whenever a user visits your site, profile parameters specific to the visitor are recorded in the Target database. This data is tied to the user’s cookie. One useful parameter is user.categoryId
, an mbox parameter assigned on a product page. As the visitor continues to browse, or returns for another session, the categories of products a particular user views can be recorded. You can also record category information by passing it as the mbox parameter user.categoryId
in any mbox (including a nested mbox), as a URL parameter user.categoryId
, or in Target page parameters with a global mbox. See your account representative for more details.
Separate categories with a comma to include an item in multiple categories. For example:
user.categoryId=clothing,shoes,nike,running,nike clothing,nike shoes,nike running shoes
Based on the frequency and recency of visits to your product categories, the category affinity (if any) a user has is recorded. Category affinity can be used to target populations for your activities.
You can use user.categoryAffinities[]
in a profile script to return an array of the affinities that a visitor has populated. For more information, see user.categoryAffinities under Objects and methods in Profile attributes.
The user.categoryId
attribute used for category affinity algorithm is distinct from the entity.categoryId
attribute used for Adobe Target Recommendations’ product and content recommendations. user.categoryId
is required to track a user’s favorite category. entity.categoryId
is required to base recommendations on the current page’s or current item’s category. Pass both values to Target if you want to use both capabilities.
A visitor’s activity in one session, such as which category they view most often, can be used for targeting in subsequent visits. Each category page a visitor views during a session is captured, and his or her “favorite” category is calculated based on a recency and frequency model. Then, every time the visitor returns to the home page, the hero image area can be targeted to show content related to that user’s favorite category.
Suppose you sell musical instruments online and want to target sales promotions on bass guitars to visitors who have already expressed interest in guitars in the past. Using category affinity, you can create offers that display only to visitors with this category affinity.
The category affinity algorithm works as follows:
When several categories are passed within a single mbox call, the order of categories in categoryAffinities
is not guaranteed. An arbitrary category is recorded first and receives a score of 10.
For example, viewing the mens-clothing
category, then accessories
, then jewelry
, then accessories
again in a session results in affinities of:
accessories
: 9 (+5 – 1 + 5)
mens-clothing
: 8 (+10 – 1 – 1)
jewelry
: 5 (+5)
When the session ends, and the user later returns to the site, the scores are halved:
accessories
: 4.5 (9/2)
mens-clothing
: 4 (8/2)
jewelry
: 2.5 (5/2)
Assuming the user then views, in order, jewelry
, accessories
, beauty
, shoes
, and womens-clothing
:
accessories
: 6.5 (4.5 + 5 – 1 – 1 - 1)
womens-clothing
: 5 (+5)
jewelry
: 4.5 (2.5 + 5 – 1 – 1 - 1)
shoes
: 4 (+5 – 1)
beauty
: 3 (+5 – 1 - 1)
mens-clothing
is dropped after the final click of womens-clothing
as the lowest-scoring category with a score of 1 (4 – 1 – 1 - 1)
When the session ends, and the user later returns to the site, the scores are halved:
accessories
: 3.3 (6.5/2)
womens-clothing
: 2.5 (5/2)
jewelry
: 2.3 (4.5/2)
shoes
: 2 (4/2)
beauty
: 1.5 (3/2)
The following sections contain information to help you use a category affinity audience for targeting in an activity.
From the Audiences list, click Create Audience.
Or
To copy an existing audience, from the Audiences list, hover over the desired audience, then click the Copy icon. You can then edit the audience to create a similar audience.
Type a descriptive audience name.
Click + Add Rule > Visitor Profile.
From the Visitor Profile drop-down list, select Category Affinity.
Select the desired category:
Categories include:
The “Favorite Category” and “First Category” options are equivalent.
Choose the Evaluator:
Specify each new value in a separate line (for example, “shoes”).
Click Save.
You can use category affinity audiences in any activity. During the three-step guided workflow, on the Target step, choose the desired audience.