Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthiew committed Jul 17, 2013
1 parent fe5cd65 commit 26a16c6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Composer will install the bundle to your project's vendor/kairos directory.
{
$bundles = array(
// ...
new GoogleAnalytics\GoogleAnalyticsBundle(),
new GoogleAnalyticsServerSide\GoogleAnalyticsBundle(),
);
}
```
Expand All @@ -70,17 +70,15 @@ Composer will install the bundle to your project's vendor/kairos directory.
You now can include the class in your controller
``` php
use GoogleAnalytics;
use Kairos\GoogleAnalytics;
```

And track page (or events etc.) :

``` php

use Kairos\GoogleAnalytics;

// Initilize GA Tracker
$tracker = $this->get('googleanalytics');
$tracker = $this->get('google_analytics');

// Assemble Visitor information (could also get unserialized from database)
$visitor = new GoogleAnalytics\Visitor();
Expand All @@ -100,4 +98,4 @@ And track page (or events etc.) :
```

- [Read more](https://github.com/kairosagency/GoogleAnalyticsBundle/tree/master/Resources/doc/index.md)
- [Using Cookies](https://github.com/kairosagency/GoogleAnalyticsBundle/tree/master/Resources/doc/using_cookies.md)
- [Using Cookies](https://github.com/kairosagency/GoogleAnalyticsBundle/tree/master/Resources/doc/using_cookies.md)

0 comments on commit 26a16c6

Please sign in to comment.