Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Create a profile script for users visited multiple pages in the last 7 days

Avatar

Level 2

I want to target users who have visited Page A or Page B in the last 7 days. Specifically:

  • Show Content A to users who visited Page A.

  • Show Content B to users who visited Page B.

If a user visited both pages in the same session (or within 7 days), what will be shown by default, and how should we handle this overlap?

there are 7 such pages and 7 personalized banners to show users who have visited the page.  

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

3 Replies

Avatar

Level 10

Target does not store past user behaviour. 

What you need to do

1. New session - user visited some page - put some attribute on user's profile that he visited that page 

2. If this user comes back - check using profile scripts if that user has that attribute - if yes - assign specific experience to that user  

Avatar

Level 2

you mean on each page i want to track, i should pass a profile. parameter via targetPageParamsAll and create a profile script that checks the stored visited_profilescriptand uses the timestamp?

Avatar

Level 3

@GauravDu1 To handle users who visit multiple pages within the last 7 days, a good approach is to track the timestamp of each page visit and send that info to Adobe Target. This can be done either by using profile scripts or by sending profile parameters in global or custom mbox calls.

Here’s how you can do it:

  • Use different profile scripts or send profile parameters to store the visit timestamp for each page separately.
  • Then, create audiences in Target’s Audience Library based on these visitor profile attributes.
  • By comparing timestamps with the “is greater than” condition, you can identify which page was visited most recently and show the corresponding personalized content in real time.

This ensures that even if someone visits multiple pages, they’ll see the content related to their latest visit.
Note: Audience qualification will only work after these changes are published to production, so make sure to push the updates accordingly.

Also, please check out Adobe’s best practices on profile scripts and parameters here to avoid any performance issues with Target’s API response time:
https://experienceleague.adobe.com/en/docs/target/using/audiences/visitor-profiles/profile-parameter...

Hope this helps clear things up! Feel free to reach out if you have any more questions.

Best,
Narendra