What is the difference between Favorite Category and First Category in Category Affinity | Community
Skip to main content
Adobe Employee
April 19, 2018

What is the difference between Favorite Category and First Category in Category Affinity

  • April 19, 2018
  • 2 replies
  • 10143 views

What is the difference between Favorite Category and First Category in Category Affinity?  Do both reference user.categoryAffinities[0]?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Rajneesh_Gautam_
Community Advisor
Community Advisor
April 23, 2018

Hi Benjamin, you are right - favorite category is same as user.categoryAffinities[0].

Regards,

Rajneesh

Prarthana_Sharm
Level 2
September 4, 2019

Please help me understand this more - user.categoryAffinities[0]?

and what are all these value Fist Category, Second Category mean and how do they translate?

MihneaD
Adobe Employee
Adobe Employee
September 4, 2019

benjamin247​, Prarthana Sharma​,

For more on how category affinity is calculated see this document here: Category affinity

If this satisfies your query please like, mark as helpful and mark as answer. Otherwise lets keep the conversation going. Hope you have a wonderful day.

Mihnea Docea | Technical Support Consultant | Customer Experience | Adobe | (:: 1 (800) 497-0335

Prarthana_Sharm
Level 2
September 5, 2019

Hi Mike,

In the article it says "The category affinity feature automatically captures the categories a user visits and then calculates the user's affinity for the category so it can be targeted and segmented on. This helps to ensure that content is targeted to visitors who are most likely to act on that information."

So how does it differentiate first, second or favorite?

Andrey_Osadchuk
Level 10
September 5, 2019

Prarthana Sharma,

categoryAffinities returns an array of values. The lower the element index is the higher the weight (score) the corresponding value has.

Second, third, etc. categories are just references to the elements inside the returned array.

user.categoryAffinities[0] - First

user.categoryAffinities[1] - Second

user.categoryAffinities[2] - Third

etc.

Does it answer your question?