hi @rkmk107 - as long as you are sending the page-name and logged-in-state to Adobe Target (as parameters) then you can use Profile scripts to capture the page-name for the last-viewed-page. Here's an example code (you may need to change the variable names)
if (mbox.param('logged_in_status')
&& mbox.param('logged_in_status') == "logged-in"
&& mbox.param('page_name')){
return mbox.param('page_name');
}
You can then access the last viewed page-name using the code like below:
var last_viewed_page = "${user.YOUR_PROFILE_ATTRIBUTE}";