Download the PHP package krizon/php-ga-measurement-protocol without Composer
On this page you can find all versions of the php package krizon/php-ga-measurement-protocol. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download krizon/php-ga-measurement-protocol
More information about krizon/php-ga-measurement-protocol
Files in krizon/php-ga-measurement-protocol
Download krizon/php-ga-measurement-protocol
More information about krizon/php-ga-measurement-protocol
Files in krizon/php-ga-measurement-protocol
Vendor krizon
Package php-ga-measurement-protocol
Short Description Easy use of the Google Analytics Measurement Protocol in PHP
License MIT
Package php-ga-measurement-protocol
Short Description Easy use of the Google Analytics Measurement Protocol in PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package php-ga-measurement-protocol
Google Analytics Measurement Protocol PHP Client
A full featured php client for the Google Analytics Measurment Protocol API. Build upon the shoulders of the great Guzzle.
See https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide
Installation
Use Composer to add this library to your dependencies:
Features
- Page tracking
- Event tracking
- Ecommerce tracking
- Social interactions tracking
- Exception tracking
- User timing tracking
- App tracking
- Non-blocking requests (todo)
Usage
Testing
Before you can run the tests make sure you installed the dependencies using composer:
PHPUnit itself is included in the dependencies so now you can call:
We have two types of tests:
- Tests with mocked 200 OK response, @group . This type of tests are used tor testing required fields, asserting classtypes etc.;
- Tests that do real calls to the Google API, @group . The Google API itself always returns a 200 OK so to be sure the requests are transferred and handled correctly you can run the tests of group 'internet'. Before running this group make sure you've configured the correct tracking id in the phpunit.xml configuration by setting the env variable . This group is excluded by default but you can run this tests by calling:
Contributors
All versions of php-ga-measurement-protocol with dependencies
PHP Build Version
Package Version
Requires
guzzle/guzzle Version
~3.7
The package krizon/php-ga-measurement-protocol contains the following files
Loading the files please wait ....