ins0/zf2-analytics

ZF2 module for interacting with the Google-Measurement-PHP-Client library

1.0.0 2015-02-04 21:29 UTC

This package is auto-updated.

Last update: 2024-10-11 16:53:42 UTC


README

ZF2 Module wrapper for the google-measurement-php-client library

Requirements

Installation

Install via Composer

In the require key of composer.json file add the following

"ins0/zf2-analytics": "1.0.*"

Or

php composer.phar require ins0/zf2-analytics:1.*

Copy-paste the zf2-analytics.global.php.dist file to your autoload folder, and enable the module by adding Zf2Analytics to your application.config.php file.

Usage

use Racecore\GATracking\GATracking;

$analytics = $serviceLocator->get(GATracking::class);