An open API service indexing awesome lists of open source software.

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.

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).