Requires macOS Sierra 10.12 or newer.
You can download for a different system here.
Firefox users: To accurately record websites in Firefox, you should install the RescueTime Add-on.
Open the file 'RescueTimeInstaller.pkg' and follow the instructions.
(It's probably in your downloads folder)
After installing, sign in to the RescueTime app from your menu bar.