personalization condition | Community
Skip to main content
Pradeep_Kumar_Srivastav
Community Advisor
Community Advisor
August 30, 2022
Solved

personalization condition

  • August 30, 2022
  • 1 reply
  • 1079 views

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.
Best answer by dsingh16

@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

 

 

 

 

1 reply

dsingh16Adobe EmployeeAccepted solution
Adobe Employee
August 30, 2022

@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

 

 

 

 

Pradeep_Kumar_Srivastav
Community Advisor
Community Advisor
August 30, 2022

t

kchaitanya
August 30, 2022

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.