Expand my Community achievements bar.

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

time on site with web sdk

Avatar

Level 10

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

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

View solution in original post

6 Replies

Avatar

Community Advisor and Adobe Champion

Hi Michael,

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

bjoern__koth_0-1761124910430.png

 

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,
            }
        }
    }
})

  

Cheers from Switzerland!


Avatar

Level 10

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?

Michael_Soprano_0-1761297876374.png

 

 

Avatar

Community Advisor

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


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

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

LinkedIn Profile

Avatar

Level 10

@kandersen 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?

Avatar

Correct answer by
Community Advisor

@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

Avatar

Community Advisor

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

 

 


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

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

LinkedIn Profile