Google アナリティクスの MCP サーバーを試します。
GitHub からインストールし、詳細については
お知らせをご覧ください。
ウェブサイト向け Google アナリティクス
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このページでは、ウェブサイト向け Google アナリティクスについてと、利用を開始するために必要な作業について説明します。
Google アナリティクスでは、パフォーマンスを把握するためにイベントを測定します。たとえば、Google アナリティクスを使用して、ウェブ トラフィック、ユーザーに関する分析情報、ユーザーがウェブサイトをどのように利用しているかを測定できます。
アカウントを設定する
Google アナリティクス アカウントでデータ収集を設定する手順の概要は次のとおりです。
- Google アナリティクス アカウントをまだお持ちでない場合は、アカウントを作成します。
- アカウントを作成したら、新しいプロパティを作成します。プロパティは、収集したデータを保持するコンテナのようなものです。
- 新しいプロパティを作成したら、ウェブサイトからプロパティにデータを送信するウェブデータ ストリームを追加します。
ウェブサイトにタグを実装する
ウェブデータ ストリームを含む Google アナリティクス アカウントを作成したら、サイトにタグを設定してデータの収集を開始できます。
Google タグ マネージャーを使用することをおすすめします。タグ マネージャーを使用すると、タグ設定を変更してサイトに自動的に反映させることができます。コードを毎回変更する必要はありません。
その他のタグ設定オプションについては、Google アナリティクスのタグ設定をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-04 UTC。
[null,null,["最終更新日 2025-08-04 UTC。"],[],[],null,["# Google Analytics for websites\n\nThis page explains Google Analytics for websites, and what you need to do to get\nstarted.\n\nGoogle Analytics measures events to help you learn about your performance. For\nexample, you can use Google Analytics to measure web traffic, insights about\nyour audience, and how they interact with your website.\n| **Tip:** Before you begin, read about the [tagging options for\n| developers](/analytics/devguides/collection/ga4/tag-options).\n\nSet up your account\n-------------------\n\nHere's an overview of the steps to set up your Google Analytics account for data\ncollection:\n\n1. If you don't already have one, [create a Google Analytics\n account](//support.google.com/analytics/answer/9304153#account).\n2. After creating an account, [create a new\n property](//support.google.com/analytics/answer/9304153#property&zippy=%2Cweb). Properties are like containers that hold the data you collect.\n3. Once you've created a new property, [add a web data stream](//support.google.com/analytics/answer/9304153#stream&zippy=%2Cweb) that sends the data from your website to the property.\n\nTag your website\n----------------\n\nOnce you have a Google Analytics account with a web data stream, you're ready to\ntag your site and start collecting data.\n\nWe recommend that you [use Google Tag\nManager](//support.google.com/tagmanager/answer/14842164). With\nTag Manager, you can make changes to your tagging configuration and push them to\nyour site automatically, without needing to change your code every time.\n\nFor information on other tagging options, see [tagging\nfor Google Analytics](/analytics/devguides/collection/ga4/tag-options)."]]