アナリティクスサービスでは Management API と Apps Script の Reporting API。これらの API これにより、アナリティクスのユーザーが構成に関する情報を確認できるようになります。 パフォーマンスに関するレポートを作成する。
リファレンス
このサービスの詳細については、サービス リファレンス ドキュメントの いくつか紹介します
Apps Script のすべての拡張サービスと同様に、アナリティクス サービスでは オブジェクト、メソッド、パラメータを公開 API として扱うことができます。詳細については、メソッド シグネチャの決定方法をご覧ください。
問題を報告したり、他のサポートを探したりするには、対応するサポートページをご覧ください。
- Core Reporting API のサポート
- Management API のサポート
- Metadata API のサポート
- Multi-ChannelFunnel Reporting API のサポート
- Real Time Reporting API のサポート
サンプルコード
バージョン 3 の以下のサンプルコード 管理 API です。
アカウントの構造を一覧表示する
サンプルには、現在のユーザーがアクセスできるすべての Google アナリティクス アカウント、ウェブプロパティ、プロファイルが一覧表示されます。
レポートを実行する
サンプルでレポートを実行して、上位 25 個のキーワードとトラフィック ソースを取得する 結果を新しいスプレッドシートに保存します