Expand my Community achievements bar.

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 and Adobe Champion
Using recommendations?

Avatar

Community Advisor and Adobe Champion
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

}

}