How to track user time on site

前端 未结 5 1728
渐次进展
渐次进展 2021-01-30 14:49

I\'m looking to track users average time on a website (in the same way that Google analytics does) for internal administration.

What\'s the easiest way to do this?

5条回答
  •  孤独总比滥情好
    2021-01-30 15:18

    Use timeonsite JS for web and mobile browsers. It tracks time on site accurately.

     
    

    At the page end, call

    
    

    As simple as that,

    It seems to work even in mobile browsers like IPhone, IPad, mobile Safari etc. that doesn't support window.unload() events natively.

提交回复
热议问题