Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards
SOLVED

Audience creation - personalization based on previous URLs of the session

Avatar

Level 10

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?

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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.

 

 


I share weekly Adobe tips on LinkedIn—connect with me!

Every Wednesday: "Something a client recently asked..."

LinkedIn Profile

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@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.

 

 


I share weekly Adobe tips on LinkedIn—connect with me!

Every Wednesday: "Something a client recently asked..."

LinkedIn Profile

Avatar

Level 3

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.