Even if you started to use Log(psycho)Analyst and are very satistfied by the amazing amount of different reports proposed, you may want to have even better reports. This page proposes some tips to modify your web site, so that your log files are improved, and our log file analyzer can generate more evolved reports.
Select the appropriate log format
Your web server can usually output several kind of log formats. You should select the most complete format so that our log file analyzer can extract more information.
If possible, you should use the following log format (break on two lines for readability):
If not, you should use, on Apache web servers, the combined log format (not the simpler common log format).
Please refer to your web server documentation for more information on how to change your log file format.
Add a tracker on some pages
What information are extracted?
Java Web Start;
Macromedia's Flash player;
Macromedia's Director plugin;
Real Media Player;
Scalable Vector Graphics (SVG);
Windows Media Player;
Where to put the tracker?
If you care about the page loading time, you should so add the tracker code only on specific pages. The ideal would be to have only one page per visit. Log(psycho)Analyst is smart enough to tell you on which pages you should put the tracker: have a look at the "Advice" page in the server statistics.
You can insert the following code just before the end of the web pages suggested by the Log(psycho)Analyst advisor (see above):
You will need to add two files on your web server:
iamabot.html : must be copied to your /lpa/ directory (must be created if needed);
english.png : must be copied to your /lpa/ directory (must be created if needed);
german.png : must be copied to your /lpa/ directory (must be created if needed);
french.png : must be copied to your /lpa/ directory (must be created if needed).
you can change the location and name of the robot trap file.
Outgoing links tracking
When a visitor click on an external web site link (outside yours, possibly ending its visit to your site), your web server log files do not reflect this change. Knowing the next web site where the visitor goes after your is useful, because it gives you information on what is missing on your web site.
You can update all links to external web sites on your site as follow:
<a href="http://www.an_external_web_site.com/">A external web site</a>
<a href="http://www.an_external_web_site.com/" onclick="return exit_link(this.href, this.name);">A external web site</a>>
You also need to copy the exit_link.js file to your /lpa/ web directory. Note: this file is intentionally left blank.
Track printed pages
When a visitor is highly interested by one of your web page, he will probably print it for future usage or distributing to friends. You can track printed pages by adding the following code in the <head> section of each page to be tracked:
Your /robots.txt file can tell friendly robots that access to specific pages are disallowed. A bad practice is to use this technique to hide secret information (e.g. passwords) from public access: the list of disallowed files is a good source of information for hacker's robots. By adding the following lines to your /robots.txt file, you make a trap for such robots: