How to Generate Stats for your Business Website

A business website benefits from getting information about their visitors: where from they are visiting, which pages they visited, how long they were on your site, etc. Generating stats on this information can help you find ways to improve your website and its ability to positively impact your business model. For instance, if you see that all of your visitors are from upper Manhattan, maybe you need less advertising there and more in Brooklyn.

How Web Stats (Typically) Work

They are numerous companies that provide free tools to track the website statistics — the largest of which is Google Their tool, Google Site Analytics, works similarly to most others you’ll run in to. Here’s how:

  1. Companies allow you to set up an account (this way they can funnel the information into the right place). After that they provide you with a piece of JavaScript that has elements unique to your account.
  2. You have to place this unique JavaScript (hereafter referred to as “the script”) in your website’s pages’ section. How to do this, is described in the next section.
  3. Whenever somebody visits your website, the script sends their information to the Web stats company.
  4. The Web stats company aggregates the visitors’ data for you and presents it to you.

Putting Web Stats on Your Web Pages

Once you have the script that’s unique to your account, you need to put it on every Web page you need to track. This isn’t too hard, we promise.

  1. Using your account’s file editor, open one of your site’s HTML pages.
  2. Locate the closing head tag, i.e. </head>.
  3. Just before the closing head tag </head>, paste the script the Web stats company provided you.
  4. Save your changes.
  5. Repeat these steps for each page on your website until you’ve added the script to each one.

After putting the script on each page, most companies provide a way of testing it to make sure you’ve done it correctly. Verify it’s working and you’ll start gathering data about who comes to your site.

Thanks for visiting. For queries and suggestions, emails are welcome at learnweb@hostingcolumn.com.

Subscribe to Hosting Column for latest updates and posts.