ここではBigQuery(BQ)とは何か?それ自体の設定については触れない。GA4とBQの設定にフォーカスして説明する。
* BQで設定したロケーションはGA4連携で必要となるのでメモを忘れずに。
BQに興味のある方は「Google Cloud Platform実践ビッグデータ分析基盤開発 ストーリーで学ぶGoogle BigQuery」をお勧めします。
*少し慣れた方はアナリティクス4とBigQueryとシンプルなSQLにトライしてみよう。
まずは、Google Cloud Platform (GCP)で新規プロジェクトを作成する。
*無料トライアル登録時に自動生成されるプロジェクト(My First Project)を利用しても問題ありませんが、ここではあえて、それとは別プロジェクトを新規作成します。
My First Project をクリック
![My First Project](https://www.asiastars.org/wp-content/uploads/2022/06/image-17-1024x559.png)
新しいプロジェクトをクリック
![プロジェクトの選択](https://www.asiastars.org/wp-content/uploads/2022/06/image-18-1024x438.png)
プロジェクト名入力
![新しいプロジェクト](https://www.asiastars.org/wp-content/uploads/2022/06/image-20-1024x723.png)
*「組織なし」でもプロジェクトは作成可能。GSuite( Google Workspace )で管理しているドメイン(会社のドメイン)でプロジェクトを作成すると、設定にもよりますがそのGSuiteの組織にてプロジェクトが作られます。
通知のポップアップ表示
![通知](https://www.asiastars.org/wp-content/uploads/2022/06/image-21.png)
当該プロジェクト APIとサービスからライブラリ
![APIからライブラリ](https://www.asiastars.org/wp-content/uploads/2022/06/image-22-742x1024.png)
ビッグデータ
![ビッグデータ](https://www.asiastars.org/wp-content/uploads/2022/06/image-23-1024x679.png)
BigQuery API
![BQ API](https://www.asiastars.org/wp-content/uploads/2022/06/image-24-1024x657.png)
BigQuer API を有効化
「APIが有効です」と表示されていれば完了です。
![BQ API2](https://www.asiastars.org/wp-content/uploads/2022/06/image-25-1024x583.png)
GA4の管理画面
「BigQueryのリンク」をクリック
![BQ のリンク](https://www.asiastars.org/wp-content/uploads/2022/06/image-26-1024x923.png)
BigQueryの「リンク」をクリック
![リンク](https://www.asiastars.org/wp-content/uploads/2022/06/image-27-1024x266.png)
「BigQueryプロジェクトを選択」をクリック
![BQプロジェクトを選択](https://www.asiastars.org/wp-content/uploads/2022/06/image-28-1024x484.png)
確認をクリック
![確認](https://www.asiastars.org/wp-content/uploads/2022/06/image-29-1024x162.png)
データのロケーション指定
*ここでは例として「米国」
![データのロケーション](https://www.asiastars.org/wp-content/uploads/2022/06/image-30-1024x647.png)
頻度設定
ここでは「毎日」で設定した。
* 「ストリーミング」にチェックを入れていると、料金が割高になる。
![頻度指定](https://www.asiastars.org/wp-content/uploads/2022/06/image-31-1024x846.png)
送信
![送信](https://www.asiastars.org/wp-content/uploads/2022/06/image-32-1024x772.png)
完了(リンク作成済表示)
![完了](https://www.asiastars.org/wp-content/uploads/2022/06/image-33-1024x214.png)
以上です。