#hejto ᕦ( ͡° ͜ʖ ͡°)ᕤ #statystyka
o nieeeee biedny wypok ( ͡°( ͡° ͜ʖ( ͡° ͜ʖ ͡°)ʖ ͡°) ͡°)

#hejto ᕦ( ͡° ͜ʖ ͡°)ᕤ #statystyka
o nieeeee biedny wypok ( ͡°( ͡° ͜ʖ( ͡° ͜ʖ ͡°)ʖ ͡°) ͡°)

@bucz The duration of a user's visit to a website can be measured using client-side or server-side tracking. Here's how:
Client-side Tracking (JavaScript)
When a user lands on a webpage, a JavaScript snippet captures the timestamp (startTime).
As the user navigates between pages or performs actions, additional timestamps are captured.
When the user exits the page or performs a defined action (like clicking an "Exit" button), a final timestamp (endTime) is captured.
The difference between endTime and startTime gives the duration of the visit.
@grv a to nie wiedziałeś? Można dodać listenera na event wysyłany jak zamykasz kartę albo całą przeglądarkę https://medium.com/coding-beauty/javascript-detect-browser-tab-close-840a44c82d17
Jeśli to to, to na mobilnym safari na szczęście nie działa ;)
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onbeforeunload_addeventlistener
Zaloguj się aby komentować