https://github.com/there4/php-analytics-event
Create a Google Analytics Event from PHP
https://github.com/there4/php-analytics-event
analytics google-analytics google-analytics-api php php-analytics-events
Last synced: 6 months ago
JSON representation
Create a Google Analytics Event from PHP
- Host: GitHub
- URL: https://github.com/there4/php-analytics-event
- Owner: there4
- License: mit
- Created: 2012-03-27T22:11:15.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T22:22:47.000Z (over 5 years ago)
- Last Synced: 2025-04-09T18:04:38.700Z (9 months ago)
- Topics: analytics, google-analytics, google-analytics-api, php, php-analytics-events
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 24
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PHP Analytics Events [](https://travis-ci.org/there4/php-analytics-event)
================================================================================
> Create a Google Analytics Event from PHP
This is a small class to post Analytics events from PHP. This is useful for
logging and event tracking.
## Installation
```bash
composer require there4/php-analytics-event
```
## Example
```php
trackEvent('resources', 'download', 'cli-latest');
```
## Related Projects
The [Google Analytics Measurement Protocol library for PHP](https://github.com/theiconic/php-ga-measurement-protocol) project is a much larger implementation of the [Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/v1). If you need more than a simple tracking event you should check it out.