Skip to main content

User Tracking and Analytics on Your Site

Updated this week

You can monitor and track the visitors on your website with many different tools. Most commonly used ones are Google Analytics and Matomo.

Google Analytics is an extensive and constantly evolving service that enables you to see different kinds of statistics and other information about the visitors on your site. Google is also efficient in filtering out the bot traffic automatically. You can read more from Google Analytic website.

One popular open source alternative for web-analytics is Matomo (former Piwik). More info about this tool on Matomo's own website. ATTN! Since only WordPress is allowed to be installed on the server, you must select the cloud service version of Matomo (Matomo Cloud).

HTTP-Statistics in Seravo

The HTTP-statistics and reports can be checked from the wp-admin of your site via the seravo-plugin under Tools > Site Status. From this view you can see the complete amount of last months traffic as HTTP-requests.

A more complete report can be opened from under the View report -button. These reports are provided by the server itself via the GoAccess-tool. It's noteworthy that these reports are not real-time, instead new month becomes available after the current month has changed.

The GoAccess reports also include all the server traffic in the reports, that includes all the bots, so the numbers might differ a bit from for example Google Analytics.

GoAccess command-line tools

GoAccess has its own commands you can use on the server to view statistics by log directly from the command line. HTTP requests are saved in /data/log/nginx-access.log*, from which you can open uncompressed files with command goaccess. Compressed logs can be opened by piping the command to, for example, the zcat command. Below are examples of both:

goaccess /data/log/nginx-access.log

zcat /data/log/nginx-access.log-20260101.gz | goaccess

If you want to view log-specific statistics in a more conventional visual format, you can parse the logs into a static HTML file using the following command:

goaccess /data/log/nginx-access.log -o /data/wordpress/htdocs/report.html

By saving the file in the /data/wordpress/htdocs/ directory, you can easily open it directly in your browser using a URL like example.com/report.html.

ATTN! After reviewing the report, be sure to delete it from the /htdocs directory so that it doesn't remain accessible on the public network.

Did this answer your question?