PHPackages                             kairos/googleanalyticsserversidebundle - 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/googleanalyticsserversidebundle

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

kairos/googleanalyticsserversidebundle
======================================

Symfony 2 bundle, push your google analytics hits from the server

2.0.6(10y ago)29.2k1LGPL-3.0HTMLPHP &gt;=5.4.0

Since Jul 17Pushed 10y ago3 watchersCompare

[ Source](https://github.com/kairosagency/GoogleAnalyticsServerSideBundle)[ Packagist](https://packagist.org/packages/kairos/googleanalyticsserversidebundle)[ Docs](https://github.com/kairosagency/GoogleAnalyticsServerSideBundle.git)[ RSS](/packages/kairos-googleanalyticsserversidebundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (12)Used By (0)

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

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

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6416dd43f1ff2a3770b0951d556e0ab8d3d0fe9dd55b4caab51c4c5db1f0c6a2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6169726f736167656e63792f476f6f676c65416e616c79746963735365727665725369646542756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d65653863636236353363626333353730343338373061303233333064306436333637663334363563)](https://scrutinizer-ci.com/g/kairosagency/GoogleAnalyticsServerSideBundle/)[![Build Status](https://camo.githubusercontent.com/3babb79f884e26f19ba2b65a66c026b85ad84f355b65f23f03d718c4b63bfe19/68747470733a2f2f7472617669732d63692e6f72672f6b6169726f736167656e63792f476f6f676c65416e616c79746963735365727665725369646542756e646c652e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/kairosagency/GoogleAnalyticsServerSideBundle)

Important
---------

[](#important)

Your bundle might not work any more after major changes to the master branch. To solve that problem, please update your composer.json and set your bundle version to ~1.0.0 :

```
    {
        "require": {
            "kairos/googleanalyticsserversidebundle": "~1.0.0"
        }
    }
```

This bundle has been updated to support universal analytics which is a far better solution than the php-ga library.

Summary :
---------

[](#summary-)

Google Analytics Server Side Bundle is aimed at sending google analytics hits from a server. This can be very usefull for an app, or in case google analytics is blocked.

This bundle made originally use of the great project from UnitedPrototype : But now use the new google universal analytics which is more efficient and robust.

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

[](#requirements)

Requires PHP 5.3 as namespaces and closures are used, Symfony 2 framework

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

[](#installation-)

**In your composer file file :**

```
    {
        "require": {
            "kairos/googleanalyticsserversidebundle": "~2.0.0"
        }
    }
```

**Update your composer :**

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

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

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

```
