https://github.com/quantumbytestudios/qlyx
A lightweight PHP-based web analytics tracker for capturing visitor behavior, user agents, referrers, and more plug-and-play for any page. Decode. Decide. QLYX.
https://github.com/quantumbytestudios/qlyx
Last synced: 11 months ago
JSON representation
A lightweight PHP-based web analytics tracker for capturing visitor behavior, user agents, referrers, and more plug-and-play for any page. Decode. Decide. QLYX.
- Host: GitHub
- URL: https://github.com/quantumbytestudios/qlyx
- Owner: QuantumByteStudios
- License: mit
- Created: 2025-05-24T16:19:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-18T08:53:46.000Z (12 months ago)
- Last Synced: 2025-07-18T12:14:39.152Z (12 months ago)
- Language: PHP
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QLYX Analytics
**QLYX** is a lightweight PHP-based website analytics tool designed to track and visualize user activity and trends with zero front-end integration.
## Getting Started
QLYX automatically tracks each visit to your page and stores the data for statistical analysis.
## View Analytics
Access the dashboard to view detailed analytics and visitor trends:
[QLYX Dashboard](QLYX/)
## Integration Guide
To enable visit tracking on any PHP page, simply include the QLYX script and initialize it as shown below:
```php
track();
?>
```
Place this code on any page where you want to enable tracking. Make sure to establish a working database connection before calling `$qlyx->track()`.
## Setup Requirements
Ensure your `db-connect.php` file contains valid database credentials. This file is used to create a PDO connection instance passed into QLYX.
**Example structure of `db-connect.php`:**
```php
PDO::ERRMODE_EXCEPTION, // Throw exceptions on error
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, // Safe default fetch mode
]
);
} catch (PDOException $e) {
// Output error in development; log it in production
die("Database connection failed: " . htmlspecialchars($e->getMessage()));
}
?>
```
## Project Structure
```
├── QLYX/
│ └── qlyx.php # Main tracking logic
| └── index.php # Analytics dashboard
├── db-connect.php # Database connection setup
├── index.php # Landing page (tracks visits)
```
## License
This project is licensed under the MIT License. See `LICENSE.md` for details.
## Author
Developed by QuantumByteStudios. Contributions and suggestions are welcome.
For inquiries, email us at [contact@quantumbytestudios.in](mailto:contact@quantumbytestudios.in).