Category Affinity is Returning Two Category Affinities

Avatar

Avatar
Boost 5
Level 2
colinr96046230
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
colinr96046230
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
colinr96046230
Level 2

09-01-2019

Hey All,

We have implemented Category Affinity on our site, and for some reason it is returning two "Category Affinities". We have seen two users sitting next to each other visiting the same pages tally different affinities. It seems to consistently tally one affinity, though it will change across browser sessions. All we are passing is the category, nothing else. Sample results are below:

CategoryAffinity[

  visitedEnvironments=[],

  categoryAffinities={

    0=[

      CategoryAffinity.CategoryAffinityValue[

        categoryId=Australia,

        score=48.0

      ],

      CategoryAffinity.CategoryAffinityValue[

        categoryId=Carribean,

        score=45.0

      ],

      CategoryAffinity.CategoryAffinityValue[

        categoryId=Alaska,

        score=4.0

      ]

      ],

    7664=[

      CategoryAffinity.CategoryAffinityValue[

        categoryId=Carribean,

        score=94.0

      ],

      CategoryAffinity.CategoryAffinityValue[

        categoryId=Mexico,

        score=26.0

      ],

      CategoryAffinity.CategoryAffinityValue[

        categoryId=,

        score=13.0

      ],

      CategoryAffinity.CategoryAffinityValue[

        categoryId=Europe,

        score=12.0

      ],

      CategoryAffinity.CategoryAffinityValue[

        categoryId=South America,

        score=10.0

      ]

    ]

  }

]

Any advice you have would be greatly appreciated! Thank you!

--Colin

Replies

Avatar

Avatar
Boost 5
Level 2
colinr96046230
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
colinr96046230
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
colinr96046230
Level 2

09-01-2019

We have used the global mbox (which is handling Category Affinity) across multiple brand sites. HOWEVER, we have verified that the value incrementing different Category Affinities happens on the same brand site.

Avatar

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
ryanr701
Employee

10-01-2019

Hi Colin,

This appears like the structure I'd expect when the visitor is hitting more than one Target host group (Target > settings > host groups). You'll have a category affinity array for each host group. Usually this would be a staging site versus a dev or production site. If you've mapped different domains/subdomains to be staging or dev hosts and then visited both versions of the domain with the same browser/session you'd see a couple of arrays showing up in the user.categoryAffinity object like you are showing. Is this your case?

Avatar

Avatar
Boost 5
Level 2
colinr96046230
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
colinr96046230
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
colinr96046230
Level 2

10-01-2019

Thanks for the reply! This might be it - we have the DTM debugger, so it may be that one of us had our staging library turned on while the other didn't. I'll give that a look.

Avatar

Avatar
Boost 5
Level 2
colinr96046230
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
colinr96046230
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
colinr96046230
Level 2

10-01-2019

Sadly that did not solve it - with a fresh profile in the Cloud Debugger, I hit a destination page with Stage turned off, which incremented '7664'. I then (with another fresh profile), hit the same page with Stage turned on. This also incremented '7664'. I then turned Stage back off, retrieved yet another fresh profile, and hit the same page, this time incrementing '0'.

I'm not sure what the heck could causing it at this point - I am now only getting '7664' (after the one time of getting '0').

Avatar

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
ryanr701
Employee

14-01-2019

Can you share a link? You can DM it to me if you prefer. Maybe I can spot what's going on that way.

Avatar

Avatar
Boost 5
Level 2
colinr96046230
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
colinr96046230
Level 2

Likes

9 likes

Total Posts

11 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 1
View profile
colinr96046230
Level 2

14-01-2019

PM'd!