Ahosting Logo
Knowledge Base

How to View and Analyze Website Statistics in cPanel

cPanel provides several tools to monitor your website traffic, bandwidth usage, and visitor behavior.

Available Statistics Tools

Go to Metrics section in cPanel to find these tools:

1. Visitors

Shows detailed information about recent visitors:

  • IP addresses
  • Pages visited
  • Time of visit
  • Referring URLs
  • User agents (browsers)

To access: Metrics > Visitors > Click domain

2. Bandwidth

Shows data transfer usage:

  • HTTP (web traffic)
  • FTP transfers
  • Email bandwidth
  • Daily, weekly, monthly totals

To access: Metrics > Bandwidth

3. Errors

Shows recent error log entries:

  • 404 Not Found errors
  • 500 Internal Server errors
  • PHP errors
  • Permission errors

To access: Metrics > Errors

Useful for troubleshooting broken links and script errors.

4. Raw Access Logs

Download complete server logs for detailed analysis:

  1. Go to Metrics > Raw Access
  2. Click domain to download current log
  3. Archives of previous months available below

Log format: Apache Combined Log Format

5. Awstats

Visual statistics with graphs and charts:

  • Unique visitors vs visits
  • Pages and hits
  • Traffic by country
  • Browsers and operating systems
  • Search keywords
  • Entry and exit pages

To access: Metrics > Awstats > Click icon next to domain

Understanding Key Metrics

Metric Meaning
Unique Visitors Individual people visiting (by IP)
Visits Total sessions (same person can visit multiple times)
Pages HTML pages viewed
Hits All requests (pages, images, CSS, JS)
Bandwidth Data transferred in bytes/MB/GB

CPU and Resource Usage

For shared hosting resource monitoring:

  1. Look for Resource Usage in cPanel sidebar
  2. View CPU, memory, I/O, and process limits
  3. Check for any limit warnings

Disk Usage

  1. Go to Files > Disk Usage
  2. See breakdown by folder
  3. Identify large files or folders

Google Analytics Alternative

For more detailed analytics, consider installing:

  • Google Analytics: Free, comprehensive visitor tracking
  • Matomo: Self-hosted, privacy-focused analytics
  • Plausible: Lightweight, privacy-friendly

cPanel stats are server-side; Google Analytics is client-side and provides more user behavior data.

Archiving Logs

To configure log archiving:

  1. Go to Metrics > Raw Access
  2. Enable Archive Logs option
  3. Choose to remove previous month logs after archiving