From de5db9d52619731e965d8a34efc09d3c1489c68f Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Mon, 30 Mar 2020 00:23:25 +0300 Subject: [PATCH 01/24] Update deploying-your-site.md --- docs/docs/recipes/deploying-your-site.md | 54 ++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 6b7e88aec739b..85ed2a64fd0e9 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -130,3 +130,57 @@ Use [`wrangler`](https://developers.cloudflare.com/workers/tooling/wrangler/) to ### Additional resources - [Hosting on Cloudflare](/docs/deploying-to-cloudflare-workers) + +## Setting up google analytics + +### Using gatsby-plugin-google-analytics to track the activity of your Gatsby Site +gatsby-plugin-google-analytics is a very popular plugin that provides insights in the access patters of your website + +### Prerequisites +- A [Gatsby site](/docs/quick-start) with `gatsby-config.js` and an `index.js` page +- The [Gatsby CLI](/docs/gatsby-cli) installed +- A Domain ex: [AWS](https://aws.amazon.com/getting-started/tutorials/get-a-domain/) + +#### Verify the domain in search.google.com + +1. [Verify the domain](https://search.google.com/search-console/not-verified) by clicking on **Search Property** > **Add Property**. Type in your domain, and press Continue. +2. Create a **TXT** record in the DNS configuration for example [on AWS](https://www.entrustdatacard.com/knowledgebase/how-to-create-a-txt-record-on-amazon-aws-route-53-for-entrust-email-validation-method) + +#### Linking the domain to Google analytics admin + +1. Log in to [Analytics](https://analytics.google.com/analytics/) +2. Click Admin. +3. Select **Create Property** in Property column +4. Choose **Web** +5. Fill in the details and click Create. + +#### Getting the analytics tracking id + +1. Sign in to your Analytics account. +2. Click Admin. +3. Select an account from the menu in the ACCOUNT column. +4. Select a property from the menu in the PROPERTY column. +5. Under PROPERTY, click Tracking Info > Tracking Code. Your Tracking ID is displayed at the top of the page. + +#### Using the id in the plugin + +1. ```npm install --save gatsby-plugin-google-analytics``` +2. in gatsby-config.js add + +```js +module.exports = { + plugins: [ + { + resolve: `gatsby-plugin-google-analytics`, + options: { + // replace "UA-XXXXXXXXX-X" with your own Tracking ID + trackingId: "UA-XXXXXXXXX-X", + }, + }, + ], +}` +``` + +### Additional resources +- [adding-analytics](https://www.gatsbyjs.org/docs/adding-analytics/) + From 72f8a989bf1005068aed94fca3f3b1583a7f9740 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Mon, 30 Mar 2020 00:24:21 +0300 Subject: [PATCH 02/24] Added link from recipes page --- docs/docs/recipes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 2a3ef48c2e7da..55f8730dbdbbf 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -125,3 +125,4 @@ Showtime. Once you are happy with your site, you are ready to go live with it! - [Deploying to Netlify](/docs/recipes/deploying-your-site#deploying-to-netlify) - [Deploying to ZEIT Now](/docs/recipes/deploying-your-site#deploying-to-zeit-now) - [Deploying to Cloudflare Workers](/docs/recipes/deploying-your-site#deploying-to-cloudflare-workers) +- [Setting up Google Analytics](/docs/recipes/deploying-your-site#setting-up-google-analytics) \ No newline at end of file From 64a1a419d2558151a1808492c8805050b333a632 Mon Sep 17 00:00:00 2001 From: gatsbybot Date: Mon, 30 Mar 2020 12:21:42 +0000 Subject: [PATCH 03/24] chore: format --- docs/docs/recipes.md | 2 +- docs/docs/recipes/deploying-your-site.md | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/docs/recipes.md b/docs/docs/recipes.md index 55f8730dbdbbf..46e2ac3cae6d4 100644 --- a/docs/docs/recipes.md +++ b/docs/docs/recipes.md @@ -125,4 +125,4 @@ Showtime. Once you are happy with your site, you are ready to go live with it! - [Deploying to Netlify](/docs/recipes/deploying-your-site#deploying-to-netlify) - [Deploying to ZEIT Now](/docs/recipes/deploying-your-site#deploying-to-zeit-now) - [Deploying to Cloudflare Workers](/docs/recipes/deploying-your-site#deploying-to-cloudflare-workers) -- [Setting up Google Analytics](/docs/recipes/deploying-your-site#setting-up-google-analytics) \ No newline at end of file +- [Setting up Google Analytics](/docs/recipes/deploying-your-site#setting-up-google-analytics) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 85ed2a64fd0e9..71906f6a2ed69 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -134,16 +134,18 @@ Use [`wrangler`](https://developers.cloudflare.com/workers/tooling/wrangler/) to ## Setting up google analytics ### Using gatsby-plugin-google-analytics to track the activity of your Gatsby Site + gatsby-plugin-google-analytics is a very popular plugin that provides insights in the access patters of your website ### Prerequisites + - A [Gatsby site](/docs/quick-start) with `gatsby-config.js` and an `index.js` page - The [Gatsby CLI](/docs/gatsby-cli) installed - A Domain ex: [AWS](https://aws.amazon.com/getting-started/tutorials/get-a-domain/) #### Verify the domain in search.google.com -1. [Verify the domain](https://search.google.com/search-console/not-verified) by clicking on **Search Property** > **Add Property**. Type in your domain, and press Continue. +1. [Verify the domain](https://search.google.com/search-console/not-verified) by clicking on **Search Property** > **Add Property**. Type in your domain, and press Continue. 2. Create a **TXT** record in the DNS configuration for example [on AWS](https://www.entrustdatacard.com/knowledgebase/how-to-create-a-txt-record-on-amazon-aws-route-53-for-entrust-email-validation-method) #### Linking the domain to Google analytics admin @@ -164,9 +166,9 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i #### Using the id in the plugin -1. ```npm install --save gatsby-plugin-google-analytics``` +1. `npm install --save gatsby-plugin-google-analytics` 2. in gatsby-config.js add - + ```js module.exports = { plugins: [ @@ -182,5 +184,5 @@ module.exports = { ``` ### Additional resources -- [adding-analytics](https://www.gatsbyjs.org/docs/adding-analytics/) +- [adding-analytics](https://www.gatsbyjs.org/docs/adding-analytics/) From 5bd2af227652a9b287db7c446a298936d7953851 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:29:26 +0300 Subject: [PATCH 04/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 71906f6a2ed69..c68b8fa397d6f 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -143,7 +143,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i - The [Gatsby CLI](/docs/gatsby-cli) installed - A Domain ex: [AWS](https://aws.amazon.com/getting-started/tutorials/get-a-domain/) -#### Verify the domain in search.google.com +### Verify the domain in search.google.com 1. [Verify the domain](https://search.google.com/search-console/not-verified) by clicking on **Search Property** > **Add Property**. Type in your domain, and press Continue. 2. Create a **TXT** record in the DNS configuration for example [on AWS](https://www.entrustdatacard.com/knowledgebase/how-to-create-a-txt-record-on-amazon-aws-route-53-for-entrust-email-validation-method) From 8494fba8996a406dcbf9d9af01642881becd6456 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:29:40 +0300 Subject: [PATCH 05/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index c68b8fa397d6f..503eb59a38633 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -153,7 +153,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i 1. Log in to [Analytics](https://analytics.google.com/analytics/) 2. Click Admin. 3. Select **Create Property** in Property column -4. Choose **Web** +4. Choose **Web**. 5. Fill in the details and click Create. #### Getting the analytics tracking id From 8ca13df0df670c30fb516a4e7aa5be03dada10d2 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:29:51 +0300 Subject: [PATCH 06/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 503eb59a38633..ce76ef2a74bc9 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -131,7 +131,7 @@ Use [`wrangler`](https://developers.cloudflare.com/workers/tooling/wrangler/) to - [Hosting on Cloudflare](/docs/deploying-to-cloudflare-workers) -## Setting up google analytics +## Setting up Google Analytics ### Using gatsby-plugin-google-analytics to track the activity of your Gatsby Site From 69292b51fd3eaefeba28489f5c02a3f784ec6501 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:29:59 +0300 Subject: [PATCH 07/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index ce76ef2a74bc9..e595543999271 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -133,7 +133,7 @@ Use [`wrangler`](https://developers.cloudflare.com/workers/tooling/wrangler/) to ## Setting up Google Analytics -### Using gatsby-plugin-google-analytics to track the activity of your Gatsby Site +### Using gatsby-plugin-google-analytics gatsby-plugin-google-analytics is a very popular plugin that provides insights in the access patters of your website From 26fd50951b25777153f85e082805543c422e4b26 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:30:17 +0300 Subject: [PATCH 08/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index e595543999271..048fc410ad0ac 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -169,7 +169,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i 1. `npm install --save gatsby-plugin-google-analytics` 2. in gatsby-config.js add -```js +```javascript:title="gatsby-config.js" module.exports = { plugins: [ { From c9a35a47bc3beb56c508040c0dc0500772ee0e3e Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:30:30 +0300 Subject: [PATCH 09/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 048fc410ad0ac..865123b02d959 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -167,7 +167,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i #### Using the id in the plugin 1. `npm install --save gatsby-plugin-google-analytics` -2. in gatsby-config.js add +2. Add the following to your `gatsby-config.js` file. ```javascript:title="gatsby-config.js" module.exports = { From 6118325817468703b5732177daaef8f910803391 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:30:47 +0300 Subject: [PATCH 10/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 865123b02d959..4a9465a75a29c 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -164,7 +164,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i 4. Select a property from the menu in the PROPERTY column. 5. Under PROPERTY, click Tracking Info > Tracking Code. Your Tracking ID is displayed at the top of the page. -#### Using the id in the plugin +### Using the ID in the plugin 1. `npm install --save gatsby-plugin-google-analytics` 2. Add the following to your `gatsby-config.js` file. From 5d492acc95006bfbec4aa1b6a5ebafce2013f65a Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:30:57 +0300 Subject: [PATCH 11/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 4a9465a75a29c..eabe5412ada49 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -166,7 +166,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i ### Using the ID in the plugin -1. `npm install --save gatsby-plugin-google-analytics` +1. Run `npm install gatsby-plugin-google-analytics` in your terminal. 2. Add the following to your `gatsby-config.js` file. ```javascript:title="gatsby-config.js" From 211b0b42d1a6adc5c8cd760e6ae5641263ecd1f5 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:31:11 +0300 Subject: [PATCH 12/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index eabe5412ada49..67bc560cdd0f3 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -145,7 +145,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i ### Verify the domain in search.google.com -1. [Verify the domain](https://search.google.com/search-console/not-verified) by clicking on **Search Property** > **Add Property**. Type in your domain, and press Continue. +1. Navigate to the [Google search console]((https://search.google.com/search-console/not-verified)) to verify the domain by clicking on **Search Property** > **Add Property**. Type in your domain and press Continue. 2. Create a **TXT** record in the DNS configuration for example [on AWS](https://www.entrustdatacard.com/knowledgebase/how-to-create-a-txt-record-on-amazon-aws-route-53-for-entrust-email-validation-method) #### Linking the domain to Google analytics admin From 31767a6630124ff88efc16aad1644b847291add9 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:31:28 +0300 Subject: [PATCH 13/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 67bc560cdd0f3..bce4e5be149fa 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -146,7 +146,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i ### Verify the domain in search.google.com 1. Navigate to the [Google search console]((https://search.google.com/search-console/not-verified)) to verify the domain by clicking on **Search Property** > **Add Property**. Type in your domain and press Continue. -2. Create a **TXT** record in the DNS configuration for example [on AWS](https://www.entrustdatacard.com/knowledgebase/how-to-create-a-txt-record-on-amazon-aws-route-53-for-entrust-email-validation-method) +2. Add a **TXT** record to your DNS configuration. Follow the directions for your provider, or refer to [Google docs](https://support.google.com/a/answer/183895?hl=en). #### Linking the domain to Google analytics admin From 9eaf976ee79cb1c73d6ce92d2a81f89d92637959 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:31:41 +0300 Subject: [PATCH 14/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index bce4e5be149fa..79dff73cb87cf 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -148,7 +148,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i 1. Navigate to the [Google search console]((https://search.google.com/search-console/not-verified)) to verify the domain by clicking on **Search Property** > **Add Property**. Type in your domain and press Continue. 2. Add a **TXT** record to your DNS configuration. Follow the directions for your provider, or refer to [Google docs](https://support.google.com/a/answer/183895?hl=en). -#### Linking the domain to Google analytics admin +### Linking the domain to Google Analytics admin 1. Log in to [Analytics](https://analytics.google.com/analytics/) 2. Click Admin. From e4ddca6585f2509ee098c572a4b48b9c89e7dd7d Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:31:56 +0300 Subject: [PATCH 15/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 79dff73cb87cf..9ec63fe6d0686 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -158,7 +158,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i #### Getting the analytics tracking id -1. Sign in to your Analytics account. +1. Sign in to your Google Analytics account. 2. Click Admin. 3. Select an account from the menu in the ACCOUNT column. 4. Select a property from the menu in the PROPERTY column. From bb9b690a23bcf6f8edd8f9e15907bdc5b110dffd Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:32:23 +0300 Subject: [PATCH 16/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 9ec63fe6d0686..3fb8f75729916 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -150,7 +150,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i ### Linking the domain to Google Analytics admin -1. Log in to [Analytics](https://analytics.google.com/analytics/) +1. Log into [Google Analytics](https://analytics.google.com/analytics/). 2. Click Admin. 3. Select **Create Property** in Property column 4. Choose **Web**. From 3f5856ef7a27ef55d03e4368706d4fb30fe07789 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:32:47 +0300 Subject: [PATCH 17/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 3fb8f75729916..63677e8af56eb 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -152,7 +152,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i 1. Log into [Google Analytics](https://analytics.google.com/analytics/). 2. Click Admin. -3. Select **Create Property** in Property column +3. Select **Create Property** in the Property column. 4. Choose **Web**. 5. Fill in the details and click Create. From f9dd2f14980829e0a472ec71c50c4ffee66a7df7 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:32:57 +0300 Subject: [PATCH 18/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 63677e8af56eb..5562266ba8504 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -156,7 +156,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i 4. Choose **Web**. 5. Fill in the details and click Create. -#### Getting the analytics tracking id +### Getting your Google Analytics `Tracking ID` 1. Sign in to your Google Analytics account. 2. Click Admin. From 07d4231add40f4da2be1c54ef79785ba8fd548e4 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:33:54 +0300 Subject: [PATCH 19/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 5562266ba8504..3114b7e189baa 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -141,7 +141,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i - A [Gatsby site](/docs/quick-start) with `gatsby-config.js` and an `index.js` page - The [Gatsby CLI](/docs/gatsby-cli) installed -- A Domain ex: [AWS](https://aws.amazon.com/getting-started/tutorials/get-a-domain/) +- A Domain from your provider of choice, e.g. [AWS](https://aws.amazon.com/getting-started/tutorials/get-a-domain/) ### Verify the domain in search.google.com From e074c014c3f5efc166e912feca1e029b578c58af Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:34:05 +0300 Subject: [PATCH 20/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 3114b7e189baa..32303a41b4975 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -139,7 +139,7 @@ gatsby-plugin-google-analytics is a very popular plugin that provides insights i ### Prerequisites -- A [Gatsby site](/docs/quick-start) with `gatsby-config.js` and an `index.js` page +- A [Gatsby site](/docs/quick-start) with a `gatsby-config.js` file and an `index.js` page - The [Gatsby CLI](/docs/gatsby-cli) installed - A Domain from your provider of choice, e.g. [AWS](https://aws.amazon.com/getting-started/tutorials/get-a-domain/) From a6c9f3426eb41baaaea839180af7bbfe850ba18c Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:34:16 +0300 Subject: [PATCH 21/24] Update docs/docs/recipes/deploying-your-site.md Co-Authored-By: LB --- docs/docs/recipes/deploying-your-site.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 32303a41b4975..8a0cb08d23a39 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -135,7 +135,7 @@ Use [`wrangler`](https://developers.cloudflare.com/workers/tooling/wrangler/) to ### Using gatsby-plugin-google-analytics -gatsby-plugin-google-analytics is a very popular plugin that provides insights in the access patters of your website +`gatsby-plugin-google-analytics` is a popular plugin that provides insights into how users access your website. You can use it to track site activity. ### Prerequisites From fa725e7e29a8b32ad7843e871216a1ce71a6e2c8 Mon Sep 17 00:00:00 2001 From: Pascal Jean-Francois Date: Tue, 7 Apr 2020 22:38:17 +0300 Subject: [PATCH 22/24] Update deploying-your-site.md --- docs/docs/recipes/deploying-your-site.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index 8a0cb08d23a39..fe78ddaf15bf8 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -151,7 +151,7 @@ Use [`wrangler`](https://developers.cloudflare.com/workers/tooling/wrangler/) to ### Linking the domain to Google Analytics admin 1. Log into [Google Analytics](https://analytics.google.com/analytics/). -2. Click Admin. +2. Click **Admin**. 3. Select **Create Property** in the Property column. 4. Choose **Web**. 5. Fill in the details and click Create. @@ -159,10 +159,10 @@ Use [`wrangler`](https://developers.cloudflare.com/workers/tooling/wrangler/) to ### Getting your Google Analytics `Tracking ID` 1. Sign in to your Google Analytics account. -2. Click Admin. +2. Click **Admin**. 3. Select an account from the menu in the ACCOUNT column. 4. Select a property from the menu in the PROPERTY column. -5. Under PROPERTY, click Tracking Info > Tracking Code. Your Tracking ID is displayed at the top of the page. +5. Under Property, click **Tracking Info** > **Tracking Code**. Your Tracking ID is displayed at the top of the page. ### Using the ID in the plugin From 84b9ac4f6b7dd81368fb8da5b22e8b9722520d42 Mon Sep 17 00:00:00 2001 From: gatsbybot Date: Tue, 7 Apr 2020 20:07:33 +0000 Subject: [PATCH 23/24] chore: format --- docs/docs/recipes/deploying-your-site.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index fe78ddaf15bf8..ef662b2f4081e 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -141,11 +141,11 @@ Use [`wrangler`](https://developers.cloudflare.com/workers/tooling/wrangler/) to - A [Gatsby site](/docs/quick-start) with a `gatsby-config.js` file and an `index.js` page - The [Gatsby CLI](/docs/gatsby-cli) installed -- A Domain from your provider of choice, e.g. [AWS](https://aws.amazon.com/getting-started/tutorials/get-a-domain/) +- A Domain from your provider of choice, e.g. [AWS](https://aws.amazon.com/getting-started/tutorials/get-a-domain/) ### Verify the domain in search.google.com -1. Navigate to the [Google search console]((https://search.google.com/search-console/not-verified)) to verify the domain by clicking on **Search Property** > **Add Property**. Type in your domain and press Continue. +1. Navigate to the [Google search console](<(https://search.google.com/search-console/not-verified)>) to verify the domain by clicking on **Search Property** > **Add Property**. Type in your domain and press Continue. 2. Add a **TXT** record to your DNS configuration. Follow the directions for your provider, or refer to [Google docs](https://support.google.com/a/answer/183895?hl=en). ### Linking the domain to Google Analytics admin From f67fddc4ed4907d8e333fdaafe8070957f8b5b4d Mon Sep 17 00:00:00 2001 From: Laurie Barth Date: Tue, 7 Apr 2020 16:23:53 -0400 Subject: [PATCH 24/24] Minor formatting, finishing step --- docs/docs/recipes/deploying-your-site.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/recipes/deploying-your-site.md b/docs/docs/recipes/deploying-your-site.md index ef662b2f4081e..1427c82012069 100644 --- a/docs/docs/recipes/deploying-your-site.md +++ b/docs/docs/recipes/deploying-your-site.md @@ -133,20 +133,18 @@ Use [`wrangler`](https://developers.cloudflare.com/workers/tooling/wrangler/) to ## Setting up Google Analytics -### Using gatsby-plugin-google-analytics - -`gatsby-plugin-google-analytics` is a popular plugin that provides insights into how users access your website. You can use it to track site activity. +Use `gatsby-plugin-google-analytics` to track site activity and provide insights into how users access your website. ### Prerequisites - A [Gatsby site](/docs/quick-start) with a `gatsby-config.js` file and an `index.js` page - The [Gatsby CLI](/docs/gatsby-cli) installed -- A Domain from your provider of choice, e.g. [AWS](https://aws.amazon.com/getting-started/tutorials/get-a-domain/) +- A domain from your provider of choice, e.g. [AWS](https://aws.amazon.com/getting-started/tutorials/get-a-domain/) ### Verify the domain in search.google.com 1. Navigate to the [Google search console](<(https://search.google.com/search-console/not-verified)>) to verify the domain by clicking on **Search Property** > **Add Property**. Type in your domain and press Continue. -2. Add a **TXT** record to your DNS configuration. Follow the directions for your provider, or refer to [Google docs](https://support.google.com/a/answer/183895?hl=en). +2. Add a **TXT** record to your DNS configuration. Follow the directions for your provider, or refer to the [Google documentation](https://support.google.com/a/answer/183895?hl=en). ### Linking the domain to Google Analytics admin @@ -154,7 +152,7 @@ Use [`wrangler`](https://developers.cloudflare.com/workers/tooling/wrangler/) to 2. Click **Admin**. 3. Select **Create Property** in the Property column. 4. Choose **Web**. -5. Fill in the details and click Create. +5. Fill in the details and click **Create**. ### Getting your Google Analytics `Tracking ID` @@ -183,6 +181,8 @@ module.exports = { }` ``` +3. Build and deploy your site to start seeing traffic in your [Google Analytics dashboard](https://analytics.google.com/analytics/web/). + ### Additional resources - [adding-analytics](https://www.gatsbyjs.org/docs/adding-analytics/)