From the Keyboard

Tutorials, articles, and my thoughts on technology, development, and the world.

Latest Post

Browser detection using JavaScript’s user agent
Tutorial

Browser detection using JavaScript’s user agent

What browser your website visitors are using? It’s a vital question for developers, designers, and marketers alike. Knowing your audience’s browser landscape helps you tailor your web experience for optimal performance and engagement.

Sujeet Pal

January 31, 2022

All Posts

JavaScript: Track Time Spent By User on Webpage without Google Analytics
Tutorial

JavaScript: Track Time Spent By User on Webpage without Google Analytics

To track time spent by user/website visitor on a given page, we will be using JavaScript’s onbeforeunload event. The onbeforeunload event occurs when the document is about to be unloaded.

January 13, 2022