Profile script for Browse time. | Community
Skip to main content
February 15, 2023
Solved

Profile script for Browse time.

  • February 15, 2023
  • 1 reply
  • 1099 views

Hello Community,

If need to target users based on how long they spend time on the site. I found this built-in profile variable (profile.browserTime), however the results are not as expected.
-Could someone please explain how to use this profile variable in my script?

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Perrin_Ennen

Hello @saiganeshreddy,
profile.browserTime specifies only the respective browser time. With this you can e.g. determine if it is morning or rather evening for the user and accordingly display e.g. personalizations.

You can write your own script so a kind of counter. There are several possibilities how to build it - like listening to the beforeunload event, etc.. Here you must also know whether a counter can be reset (if desired). Was then rather that finally in the profile in ranges deposit e.g.

 

less than 15 seconds
15 to 29 seconds
30 to 59 seconds
1 to 3 minutes
3 to 5 minutes
5 to 10 minutes
10 to 15 minutes
15 to 20 minutes
20 to 30 minutes
more than 30 minutes

1 reply

Perrin_Ennen
Community Advisor
Perrin_EnnenCommunity AdvisorAccepted solution
Community Advisor
February 15, 2023

Hello @saiganeshreddy,
profile.browserTime specifies only the respective browser time. With this you can e.g. determine if it is morning or rather evening for the user and accordingly display e.g. personalizations.

You can write your own script so a kind of counter. There are several possibilities how to build it - like listening to the beforeunload event, etc.. Here you must also know whether a counter can be reset (if desired). Was then rather that finally in the profile in ranges deposit e.g.

 

less than 15 seconds
15 to 29 seconds
30 to 59 seconds
1 to 3 minutes
3 to 5 minutes
5 to 10 minutes
10 to 15 minutes
15 to 20 minutes
20 to 30 minutes
more than 30 minutes