ウェブサイトにタグを追加すると、測定サービスや広告サービス(Google アナリティクスや Google 広告コンバージョン測定など)でデータを収集できるようになります。タグを追加する際は、gtag.js という Google タグ(JavaScript コードの変更が必要)や、Google タグ マネージャーなどのタグ管理システム(タグ管理システム内の変更が必要)が使えます。
モバイルアプリに測定タグと広告タグをデプロイする場合は、Firebase 向け Google アナリティクス SDK が使えます。この SDK をデプロイすると、Google タグ マネージャーを使ってデータの変更とルーティングもできるようになります。
<script> window.dataLayer = window.dataLayer ||[]; function gtag(){dataLayer.push(arguments);} gtag('js',newDate());
gtag('config','TAG_ID'); </script>
タグ マネージャーを使って Google アナリティクスと Google 広告での測定を可能にするには、Google アナリティクス用のタグと Google 広告のコンバージョン用のタグを作成し、どちらも同じトリガーで配信するように設定します。このコンテナを公開すると、その変更が直ちにウェブサイトに反映されます。詳しくは、Google 広告のコンバージョン トラッキングに関する記事をご覧ください。
[null,null,["最終更新日 2024-02-06 UTC。"],[[["Tagging involves adding code snippets to web pages to gather data on visitor behavior and site performance."],["The Google tag streamlines tag management, allowing connection to multiple Google products with a single code snippet."],["Implementing tags can be done through Google Tag Manager or gtag.js, offering varying levels of coding involvement."],["Website builders and content management systems often provide integrations for simplified tag setup."],["Mobile app tagging utilizes the Google Analytics for Firebase SDK and can be managed through Tag Manager."]]],["Tagging involves adding code snippets to website pages to track user behavior and gain insights for informed decision-making. The Google tag, a unified code snippet, can be implemented across a website and connected to multiple Google products. Implementation methods include Google Tag Manager, which requires two code snippets and allows tag management without coding, and gtag.js, requiring one code snippet and JavaScript proficiency. Website builders and the Firebase SDK offer integrations for simplified implementation.\n"]]