What are the advantages of web server log file analysis over web services like google analytics?
What are the advantages of google analytics like tools over web server log file analysis?
What are the advantages of web server log file analysis over web services like google analytics?
What are the advantages of google analytics like tools over web server log file analysis?
Pure log file analytics:
Pure javascript analytics:
There are also analytics platforms that combine both log file analysis and javascript tags. As well, Pion provides an analytics platform that combines log file analysis and packet sniffing.
A few thoughts:
Web based tools like Google Analytics require JavaScript to function completely. Some of them even requires JavaScript to be turned onto function at all. So if a user doesn't have JavaScript enabled your site statistics won't be accurate or complete. They also may slow your site down as the user has to wait for that code to fully download and be parsed fort it to work. If the stats provider's server is slow at that moment your page will seem to be slow to the user.
On the plus side, they are easy to set up as they only require a small snippet of code to be placed in your pages and you're up and running. They also tend to stay on top of updated bot and browser lists which they can apply immediately with no work from you required so their reports are always current.
Web based tools like Awstats don't require any client side and thus will offer a complete set of statistics from every user. If you use a web host that provides a basic control panel one of these is usually included so no set up is required.
On the downside if you don't have a server with a pre-installed control panel or want to use a different one then is included you'll have to install one yourself. Installing software on web servers, particularly *nix systems, is not for the lighthearted. As browsers and bots continually change you'll need to make sure you keep this software up to date otherwise you'll have a lot of "unknown" bots and browsers in your stats which isn't particularly helpful.
IMHO comparing Web server logs file analysis to Google Analytics it's like comparing apples to pears. 1 day of server log file can be 1000 text lines to read through or more (depending on the number of visits on your site), this is totally unreadble unless you want to spend the rest of your life analyzing it line by line.
Google Analaytics can be somehow compared to another graphic tools to analyze your webistes' visists like the excellent Awstats which is included in the vast majority of all hosting plans (comes with cPanel). Awstats is based on server log analysis (as you mention in your question), but it shows you result in a graphical form very easy ot read.
Google Analytics vs Awstast (still IMO)
Google Analytics pros
Google Analytics cons
Awstast pros
Awstats cons
It really comes down to flexibility & the amount of work you want to do. If you run a small to medium website and want some generic analytics about your traffic, by all means, throw your data into Google Analytics and never look back. It's an excellent system that reliably gives you timely insight into user behavior on your website.
If your site is complicated & has many unconventional user flows (lots of AJAX?) that you'd like to follow, you might not be able to shoehorn things into GA. Also, if you want to correlate multiple sources of data with your web traffic (eg user information from your database), you're going to need to start thinking about a custom solution as well.
Beyond the capabilities of the tools, you need to look at the tradeoffs between client and server-side logging. Server-side logging always works, regardless of what the client does but, unfortunately, it is only able to gain a limited amount of information from the HTTP request. Client-side logging can be more flexible & gather more information but you have to worry about setting up an extra layer of services to collect them & there's the chance that you might miss some small portion of your traffic.