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
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?
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 - First
user.categoryAffinities - Second
user.categoryAffinities - Third
Does it answer your question?
Please take some time and attentively read this documentation article: Category affinity
user.categoryId=clothing,shoes,nike,running,nike clothing,nike shoes,nike running shoes
Read this post for code examples >> How to pass param via DTM script
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 -
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?