time on site with web sdk | Community
Skip to main content
Michael_Soprano
Level 10
October 21, 2025
Solved

time on site with web sdk

How would you do such a use-case that user spent more than 10 sec on some specific site?

kandersen-1
kandersen-1Accepted solution
New Participant
October 27, 2025

@kandersen-1 if I pass it with Web SDK to the profile would it be possible to use on the same visit? What is the latency from your experience?


@michael_soprano It's available on the next Target request, so you'll be able to use it immediately.

I share weekly Adobe tips on LinkedIn—connect with me!Every Wednesday: "Something a client recently asked..."LinkedIn Profile

6 replies

kandersen-1
New Participant
October 23, 2025

@michael_soprano I would achieve this through profile scripts. There's a previous thread here with an example profile script, that you can customize. If it needs to only count on a certain site/section you can include that in the logic for the profile script.

 

 

Translate
I share weekly Adobe tips on LinkedIn—connect with me!Every Wednesday: "Something a client recently asked..."LinkedIn Profile
bjoern__koth
New Participant
October 22, 2025

Hi Michael,

this sounds more like a tag management task since it supports a Time on Page event type.

 

and in your case send a custom event type with whatever is needed in Target?

alloy("sendEvent", { "renderDecisions": true, "xdm": { "eventType": "web.webinteraction.timeOnPage" // whatever makes sense, there is no out of the box event name }, "data": { "__adobe": { "target": { "pageType": "Order Confirmation", "timeOnPage": 10, } } } })

  

Translate
Cheers from Switzerland!
Michael_Soprano
Level 10
October 24, 2025

My case is as below:

Session1

User spents more than 10 secs on a specific site

 

Session 2:

We personalize for that user a banner

 

How to use that attribute 

 "timeOnPage": 10,

in Audiences?

Custom?

 

 

Translate
kandersen-1
New Participant
October 27, 2025

@michael_soprano If you want to use it on the next visit, it needs to be passed as a profile parameter, so it is saved to the profile of the user. 

When the profile parameter has been passed, then when creating the segment you'll find it under Visitor Profile. 

Translate
I share weekly Adobe tips on LinkedIn—connect with me!Every Wednesday: "Something a client recently asked..."LinkedIn Profile