i-like-it-solutions/google-analytics-api
Composer 安装命令:
composer require i-like-it-solutions/google-analytics-api
包简介
Google Analytics API v4 Symfony
README 文档
README
A Symfony project created on July 4, 2017, 06:14 pm.
Bundle Configuration to set Google Analytics Accounts
Add following code in app/config/config.yml assetic: debug: '%kernel.debug%' use_controller: '%kernel.debug%' filters: cssrewrite: ~
Add following code in app/config/routing.yml google_analytics_api: resource: "@GoogleAnalyticsApiBundle/Resources/config/routing.yml" prefix: /
Register the following bundle in AppKernal.php
new Symfony\Bundle\AsseticBundle\AsseticBundle(), new iLikeItSolutions\GoogleAnalyticsApiBundle\GoogleAnalyticsApiBundle(),
Client Secret File steps:
- Go to Google API console https://console.developers.google.com
- Create APP and Activate the Analytics API in the Google API Console.
- Redirect URI http://localhost:8000/callback
- After save Download JSON file and renamed it to client_secrets.json
- Copy and paste client_secrets.json file to bundle location "iLikeItSolutions/GoogleAnalyticsApiBundle/Data/"
Google Analytics Account View ID steps:
- Go to Google analytics site and login https://analytics.google.com
- Click on Top left Corner to see accounts then click Account Name >> Click Property Name >> then Copy View ID (Numeric) from Views Tab
- Now Paste above View ID into bundle file path "iLikeItSolutions/GoogleAnalyticsApiBundle/Resources/config/service.yml" variable ga_view_id
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Private
- 更新时间: 2017-07-03