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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Previous visited pages or categories

CROdev
Level 1
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

mbox parameters Profile Script Recently Viewed Items
1 Accepted Solution
rush_pawan
Correct answer by
Community Advisor
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
PratheepArunRaj
Moderator
Moderator
Yes, Target only. Are you trying to use recommendations to list the previous pages for user experience?
CROdev
Level 1
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.

rush_pawan
Correct answer by
Community Advisor
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