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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

personalization condition

Avatar

Level 4

How can we set a condition in Target so that if the personalization is seen once by audience (based on segment), that user will be excluded from seeing the personalization again?

3 Replies

Avatar

Employee

@Pradeep_Kumar_Srivastav In such scenarios, you can use the Profile script wherein "User.frequency" counts when personalization is seen and use this value in the audience conditions. 

 

Here you go for the code: 

Name: user.frequency

var frequency = user.get('frequency') || 0;
if (mbox.name == 'orderThankyouPage') {
    return frequency + 1;
}

Creates a variable called frequency, initializing it to either the previous value or 0, if there was no previous value. If the mbox name is orderThankyouPage, the incremented value is returned.

 

Refer to this link: https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/profile-parameters.h...

 

 

 

 

Avatar

Level 3

With "New Visitors" condition you might miss those who are not new to the site but haven't seen the experience before either because they didn't navigate to the page or the activity wasn't live by then. 

One other option you could try is to pass a custom code from within the Target experience to pass an mbox parameter - which could be used as a flag to indicate that the user has seen the experience. In your audience condition use this mbox parameter as an exclusion condition.