You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
Google Analytics provides a way to collect this data and perform analytics on it answering the above questions among many others. The platform is free for 10 million hits per month per Tracking ID. There are other analytics options--see the "Other Gatsby analytics plugins" section at the bottom of this doc for ideas.
13
+
Google Analytics はアクセスデータを収集・分析して上記を含む様々な問いに答える方法を提供します。トラッキング ID ごとに 1 ヶ月あたり 1000 万アクセスまでは無料で利用できます。他のアクセス解析サービスについては、この記事の最後にある[他の Gatsby アクセス解析用プラグイン](/docs/adding-analytics#他のGatsbyアクセス解析用プラグイン)を参照してください。
14
14
15
-
## Setting up Google Analytics
15
+
## Google Analytics の設定
16
16
17
-
The first step is to set up a Google Analytics account. You can do that [here](https://analytics.google.com/) by signing in with your Google Account.
17
+
最初の作業は Google Analytics のアカウントを設定することです。[こちら](https://analytics.google.com/)にアクセスして、Google Account でログインしてください。
18
18
19
-
Google also has a [get started page](https://support.google.com/analytics/answer/1008015?hl=en) for reference.
19
+
Google は[アナリティクスのスタートガイド](https://support.google.com/analytics/answer/1008015?hl=ja)も準備しています。
20
20
21
-
Once you have an account, you will be prompted to set up a new property. This property will have a Tracking ID associated with it. In this case the property will be the website itself. Fill out the form with your website name and URL.
21
+
アカウントを手に入れたら、次はプロパティと呼ばれる概念を設定します。これはトラッキング ID とセットで提供されます。プロパティ名にはウェブサイト自身の名前を設定し、ウェブサイトの URL を入力します。
22
22
23
-
The Tracking ID is what is used to identify data with your site's traffic. You would typically use a different Tracking ID for each website you are monitoring.
23
+
トラッキング ID はあなたのウェブサイト宛トラフィックを識別するための符号です。通常、アクセスを解析するウェブサイトごとに違うトラッキング ID を利用します。
24
24
25
-
You should now have a Tracking ID; take note of it, as your website will need to reference it when sending page views to Google Analytics. It should be in the format `UA-XXXXXXXXX-X`.
25
+
トラッキング ID が発行されたら、これをメモします。ウェブサイトがページの閲覧情報を Google Analytics へ送るために必要となります。ID の形式は `UA-XXXXXXXXX-X` です。
26
26
27
-
You can find this tracking ID later by going to `Admin > Tracking Info > Tracking Code`.
27
+
もしトラッキング ID のがわからなくなった場合は、 `管理 > トラッキング情報 > トラッキングコード` より確認できます。
28
28
29
-
## Using `gatsby-plugin-google-analytics`
29
+
## `gatsby-plugin-google-analytics` を使う
30
30
31
-
Now, it's time to configure Gatsby to send page views to your Google Analytics account.
31
+
では、Gatsby で Google Analytics アカウントを使い、閲覧情報を送信する設定を行いましょう。
32
32
33
-
We are going to use `gatsby-plugin-google-analytics`. For other analytics options (including Google Analytics gtag.js and Google Tag Manager), check [other Gatsby analytics plugins](#other-gatsby-analytics-plugins).
33
+
この解説では `gatsby-plugin-google-analytics` プラグインを使用します。 他の解析手段を使う場合(gtag.js と Google Tag Manager を用いる場合を含む)、[他の Gatsby アクセス解析用プラグイン](#other-gatsby-analytics-plugins)のセクションを確認してください。
34
34
35
35
```shell
36
36
npm install --save gatsby-plugin-google-analytics
@@ -42,23 +42,23 @@ module.exports = {
42
42
{
43
43
resolve:`gatsby-plugin-google-analytics`,
44
44
options: {
45
-
//replace "UA-XXXXXXXXX-X" with your own Tracking ID
There are a number of extra configuration options--both with the Gatsby plugin and also in your Google Analytics account--so you can tailor things to meet your website's needs.
57
+
Google Analytics アカウントと Gatsby のプラグインには、共に膨大な量の設定項目が存在します。あなたのウェブサイトの都合に合わせた設定が可能です。
58
58
59
-
Once this is configured you can deploy your site to test! If you navigate to the homepage of Google Analytics, you should see a dashboard with different statistics.
0 commit comments