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

user.activeActivities always null in Profile Script?

Avatar

Avatar
Give Back 3
Level 2
richardlee
Level 2

Likes

10 likes

Total Posts

15 posts

Correct Reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 5
View profile

Avatar
Give Back 3
Level 2
richardlee
Level 2

Likes

10 likes

Total Posts

15 posts

Correct Reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 5
View profile
richardlee
Level 2

11-03-2020

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.get('not_in_homepage_activity')){
if(user.activeActivities.indexOf(123456) == -1){
   return 'true';
}
}

How can i resolve this?

 



 

Profile Scripts

Accepted Solutions (0)

Answers (0)