Home Backend Development PHP Tutorial How CheckStat was created: Real-time site analytics

How CheckStat was created: Real-time site analytics

Aug 26, 2024 pm 10:30 PM

What is CheckStat

CheckStat is a project I developed to help website owners, developers, and analysts better understand what's happening on their web resources. This tool lets you track what your visitors are doing on your site in real-time. Analyzing these stats helps you make more informed decisions and improve your website's performance.

1. Activity

In the "Activity" section, you can watch what your visitors are doing on your site in real-time. This gives you a complete picture of who is on your site right now, what they're doing, and where they came from.

How CheckStat was created: Real-time site analytics

  • Unique icons for each visitor: Every user on your site is represented by a unique icon, making it easier to identify them. You can customize the icon for each visitor, selecting and locking a specific image.
  • Visit time information: The time when a visitor entered your site is displayed according to your time zone, which helps sync data with local events or promotions on the site.
  • Visit count: The system shows how many times a user has visited the site today, this month, and overall, helping you gauge the loyalty and activity of your regular visitors.
  • URL and page title: For each visit, the URL and title of the page they are viewing are displayed, helping you understand what content is capturing users' attention.
  • Geolocation: You can see the country, region, and city from which the visitor came. This is important for analyzing the geographic distribution of your audience.
  • User activity: Parameters such as clicks, mouse movements, keystrokes, sensor interactions, and scrolling are tracked, giving you a full understanding of the user's engagement with your site.
  • Technical details: The system provides information about the user's operating system, browser, device type, and screen resolution. This data helps in optimizing content and design for different devices.
  • Traffic source: You can see where the visitor came from (e.g., search engines, social networks, or other websites), helping you assess the effectiveness of your marketing campaigns.

Additionally, in the "Activity" section, you can activate filters to display only active users who are engaging with the site. This allows you to focus on the users who are most involved with your content.

Auto-refresh is enabled by default, and new visits are displayed in real-time with animation. This feature helps you react instantly to changes on the site, such as during a promotion or marketing campaign.

2. Statistics

The "Statistics" section is designed for deeper analytics. Here, you can collect and analyze data over any period, not limited to standard time intervals.

How CheckStat was created: Real-time site analytics

  • Main chart: The main chart displays two lines — the total number of views and unique visitors over the selected time period. This helps you quickly assess how site activity has changed over days, weeks, or months.
  • Visitor map: The world map visualizes visitor data from different countries. The color gradient from white (minimum visitors) to blue (maximum visitors) makes it easy to see which regions bring in the most traffic.
  • Parameter analytics: At the bottom of the page, blocks display data by country, region, city, browser, operating system, and other parameters. You can select the parameters you're interested in and add them to a filter to see only the information you need. This flexible tool helps you refine your analysis and make more accurate decisions.

You can also set up filters to include or exclude certain parameters and see how this affects overall statistics. For example, you can see how users from a specific region interact with your site and which pages attract them the most.

3. Dashboard

The "Dashboard" is a summary panel that displays your site's key metrics for the current day and tracks changes over the last 30 days.

How CheckStat was created: Real-time site analytics

  • Key metrics: The panel shows the number of unique visitors, total views, average views per visitor, and average session duration. This data helps you quickly assess your site's current performance.
  • Activity charts: On the dashboard, you can see charts showing user activity over the last three hours, grouped in 10-minute intervals. This helps you assess peak activity periods and determine when your site is most visited.
  • Top 5 key parameters: Here, you’ll find data on the top 5 countries, operating systems, traffic sources, and device types. This data helps you understand what devices and platforms your users are using and where they are coming from.

The "Dashboard" is a place where you can quickly get an overall picture of what's happening on your site.

Technical Details

CheckStat is built using modern technologies that ensure high performance and scalability:

  • PHP: The main language used for server-side development and application logic processing.
  • MySQL and Elasticsearch: MySQL is used for reliable data storage, while Elasticsearch enables fast search and analysis of large volumes of information.
  • Kibana: A tool for real-time data visualization, integrated with Elasticsearch.
  • Nginx: A web server that provides fast and stable access to the site.
  • JavaScript and AJAX: Used to create dynamic and interactive elements on the client side.
  • UAParser.js and current-device: Libraries for identifying the device and its characteristics.
  • ApexCharts and ECharts: Tools for creating charts and graphs used for data visualization.
  • vanilla-datetimerange-picker: A library for easy date range selection, making analytics on the user side more convenient.

These technologies help CheckStat quickly process large amounts of data and provide real-time analytics.

Use Cases

CheckStat is a tool that really helps improve your website. Here’s how you can use it:

  • Monitor user actions: In the "Activity" section, you can see in real-time what your visitors are doing on your site. Who came in, what pages they are viewing, where they came from, what devices and browsers they are using — it's all right there. This is useful to understand how people interact with your content and where they might lose interest.
  • Filter and analyze data: In "Statistics," you can set up filters to see only the information you need. For example, you can choose data by specific regions or traffic sources and exclude the unnecessary. This helps you focus on what really matters.
  • Optimize content: Using data from "Activity" and "Statistics," you can identify which pages are popular and improve them. If you see that people spend a lot of time on certain pages, it might be worth adding more useful content to them.
  • Analyze traffic sources: CheckStat shows where your visitors are coming from — whether it's search engines, social networks, or direct entries. This helps you understand which channels are working best and where to invest more effort.

These examples show how CheckStat can help you understand what’s happening on your site and make it better.

About the Developer

CheckStat was developed in Ukraine, under challenging conditions of ongoing war and periodic power outages due to damage to the energy infrastructure. Despite these challenges, the project was successfully completed and continues to evolve.

Conclusion

CheckStat is a tool designed for those who want to better understand their users and make their website better. It allows you to easily track site activity, analyze key metrics, and make data-driven decisions. Try CheckStat and see for yourself how convenient and useful it can be.

Site Link: CheckStat.net

The above is the detailed content of How CheckStat was created: Real-time site analytics. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Explain the concept of late static binding in PHP. Explain the concept of late static binding in PHP. Mar 21, 2025 pm 01:33 PM

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

Framework Security Features: Protecting against vulnerabilities. Framework Security Features: Protecting against vulnerabilities. Mar 28, 2025 pm 05:11 PM

Article discusses essential security features in frameworks to protect against vulnerabilities, including input validation, authentication, and regular updates.

Describe the SOLID principles and how they apply to PHP development. Describe the SOLID principles and how they apply to PHP development. Apr 03, 2025 am 12:04 AM

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

Customizing/Extending Frameworks: How to add custom functionality. Customizing/Extending Frameworks: How to add custom functionality. Mar 28, 2025 pm 05:12 PM

The article discusses adding custom functionality to frameworks, focusing on understanding architecture, identifying extension points, and best practices for integration and debugging.

How to send a POST request containing JSON data using PHP's cURL library? How to send a POST request containing JSON data using PHP's cURL library? Apr 01, 2025 pm 03:12 PM

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

How to automatically set permissions of unixsocket after system restart? How to automatically set permissions of unixsocket after system restart? Mar 31, 2025 pm 11:54 PM

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

See all articles