Section 11.5. Tracking Visitors


11.5. Tracking Visitors

As a Web site owner, you'll try a lot of different tactics to promote your site. Naturally, some will work while others won'tand you'll need to keep the good strategies and prune those that fail. In order to do this successfully, you need a way to assess how your Web site is performing.

Almost every Web hosting company (except for those that don't charge a fee) give you some way to track the number of visitors to your site (see Figure 11-10). Ask your Web hosting company how to use these tools. Usually, you need to log on to a "control panel" or "my account" section of your Web host's site. You'll see a variety of options therelook for an icon labeled "site counters" or "Web traffic."

Figure 11-10. This Brinkster page view summary shows the number of hits (page requests ) received on a given day. The chart below this summary (not shown) shows the total amount of bytes of information downloaded from your site. It's important to realize that a hit is defined as a request for any page. If a single visitor travels around your Web site, requesting several pages, they'll generate several hits. In order to find out how many unique visitors you have, you need to use a separate log analysis program, described below.


11.5.1. Web Server Logs

With more high-end hosting services, you often have more options for viewing your site's traffic statistics. For example, you might be able to get a report by time of day, or get an indication of how many pages each visitor is reading. But to get really detailed information, you need to grab the raw Web server logs . Many commercial Web hosts provide the server logs, but you may need to ask their technical support department how you can download them.

The Web server logs are important because they have detailed, blow-by-blow information about every visitor. This information includes the time visitors came, their IP addresses (Section 3.1.2), their browsers, what site referred them to you, whether they ran into an error, what pages they ignored, what pages they loved, and so on. The information in a Web server log is richer by several orders of magnitude than the simple Web traffic analysis offered by your Web host.

You won't be able to interpret a server log on your own, but you can feed it into a log analysis program for more detailed breakdowns. For example, you can use a log analyzer to pick out your most popular pages, the sites that are leading visitors to you, and what browsers and operating systems your fans use. This information can help you tailor your Web site and your promotional tactics.

Log analyzers are notoriously complex, but you can get a good overview of a few free choices from www.thefreecountry.com/webmaster/loganalyzers.shtml.

11.5.2. Hit Counters

The best choice is to work with a dedicated analysis program and review the raw server logs. However, this isn't an option for everyone. Low-priced Web hosts might not make the server logs available. In fact, free Web hosts probably won't even give you a single tool for traffic analysis.

In this case, you may want to use a free hit counter service from another company. A hit counter is a page element that counts up the number of times your page has been requested . The appearance of a hit counter variessome hit counters show the number of hits directly on the page (usually with a small picture), while others are invisible and collect their data silently for later analysis.

Here's how a typical hit counter service works:

  1. You add a very small bit of HTML to your page .

    For example, this HTML might include an <img> tag that shows the hit counter picture.

  2. When someone requests your page, they see an image that shows how many people have visited so far .

    Here's the trick: When your page loads and requests the image from the hit counter Web site, the Web site makes a note of this request, and increases the counter by one. In other words, every time you display the hit counter, the hit counter site logs what happened .

  3. Later on, you can log on to the hit counter Web site to get more detailed information .

    For example, you might be able to find the difference between page hits (the number of time a page on your site is requested) and unique visitors (the number of different people who visited that same page). If someone looks at the same page several times (or just hits the Refresh button), the number of page hits goes up, but the number of unique visitors doesn't change.

    Hit counters don't all work in the same way, and be on the lookout for hit counting services that try to convince you to insert ads into your page. For a list of free hit counter services, see www.thefreecountry.com/webmaster/loganalyzers.shtml. Or, to try out a free hit counter that doesn't require an image (and is completely invisible to the Web site surfer), check out the popular StatCounter service at www.statcounter.com.



Creating Web Sites. The Missing Manual
Creating Web Sites: The Missing Manual
ISBN: B0057DA53M
EAN: N/A
Year: 2003
Pages: 135

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net