Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Boost 5
Level 2
benjamin247
Level 2

Likes

7 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile

Avatar
Boost 5
Level 2
benjamin247
Level 2

Likes

7 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile
benjamin247
Level 2

19-04-2018

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

Replies

Avatar

Avatar
Contributor
Level 4
rajneesh_gautam
Level 4

Likes

65 likes

Total Posts

68 posts

Correct Reply

12 solutions
Top badges earned
Contributor
Ignite 5
Ignite 3
Ignite 1
Validate 1
View profile

Avatar
Contributor
Level 4
rajneesh_gautam
Level 4

Likes

65 likes

Total Posts

68 posts

Correct Reply

12 solutions
Top badges earned
Contributor
Ignite 5
Ignite 3
Ignite 1
Validate 1
View profile
rajneesh_gautam
Level 4

23-04-2018

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

Regards,

Rajneesh

Avatar

Avatar
Validate 1
Level 2
Prarthana_Sharm
Level 2

Likes

6 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Validate 1
Level 2
Prarthana_Sharm
Level 2

Likes

6 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
Prarthana_Sharm
Level 2

04-09-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?

Avatar

Avatar
Coach
Employee
mikewebguy
Employee

Likes

634 likes

Total Posts

402 posts

Correct Reply

85 solutions
Top badges earned
Coach
Contributor
Shape 25
Shape 1
Shape 10
View profile

Avatar
Coach
Employee
mikewebguy
Employee

Likes

634 likes

Total Posts

402 posts

Correct Reply

85 solutions
Top badges earned
Coach
Contributor
Shape 25
Shape 1
Shape 10
View profile
mikewebguy
Employee

04-09-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

Avatar

Avatar
Validate 1
Level 2
Prarthana_Sharm
Level 2

Likes

6 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Validate 1
Level 2
Prarthana_Sharm
Level 2

Likes

6 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
Prarthana_Sharm
Level 2

05-09-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?

Avatar

Avatar
Shape 25
MVP
Andrey_Osadchuk
MVP

Likes

536 likes

Total Posts

968 posts

Correct Reply

263 solutions
Top badges earned
Shape 25
Bedrock
Coach
Boost 500
Affirm 250
View profile

Avatar
Shape 25
MVP
Andrey_Osadchuk
MVP

Likes

536 likes

Total Posts

968 posts

Correct Reply

263 solutions
Top badges earned
Shape 25
Bedrock
Coach
Boost 500
Affirm 250
View profile
Andrey_Osadchuk
MVP

05-09-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?

Avatar

Avatar
Validate 1
Level 2
Prarthana_Sharm
Level 2

Likes

6 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Validate 1
Level 2
Prarthana_Sharm
Level 2

Likes

6 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
Prarthana_Sharm
Level 2

05-09-2019

Hi Andrey,

Sorry for asking question but I am really trying to make this work. So how do i then define the affinities in array?

Avatar

Avatar
Shape 25
MVP
Andrey_Osadchuk
MVP

Likes

536 likes

Total Posts

968 posts

Correct Reply

263 solutions
Top badges earned
Shape 25
Bedrock
Coach
Boost 500
Affirm 250
View profile

Avatar
Shape 25
MVP
Andrey_Osadchuk
MVP

Likes

536 likes

Total Posts

968 posts

Correct Reply

263 solutions
Top badges earned
Shape 25
Bedrock
Coach
Boost 500
Affirm 250
View profile
Andrey_Osadchuk
MVP

05-09-2019

Please take some time and attentively read this documentation article: Category affinity

Example:

user.categoryId=clothing,shoes,nike,running,nike clothing,nike shoes,nike running shoes

user.categoryId is the parameter. You can implement it as an mbox or global mbox parameter in DTM/Launch/JavaScript. The list of values should be separated by a comma character.

Read this post for code examples >> How to pass param via DTM script

Avatar

Avatar
Validate 1
Level 2
Prarthana_Sharm
Level 2

Likes

6 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Validate 1
Level 2
Prarthana_Sharm
Level 2

Likes

6 likes

Total Posts

21 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
Prarthana_Sharm
Level 2

05-09-2019

Thanks for quick reply -

yes I have implemented that function to ready the category id from page category and i see this in my network tab -

user.categoryId: personal

But still not understanding what am i getting out of it? So should I assign/pass multiple categories  instead of just page category?

Also how do i dynamically assign this attribute when creating audience? 

And assigning  static value when i specify 3rd category in the audience then how will it retrieve that activity for that audience?