user.activeActivities always null in Profile Script?

Level 2
Level 2

Hi I'd like to create a test that isnt expose to visitors qualifying for a specific test earlier in the journey i.e. on homepage.

I tried creating the following Profile Script and using this in my audience but based on debugging/ trace it seems like activeActivities always returns an empty array in the profile script.

if(user.activeActivities.indexOf(123456) == -1){
   return 'true';

How can i resolve this?



Profile Scripts
1 Reply