Previous visited pages or categories | Community
Skip to main content
May 10, 2021
Solved

Previous visited pages or categories

  • May 10, 2021
  • 5 replies
  • 2726 views

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

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 Pawan-Gupta

please refer this - https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/variables-profiles-parameters-methods.html?lang=en#section_8F25958273164EBAA6DC659302993FD3

 

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

}

}

5 replies

PratheepArunRaj
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 10, 2021
Using recommendations?
Thank You, Pratheep Arun Raj B (Arun) | Xerago | Terryn Winter Analytics
CROdevAuthor
May 10, 2021
no using Target
PratheepArunRaj
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 10, 2021
Yes, Target only. Are you trying to use recommendations to list the previous pages for user experience?
Thank You, Pratheep Arun Raj B (Arun) | Xerago | Terryn Winter Analytics
CROdevAuthor
May 10, 2021

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.

Pawan-Gupta
Pawan-GuptaAccepted solution
Level 8
May 10, 2021

please refer this - https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/variables-profiles-parameters-methods.html?lang=en#section_8F25958273164EBAA6DC659302993FD3

 

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

}

}