(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



Analysing Web Logs for Search


2009/10/06



People will often find you and your website through Internet searches. When they do, your log file will usually contain information on what they were searching for when they found you.

The following is a typical log entry showing a visit that came from a Google search. I bolded the "q=" section that shows the actual search string:


119.75.43.62 - - [05/Oct/2009:02:23:50 +0000]
"GET /Forum/TonyLawrence13.html HTTP/1.1" 200
20191 "http://www.google.com.sg/search?hl=en
&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=agd
&q=qmail+queues+stats&btnG=Search&meta=&aq=f&oq="
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET
CLR 3.5.30729)"
 

Bing and many other search engines also use the "q=" format, so it's easy to mine this data from your logs.

This is obviously very useful information. Unfortunately, the search engine may not be sending your visitor to the page you'd really like them to hit. The page they got may indeed be related to their search, but when you as a human look at what search words they actually used, you would have sent them to a different page.

I look for that in my logs. When I spot something like that, I'll update the found page with a link and text that suggests the other page as possibly being something of interest also. Note that I don't want to just redirect to that page, because for other search keys the original page might be a perfect match.

Or I may find that all I need is to pull something from another page to update the page the search engines favor. The important thing is to help your visitors find what they need - if you aren't reading your logs, you don't know that they are or are not.

In the log entry shown above, the person was searching for "qmail queues stats". The page Google picked is appropriate in that case. However, I often find searches that aren't quite correct. For example, I found that "linux+mount+sco+filesystem" was sending people to http://aplawrence.com/Bofcusm/1714.html. That's fine, but that post isn't complete - there are other posts here that are actually better (even if Google says otherwise!). I therefore updated that page to include links to the pages I think people might want.

Analysing these logs can be a bit boring - often the search engines pick exactly what I would have picked. However, I find small problems often enough to make the effort worthwhile.




Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



ad

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

book graphic Internet Income guide

My Hard Truths about Easy Money on the Internet will show you how to make money on the Internet!

 I sell and support
 Kerio Mail server




pavatar.jpg
More:
       - Blogging
       - Web/HTML


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress