Previous visited pages or categories | Community
Skip to main content
New Participant
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

Pawan-Gupta
Pawan-GuptaAccepted solution
New Participant
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

}

}

CROdevAuthor
New Participant
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.

PratheepArunRaj
New Participant
May 10, 2021
Yes, Target only. Are you trying to use recommendations to list the previous pages for user experience?
CROdevAuthor
New Participant
May 10, 2021
no using Target
PratheepArunRaj
New Participant
May 10, 2021
Using recommendations?