Javascript + PHP script to keep track of unique visitors on your site, Logs resolution, viewport, browser, os in database.