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)
- 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.
To access AWStats for your site:
- Log in to cPanel.
- In the Metrics section, click the AWStats icon.
- Click the View icon next to the domain name for which you wish to view stats.
VPS and Dedicated hosting customers may need to activate web statistics in WHM.
To modify statistics settings in WHM:
- Log in to WHM.
- In the Server Configuration section, click Statistics Software Configuration.
- Adjust the settings and save.
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:
- 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.
- Log in to cPanel.
- In the Files section, click the File Manager icon.
- Navigate to public_html and open the tmp folder.
- Open the awstats folder.
- Look for the file named awstats.example.com.conf ('example.com' will be your actual domain name) and right-click to select Edit.
- Scroll down to the line and locate Skiphosts.
- Add your connecting IP you took in Step 1 inside the quotes. For example:
- Click the Save Changes button located in the top-right corner.