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

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

Awesome Lists containing this project

README

          

PHP Analytics Events [![Build Status](https://travis-ci.org/there4/php-analytics-event.svg?branch=master)](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.