https://github.com/utopia-php/analytics
Lite & fast micro PHP analytics library that is **easy to use**.
https://github.com/utopia-php/analytics
hacktoberfest
Last synced: 9 months ago
JSON representation
Lite & fast micro PHP analytics library that is **easy to use**.
- Host: GitHub
- URL: https://github.com/utopia-php/analytics
- Owner: utopia-php
- License: mit
- Created: 2021-02-03T09:59:49.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-09T15:45:22.000Z (about 1 year ago)
- Last Synced: 2025-03-29T19:01:18.231Z (9 months ago)
- Topics: hacktoberfest
- Language: PHP
- Homepage:
- Size: 307 KB
- Stars: 16
- Watchers: 8
- Forks: 20
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Utopia Analytics
[](https://travis-ci.com/utopia-php/analytics)

[](https://appwrite.io/discord)
Utopia Analytics is a simple and lite library to send information about events or pageviews to Google Analytics. This library is aiming to be as simple and easy to learn and use. This library is maintained by the [Appwrite team](https://appwrite.io).
Although this library is part of the [Utopia Framework](https://github.com/utopia-php/framework) project it is dependency free and can be used as standalone with any other PHP project or framework.
## Getting Started
Install using composer:
```bash
composer require utopia-php/analytics
```
Init in your application:
```php
createPageView("appwrite.io", "/docs/installation");
// Sends an event indicating an installation.
$ga->createEvent("Installation", "setup.cli");
// Sends an event indicating that the fall campaign promotional video was played.
$ga->createEvent("Videos", "play", "Fall Campaign");
```
## System Requirements
Utopia Framework requires PHP 7.4 or later. We recommend using the latest PHP version whenever possible.
## Copyright and license
The MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)