How to view website statistics in cPanel using AWStats

When you have a website online, you may want to check on how many people are coming to your website. cPanel has several built in statistic reports.

Please note: The stats may not begin working and updating during the first 24 hours.

The favored program is AWStats. This program updates every 24 hours, and also instantly updates when you click the "Update now" link. The statistics report gives details about the amount of people coming to your website, and other information like:

  • Monthly history
  • Days of month
  • Days of week
  • Hours
  • Countries (Top 25)
  • Hosts (Top 25)
  • Authenticated users (Top 10)
  • Robots/Spiders visitors (Top 25)
  • Visits duration
  • Files type
  • Pages-URL (Top 25)
  • Operating Systems (Top 10)
  • Browsers (Top 10)
  • Connect to site from
  • Search Key phrases (Top 10)
  • Search Keywords (Top 25)
  • HTTP Error codes

To access this information, please do the following:

  1. Login to cPanel.
  2. Click the Awstats icon.
  3. Click the view icon next to the domain name of interest.

You are now looking at the web site statistics for your domain.

How to read the AWStats page:

http://awstats.sourceforge.net/docs/awstats_glossary.html

Dedicated and VPS

You may need to login to your WHM and activate the web statistics.

  1. Login to WHM.
  2. Go to Server Configuration > Statistics Software Configuration.
  3. Adjust the settings and save.

How to keep your own page visits from being counted:

You can specify an IP address which you do not want logged in AWStats. This will allow you to view your site and make updates, without affecting the daily statistics.

  1. Visit hostgator.com/ip.shtml and copy the red IP address. This is your connecting IP.
  2. Login to cPanel and click the File Manager icon.
  3. Navigate above public_html and enter the tmp folder.
  4. Enter the awstats folder.
  5. Find the file named awstats.yourdomain.com.conf and choose to Edit.
  6. Scroll half way down to the line starting with "SkipHosts" and add your connecting IP inside the quotes, as so:
    SkipHosts="123.45.67.89"
  7. Save the changes, and you are finished.

Article Comments

the file keeps getting updated and skiphosts reverts back to the default of nothing. How can I retain these settings?

HostGator
Please email support@hostgator.com and we will investigate the issue for you.

Steve
Please create a way for us to view and print the website data results showing the number of hits and traffic. If this could be exported into any easy to use format that would be REALLY helpful.

HostGator
Currently, you can view and print stats from within cPanel.

You can also download raw stats and view them as plain text or import them into a statistics program on your computer.

You can also install your own version of AWStats on your hosting account. Your installation will be available to the public by default, and then can be viewed without needing to be logged into cPanel.


Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment