Parse your server's access log file. The way it had been done for decades. "Analog" was popular then, Should be better options now.
Access logs are almost useless for analytics these days... all they give you is the URL that was visited and some extremely rough idea what OS and browser the client is using (UA parsing is a hellhole ). You don't get any more detailed information (e.g. device class, screen size/orientation) from analytics logs. Also, if you're using one of the free hosting providers (GH Pages and the likes) you're not even going to…
Most of the other metrics are noise and don't impact business decisions.