LoginSignup
20
21

More than 5 years have passed since last update.

[PHP]Google Analytics API v3.0 使い方〜前準備編

Posted at

1.プロジェクト作成
「Create Project...」をクリックしてプロジェクトを作成します。
uploading googleAnalyticsAPI_01.png...

2.Analytics APIをONにする
ServicesからAnalytics APIのstatusをクリックしてONにします。
uploading googleAnalyticsAPI_02.png...

3.Client IDを作成する
API Accessから「Create client ID...」をクリックします。
表示されたモーダルに必要な情報を入力していきます。

Product name: なんでもOKです。管理しやすい名前をつけましょう。
Product logo: これもなんでもOKです。無しでも全然OKです。
uploading googleAnalyticsAPI_04.png...

Application type: ブラウザから認証を行うような場合はWeb applicationを選択します。
Your site or host name: Googleのアカウント認証が完了したあとにリダイレクトさせるURLを入力します。
uploading googleAnalyticsAPI_05.png...

Create client IDをクリックして作成完了。

API Accessページに設定内容が表示されます。
uploading googleAnalyticsAPI_06.png...

以上でGoogle Analytics API v3.0を使用する準備は完了です。

20
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
21