2017 © Pedro Peláez
 

library ga-measurement-protocol-client

Google Analytics Measurement Protocol PHP Client wrapper

image

moriony/ga-measurement-protocol-client

Google Analytics Measurement Protocol PHP Client wrapper

  • Monday, September 29, 2014
  • by moriony
  • Repository
  • 2 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Google Analytics Measurement Protocol PHP Client wrapper

Build Status Coverage Status SensioLabsInsight Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Google Analytics Measurement Protocol PHP client wrapper based on krizon/php-ga-measurement-protocol, (*2)

See Google Analytics Measurement Protocol documentation, (*3)

Installation

Use Composer to add this library to your dependencies:, (*4)

$ php composer.phar require moriony/ga-measurement-protocol-client:dev-master

Usage

use \Moriony\Google\Analytics\MeasurementProtocol\Client;

$client = new Client([
    Client::OPT_TRACKING_ID => 'UA-XXXXXXXXX-Y',
    Client::OPT_SSL => true,
]);

$response = $client->createEvent()
    ->setCustomerId(555)
    ->setCategory('video')
    ->setAction('play')
    ->setLabel('holiday')
    ->setValue(300)
    ->track();

Testing

Before you can run the tests make sure you installed the dependencies using composer:, (*5)

$ composer install, (*6)

PHPUnit itself is included in the dependencies so now you can call:, (*7)

$ vendor/bin/phpunit, (*8)

The Versions

29/09 2014

dev-master

9999999-dev

Google Analytics Measurement Protocol PHP Client wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitaliy Chesnokov

04/09 2014

0.0.1

0.0.1.0

Google Analytics Measurement Protocol PHP Client wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Vitaliy Chesnokov