How the alternative to Google Analytics was built