Reporting on unique visitors to a website - wordpress

New to the product and loving it!

Is there a report that shows unique visitors to a particular website over time i.e. per hour/day/week/month?

We would like to know how many hits certain pages are getting. Would this have to be done in Wordpress?

Thanks!

Trying out google analytics

I think for now you can use some Analytics software (Google Analytics), later we can add Awstats.

@CyberPanel Are there any future plans or manual to add Awstats ? It would be very useful! Many thanks in advance

@neweracloud when there are 100 pages it gets complicated with using external softwares. Or if you have your customers pages you cant add codes to your customers page :slight_smile: Awstats is by default on many control panels if not for all, and I think it would be useful if its easy to integrate. If not I think there are many other important things that the CP team probably working on

To do something like awstats or similar will require the access log being setup to the same universal standards as cPanel is in the LS/OLS config.

Looks unset by default.

Should look something like this when set:
[root@]# grep logFormat /usr/local/lsws/conf/httpd_config.xml
%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
[root@]#

LS

OLS
https://openlitespeed.org/kb/customize-log-format/

cPanel has it setup with the below:
LogFormat (combined)
%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"

LogFormat (common)
%h %l %u %t "%r" %>s %b

Notice the cPanel format “LogFormat (combined)” is almost exactly the same as the
%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"

NCSA extended/combined log format
"%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"

The difference being the preceding " in the front of the NCSA extended/combined log format.

Once something like this is standardized in cyberpanel there are tons of cool scripts which will make parsing these for stats super easy.

@usmannasir Is this something we can implement?

Just had the code necessary to change the formatting to make stats collection easier merged into 1.9.4

See this post for how to setup this on existing domains and upgrading to the new version early.
https://forums.cyberpanel.net/discussion/3895/updating-logformat-for-better-stats-collection/

See this post for how to work with the new version accesslogs