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

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
Community Advisor

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

Moderator
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
Community Advisor

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

}

}