This bundle provides a way to get google analytics data using the certificate-based authentication with google analytics.
Install the bundle via composer :
"require": {
...
"kairos/google-analytics-client-bundle": "1.0.0",
...
}
Register your bundle in your AppKernel.php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
...
new Kairos\GoogleAnalyticsClientBundle\KairosGoogleAnalyticsClientBundle(),
...
);
....
}
}
Config for your config.yml :
kairos_google_analytics_client:
gapi_id: xxx
gapi_account: xxx
oauth:
client_email: xxx@xxx
private_key: DIR/xxx.p12
- Add Tests
Thanks to Widop Google Analytics Bundle where i've taken information.