There are 2 primary ways to collect and analyze web server log files. The first way is through the use of JavaScript code embedded between the [head] metatags of each page you need to analyze. The JavaScript code is executed when the page loads. An example of this service is Google Analytics.