开时科技//google-analytics-client-bundle

Symfony 2 组件。从 Google Analytics 获取数据

1.0.6 2015-07-08 16:21 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:07:42 UTC


README

![Gitter](https://badges.gitter.im/Join Chat.svg)

Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight

此组件提供了一种使用基于证书的认证从 Google Analytics 获取数据的方法。

文档

组件配置

通过 composer 安装组件

"require": {
    ...
    "kairos/google-analytics-client-bundle": "1.0.0",
    ...
}

在 AppKernel.php 中注册您的组件

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Kairos\GoogleAnalyticsClientBundle\KairosGoogleAnalyticsClientBundle(),
            ...
        );
    ....
    }
}

配置您的 config.yml

kairos_google_analytics_client:
    gapi_id: xxx
    gapi_account: xxx
    oauth:
        client_email: xxx@xxx
        private_key: DIR/xxx.p12

使用方法

使用方法

待办事项

  • 添加测试

许可证

Mozilla 公共许可证 2.0

致谢

感谢 Widop Google Analytics Bundle,我从那里获取了信息。