Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 676da50

Browse files
authored
Merge pull request #183 from gentksb/docs/adding-analytics
translate Docs/adding analytics
2 parents 14c9d70 + f0a6386 commit 676da50

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

docs/docs/adding-analytics.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
---
2-
title: Adding Analytics
2+
title: アクセス解析を追加する
33
---
44

5-
## Why use analytics?
5+
## なぜアクセス解析を使うのですか?
66

7-
Once you have your site live you will start wanting to get an idea of how many visitors are coming to your site along with other metrics such as:
7+
あなたが自分のウェブサイトをデプロイしてから、どれだけの人がウェブサイトを訪れたか、様々な指標と共に確認できます。
88

9-
- What pages are most popular?
10-
- Where do my visitors come from?
11-
- When do people visit my site?
9+
- もっとも人気のあるページは?
10+
- 訪問者はどこからアクセスしていた?
11+
- 訪問者はいつアクセスしていた?
1212

13-
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アクセス解析用プラグイン)を参照してください。
1414

15-
## Setting up Google Analytics
15+
## Google Analytics の設定
1616

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 でログインしてください。
1818

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)も準備しています。
2020

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 を入力します。
2222

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 を利用します。
2424

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` です。
2626

27-
You can find this tracking ID later by going to `Admin > Tracking Info > Tracking Code`.
27+
もしトラッキング ID のがわからなくなった場合は、 `管理 > トラッキング情報 > トラッキングコード` より確認できます。
2828

29-
## Using `gatsby-plugin-google-analytics`
29+
## `gatsby-plugin-google-analytics` を使う
3030

31-
Now, it's time to configure Gatsby to send page views to your Google Analytics account.
31+
では、Gatsby Google Analytics アカウントを使い、閲覧情報を送信する設定を行いましょう。
3232

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)のセクションを確認してください。
3434

3535
```shell
3636
npm install --save gatsby-plugin-google-analytics
@@ -42,23 +42,23 @@ module.exports = {
4242
{
4343
resolve: `gatsby-plugin-google-analytics`,
4444
options: {
45-
// replace "UA-XXXXXXXXX-X" with your own Tracking ID
45+
// この下の行をあなたのトラッキング ID("UA-XXXXXXXXX-X") で置き換えてください
4646
trackingId: "UA-XXXXXXXXX-X",
4747
},
4848
},
4949
],
5050
}
5151
```
5252

53-
> Note: Read more about [gatsby-config.js](/docs/gatsby-config/)
53+
> ヒント: 詳しい解説は [gatsby-config.js](/docs/gatsby-config/) を参照
5454
55-
Full documentation for the plugin can be found [here](/packages/gatsby-plugin-google-analytics/).
55+
プラグインに関する完全なドキュメントは[こちら](/packages/gatsby-plugin-google-analytics/)を参照してください。
5656

57-
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 のプラグインには、共に膨大な量の設定項目が存在します。あなたのウェブサイトの都合に合わせた設定が可能です。
5858

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.
59+
以上で、あなたのウェブサイトにアクセス解析を追加する手順は終了です!Google Analytics のページにアクセスして、ダッシュボードで表示されている統計を確認しましょう。
6060

61-
## Other Gatsby analytics plugins
61+
## 他の Gatsby アクセス解析用プラグイン
6262

6363
- [Google Tag Manager](/packages/gatsby-plugin-google-tagmanager/)
6464
- [Google Analytics gtag.js](/packages/gatsby-plugin-gtag/)

0 commit comments

Comments
 (0)