PHPackages                             kairos/googleanalytics - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kairos/googleanalytics

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kairos/googleanalytics
======================

Google analytics vendor for symfony2. Warning: Deprecated!

131PHP

Since Jun 3Pushed 11y ago2 watchersCompare

[ Source](https://github.com/kairosagency/GoogleAnalyticsBundle)[ Packagist](https://packagist.org/packages/kairos/googleanalytics)[ RSS](/packages/kairos-googleanalytics/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Getting Started With Server-Side Google Analytics PHP Client
============================================================

[](#getting-started-with-server-side-google-analytics-php-client)

WARNING: Deprecated !!

Important
---------

[](#important)

This package is directly based on this project from UnitedPrototype :

This package is aimed at using php-ga in symfony 2 as a vendor and a service.

Summary :
---------

[](#summary-)

"ga.js in PHP" - Implementation of a generic server-side Google Analytics client in PHP that implements nearly every parameter and tracking feature of the original GA Javascript client.

We love Google Analytics and want to contribute to its community with this PHP client implementation. It is intended to be used stand-alone or in addition to an existing Javascript library implementation.

It's PHP, but porting it to e.g. Ruby or Python should be easy. Building this library involved weeks of documentation reading, googling and testing - therefore its source code is thorougly well-documented.

The PHP client has nothing todo with the Data Export or Management APIs, although you can of course use them in combination.

Requirements
------------

[](#requirements)

Requires PHP 5.3 as namespaces and closures are used. Has no other dependencies and can be used independantly from any framework or whatsoever environment.

Installation :
--------------

[](#installation-)

**In your composer file file :**

```
    {
        "require": {
            "kairos/googleanalytics": "dev-master"
        }
    }
```

**Update your composer :**

```
    php composer.phar update kairos/googleanalytics
```

Composer will install the bundle to your project's vendor/kairos directory.

**Enable the bundle in the AppKernel file :**

```
