Skip to main content
Pradeep_Kumar_Srivastav
Community Advisor
Community Advisor
Aug 30, 2022 4:08 AM UTC
Solved

personalization condition

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
dsingh16Accepted solution
Adobe Employee
Aug 30, 2022 5:03 AM UTC

@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.html?lang=en

 

 

 

 

3 replies

dsingh16Adobe EmployeeAccepted solution
Adobe Employee
Aug 30, 2022 5:03 AM UTC

@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.html?lang=en

 

 

 

 

Translate
Pradeep_Kumar_Srivastav
Community Advisor
Community Advisor
Aug 30, 2022 5:27 AM UTC

t

Translate
kchaitanya
Level 3
Aug 30, 2022 2:05 PM UTC

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. 

Translate