The WakaTime plugin works with Google Chrome Browser and is open-source on GitHub.
The Chrome extension shows the time you spend reading documentation, debugging a web app, and other browser based activity.
Install the Chrome Extension:
Login to WakaTime.
Use Chrome like you normally do and your time will be tracked for you automatically.
Visit https://wakatime.com/dashboard to see your logged time.