The first step is to setup SharePoint to track the Usage
The steps are as follows.
On your site, click Site Settings.
On Site Settings under the General Settings, click on Go to
SharePoint Portal Server Central Administration.
On the SharePoint Portal Server Central Administration page under
Component Configuration, click on Configure Usage Analysis Processing.
The configure Usage Analysis Screen is displayed.
Administrators can set the following settings on this screen.
Enable Logging - This should be checked if you want to use the
Usage Analysis Report. Log files are created daily on the server. These log
files track the Usage information.
Log File Location - Where the Log files need to be stored. By
default it is stored under c:\%windir%\system32\LogFiles\STS. Under this
folder are contained folders for each virtual server and under these folders are
folders for each day. Administrators can change this location path to
something else. If you choose to change this path to some other folder make
sure that STS_WPG group has Read, Write and Update permissions to the site.
Time for Processing the Usage Logs - Generally, you should
schedule the time for processing the logs when the usage of the site is at a minimum.
In the intranet world it would make sense to process the Usage Logs at night
when the site is not being used much by employees. By default, the time is set
to 1 am to 2 am.
Make the necessary changes on this screen and click ok.
With the above
administration process, you have just setup the Website to track the Usage
Analysis for SharePoint Sites.