Expand my Community achievements bar.

Applications for the 2024 Adobe Target Community Mentorship Program are open! Click to the right to learn more about participating as either an Aspirant, to professionally level up with a new Certification, or as a Mentor, to share your Adobe Target expertise and inspire through your leadership! Submit your application today.
SOLVED

Previous visited pages or categories

Avatar

Level 1

Is there a library of profile script to achieve the use case in which we want to display the previous visited pages or categories

1 Accepted Solution

Avatar

Correct answer by
Level 9

please refer this - https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/variables-profiles-p...

 

also, you can code something like this. just sample but you can develop better using above info

 

if(user.isFirstSession){

//do somethign for first time

}else if(user.isNewSession){

if(user.getLocal("lastsession")!=user.sessionId){

//do something for returned users

}

}

View solution in original post

5 Replies

Avatar

Community Advisor
Yes, Target only. Are you trying to use recommendations to list the previous pages for user experience?

Avatar

Level 1

well. the idea is to use profile script for capturing the pages then create an A/B test to surface those pages name and URLs.

Avatar

Correct answer by
Level 9

please refer this - https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/variables-profiles-p...

 

also, you can code something like this. just sample but you can develop better using above info

 

if(user.isFirstSession){

//do somethign for first time

}else if(user.isNewSession){

if(user.getLocal("lastsession")!=user.sessionId){

//do something for returned users

}

}