Audience creation - personalization based on previous URLs of the session | Community
Skip to main content
Michael_Soprano
Level 10
October 25, 2025
Solved

Audience creation - personalization based on previous URLs of the session

  • October 25, 2025
  • 2 replies
  • 237 views

On my project I have got only AT. 

if (User viewed == finance category)

then (homepage personalization)

Target does not store previous URLs of the session, is it the only workaround?
Send through web sdk:

alloy("sendEvent", {

  "data": {

    "__adobe": {

      "target": {

        "profile.category": "finance"

      }}}}

 

AM I able to use that attribute during the same session?

Best answer by kandersen-1

@michael_soprano yes, profile parameters are available immediately. 

 

I would capture the categories via a profile script. Assuming that you're populating user.categoryId you could also consider using user.categoryAffinities, which contains an array of the top 5 categories in prioritized order:

user.categoryAffinities: [Cat, Icecream, Camera, Sun, Pizza]

If you need more than 5 I would use a profile script.

 

 

2 replies

kandersen-1
Community Advisor
kandersen-1Community AdvisorAccepted solution
Community Advisor
October 28, 2025

@michael_soprano yes, profile parameters are available immediately. 

 

I would capture the categories via a profile script. Assuming that you're populating user.categoryId you could also consider using user.categoryAffinities, which contains an array of the top 5 categories in prioritized order:

user.categoryAffinities: [Cat, Icecream, Camera, Sun, Pizza]

If you need more than 5 I would use a profile script.

 

 

Test forum signature
purnimajena
Level 3
October 28, 2025

Hi @michael_soprano,

Yes, you can use that approach.

Adobe Target doesn’t automatically store previously visited URLs in a session. So if you want to personalize the homepage based on what the user viewed earlier (like the finance category), you’ll need to send that info to Target manually. Once this profile attribute (profile.category) is sent, it becomes part of the user’s Target profile.
You can use it within the same session for personalization, as long as the next Target call happens after this event is processed.
Also there are few other work arounds depend on your set up such as using cookie or local storage  document.cookie = "lastCategory=finance; path=/";

Then, on the homepage, read that value and pass it to Target via Web SDK before personalization runs.
This lets you reuse the data in the same session even if Target hasn’t updated the profile yet.