1. Knowledge Base
  2. >
  3. Results
  4. >
  5. Viewing Website Statistics in cPanel AWStats

Viewing Website Statistics in cPanel AWStats

 

 

When you have a website online, you may want to track how many people visit your site. cPanel offers several built-in statistic reports, and AWStats is one of the more popular programs. AWStats updates every 24 hours and instantly when you click the Update now link. The statistics report gives details about the number of people coming to your website and other information such as:

  • Authenticated users (top 10)
  • Browsers (top 10)
  • Connect to site from
  • Countries (top 25)
  • Days of month
  • Days of week
  • Files types
  • Hosts (top 25)
  • Hours
  • HTTP error codes
  • Monthly history
  • Operating systems (top 10)
  • Pages-URL (top 25)
  • Robots/Spiders visitors (top 25)
  • Search keyphrases (top 10)
  • Search keywords (top 25)
  • Visits duration

Stats may not begin working and updating until after the first 24 hours.

Note: Statistics are not accessible on a Shared or Reseller cPanel with more than 100 domain entries, including subdomains, addon domains, and parked domains. If you have a lot of websites in a single cPanel, we recommend using Google Analytics or another third-party statistics solution as an alternative.

Access AWStats

To access AWStats for your site:

  1. Log in to cPanel.
  2. In the Metrics section, click the AWStats icon.

    cPanel - Awstats icon

  3. Click the View icon next to the domain name for which you wish to view stats.

    cPanel - Awstats - View

For help understanding your AWStats results, please refer to the official AWStats website.

VPS and Dedicated hosting customers may need to activate web statistics in WHM.

To modify statistics settings in WHM:

  1. Log in to WHM.
  2. In the Server Configuration section, click Statistics Software Configuration.

    HostGator WHM Server Configuration

  3. Adjust the settings and save.

    HostGator WHM Statistics Software Configuration


Exclude an IP address from AWStats

You can specify an IP address that you do not want to be logged in AWStats to keep your page visits from being counted. This will allow you to view your site and make updates without affecting the daily statistics.

To exclude your IP address:

  1. Search for your current local IP address.
    To know your current local IP address, please visit google.com/search?q=what+is+my+ip or use Google to search for 'what is my IP.' Google will display your IP Address in the search results. Please note that this feature is only available in English.
  2. Log in to cPanel.
  3. In the Files section, click the File Manager icon.

    HostGator cPanel File Manager

  4. Navigate to public_html and open the tmp folder.

    HostGator File Manager tmp folder

  5. Open the awstats folder.

    HostGator File Manager tmp awstats folder

  6. Look for the file named awstats.example.com.conf ('example.com' will be your actual domain name) and right-click to select Edit.
  7. Scroll down to the line and locate Skiphosts.
    Awstats - Skiphost
  8. Add your connecting IP you took in Step 1 inside the quotes. For example:

    SkipHosts="123.45.67.890"

  9. Click the Save Changes button located in the top-right corner.
Need additional assistance? HostGator's Support is here to help. Please contact us via phone or Live Chat so we can assist!