Google アナリティクス Data API v1 は、Google アナリティクスのプロパティのレポートを生成します。API リクエストでは、Google アナリティクスのプロパティ ID(数値)を指定する必要があります。Data API のドキュメントとサンプルコードでは、この ID を GA_PROPERTY_ID と呼んでいます。
用途
すべての Data API メソッドでは、Google アナリティクス プロパティ ID を URL リクエスト パス内に properties/GA_PROPERTY_ID の形式で指定する必要があります。次に例を示します。
POST https://analyticsdata.googleapis.com/v1beta/properties/GA_PROPERTY_ID:runReport
Data API クライアント ライブラリのいずれかを使用している場合は、リクエスト URL パスを手動で操作する必要はありません。ほとんどの API クライアントでは、文字列が properties/GA_PROPERTY_ID の形式の property パラメータが提供されています。クライアント ライブラリの使用例については、クイック スタートガイドをご覧ください。
宿泊施設 ID とは何ですか?
Data API は、次のいずれかのプロダクトでアナリティクス レポートを構成している場合に使用できます。
Google アナリティクス
Google アナリティクスには複数のプロパティ タイプがあります。Data API を使用するには、プロパティがユニバーサル アナリティクスではなく Google アナリティクスのプロパティである必要があります。ユニバーサル アナリティクスは Google アナリティクスの以前のバージョンであり、Data API ではサポートされていません。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-03-10 UTC。"],[[["The Google Analytics Data API v1 allows you to access Google Analytics property data using a numeric property identifier (`GA_PROPERTY_ID`)."],["You can find your `GA_PROPERTY_ID` in the Property Settings of your Google Analytics, Firebase, or AdMob account."],["Universal Analytics properties are not supported by the Data API; use the Google Analytics Reporting API v4 instead."],["Client libraries simplify API usage by providing a `property` parameter, eliminating the need to manually manipulate request URLs."]]],["The Google Analytics Data API v1 requires a numeric property identifier (`GA_PROPERTY_ID`) to generate reports. This ID is specified in the API request URL as `properties/GA_PROPERTY_ID`. You can find your property ID in Google Analytics' Property Settings, Firebase's Google Analytics Integration page, or by navigating from AdMob to Firebase. The Data API only supports Google Analytics properties, not Universal Analytics properties which uses the Google Analytics Reporting API v4.\n"]]