From 519844dedffea26d49900435cf2e5c11330e8aca Mon Sep 17 00:00:00 2001 From: Chad Whitacre Date: Tue, 9 Jan 2024 17:56:27 -0500 Subject: [PATCH] Remove Google Analytics --- package.json | 1 - src/gatsby/config.ts | 15 --------------- yarn.lock | 8 -------- 3 files changed, 24 deletions(-) diff --git a/package.json b/package.json index 7bf72b74f0..0bfe4bbfff 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "gatsby": "^2.32", "gatsby-image": "^2.4.3", "gatsby-plugin-algolia": "^0.11.2", - "gatsby-plugin-google-gtag": "^2.1.11", "gatsby-plugin-manifest": "^2.4.2", "gatsby-plugin-mdx": "^1.10.1", "gatsby-plugin-offline": "^2.2.10", diff --git a/src/gatsby/config.ts b/src/gatsby/config.ts index 59085fd3dc..836aba4d69 100644 --- a/src/gatsby/config.ts +++ b/src/gatsby/config.ts @@ -10,21 +10,6 @@ const getPlugins = () => { 'gatsby-plugin-sass', 'gatsby-plugin-sharp', 'gatsby-plugin-zeit-now', - { - resolve: 'gatsby-plugin-google-gtag', - options: { - // You can add multiple tracking ids and a pageview event will be fired for all of them. - trackingIds: [ - 'UA-30327640-1', // Sentry - ], - // This object gets passed directly to the gtag config command - // This config will be shared across all trackingIds - gtagConfig: { - anonymize_ip: true, - cookie_expires: 0, - }, - }, - }, { resolve: 'gatsby-plugin-mdx', options: { diff --git a/yarn.lock b/yarn.lock index e0e32fb859..3c1bcdefba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8328,14 +8328,6 @@ gatsby-plugin-algolia@^0.11.2: gatsby-cli "^1.1.58" lodash.chunk "^4.2.0" -gatsby-plugin-google-gtag@^2.1.11: - version "2.8.0" - resolved "https://registry.yarnpkg.com/gatsby-plugin-google-gtag/-/gatsby-plugin-google-gtag-2.8.0.tgz#234dc936dd32440f861a3c0308521864ae55c5aa" - integrity sha512-ghvVjbcDszlt7/oaHvmx97WVceWbbMZQ7b6FSO4RY0FVUm/UkvrZldAxraioS1uEra+ndeEDyPM+MiftuDR8Aw== - dependencies: - "@babel/runtime" "^7.12.5" - minimatch "^3.0.4" - gatsby-plugin-manifest@^2.4.2: version "2.12.1" resolved "https://registry.yarnpkg.com/gatsby-plugin-manifest/-/gatsby-plugin-manifest-2.12.1.tgz#d92f23d2d17d3c69445ef7b7842e5441e8dd785e"