Adobe target test for last page visited and showing continue link with link to previous page visited in the previous session
I am doing a test where the user is to be shown a pop up with continue link that will take him to previous page link . Now that pop up will come in the users next visit . And link will be from his last session last page which he exited . The pop up should show only only on the home page and should show only on the next visit and once shown should not be shown again . I am having trouble in writing the script where these conditions are met. Can someone pls help in this ?
Conditions-
1. Activity only on Home Page
2. Activity to be shown in the next visit only once.