PHPVision is a lightweight, server-side analytics tool built in PHP. It tracks user visits without using cookies, making it privacy-friendly and simple to implement. Ideal for small projects or those who prefer minimalistic solutions, PHPVision provides basic insights into visitor statistics directly on your website.
- Cookieless Tracking: No need for cookies, making it GDPR-compliant.
- Server-Side Analytics: Tracks user activity directly on your server.
- Simple Implementation: Easy to set up with minimal configuration.
- Lightweight: Minimal impact on server performance.
- Privacy-Friendly: No personal data collection.
-
A way of hosting PHP: To actually run the web pages.
-
A MySQL database: To store events.
-
Download and Extract:
- Download the latest version from releases and extract it to your server.
-
Update configuration
- Open
phpVisionConfig.php
in any text editor and change the database credentials to your MySQL database.
- Open
-
Include PHPVision:
- Add the following line of code to the top of your PHP pages you want to track:
<?php require "phpVisionApi.php"; phpVision_auto_register(); ?>
- Add the following line of code to the top of your PHP pages you want to track:
-
View Analytics:
- Access your analytics by navigating to
phpVision.php
in your browser. Or where you put it.
- Access your analytics by navigating to
PHPVision is open-source software licensed under the MIT License.