Category Affinity is not working

This article addresses an issue where category information is correctly passed in Adobe Launch’s Category Affinity call to Adobe Target. To resolve this, start debugging implementation by looking at the visitor profile in debug mode by creating a profile script to show the category affinity.

Description description

Environment

Adobe Target

Issue/Symptoms

After having already implemented Category Affinity (through Adobe Launch) on the website following the guidelines in the Category Affinity article (in the Adobe Target Documentation in Adobe Experience League), you see that the category information is correctly passed in the call to Adobe Target.

However, it appears that no category affinity is being calculated based on this input.

When you look into your profile using the debugging tool, the value of user.categoryAffinity remains empty, no matter how many pages with category you visit.

Resolution resolution

To solve this issue, start debugging implementation by looking at the visitor profile in debug mode:

  1. Create a profile script to show the category affinity. (This may be always empty).
  2. Create an activity.
  3. Review your profile scripts and make a small modification to make it work:

Before:

return user.categoryAffinity || "onbestaand";

After:

var affinity = user.categoryAffinity || "onbestaand";
return affinity;
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f