Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hirokisan/analytics-php
https://github.com/hirokisan/analytics-php
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hirokisan/analytics-php
- Owner: hirokisan
- Created: 2017-09-25T14:05:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-28T15:02:54.000Z (about 7 years ago)
- Last Synced: 2024-05-05T15:20:29.474Z (8 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Analytics-php
====This app access analytics and get data
## REQUIREMENT
* [composer](https://getcomposer.org/)## SET UP
```
$ composer install
```## SET ENV
```
KEY_FILE="your-service-account-credential-json-file"
VIEW_ID="your-view-id"
```## START
```
$ php index.php
```## Reference
* [Reporting API v4](https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-php)
* [google/google-api-php-client](https://github.com/google/google-api-php-client)
* [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv)
* [Dimensions & Metrics Explorer](https://developers.google.com/analytics/devguides/reporting/core/dimsmets)
* [メソッド: reports.batchGet](https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet?hl=ja)
* [PHPを使って GoogleAnalytics にある特定ページの情報を受け取る](https://qiita.com/a_yasui/items/9c6fff66aa92a54c8298)
* [Google Analyticsのランディングページのデータを取得する](http://masalib.hatenablog.com/entry/2016/10/31/220155#複数のカラムMetric-に対応)