Processing logs is <i>a lot</i> cheaper than the javascript download and other additional http requests needed for google analytics, not to mention the privacy costs. Cheaper for the website, the user, and the web in general.<p>Not to mention you get perfectly accurate analytics, with no loss due to request blockers or disabled javascript.<p>The code for this is generic. An open source solution costs nothing beyond some CPU to process the logs and a database to store the analytics.