From 8d3d2c3bfbb73374fe6a7a2d8414a2b87d5010bb Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 16 Jun 2018 17:21:12 +0200 Subject: [PATCH] remove Google Analytics --- data/meta.yml | 1 - gatsby-config.js | 11 +---------- package.json | 1 - src/components/molecules/Networks.jsx | 5 ++--- src/components/molecules/ProjectLinks.jsx | 5 ++--- 5 files changed, 5 insertions(+), 18 deletions(-) diff --git a/data/meta.yml b/data/meta.yml index 3afc8a1..2de3c59 100644 --- a/data/meta.yml +++ b/data/meta.yml @@ -26,6 +26,5 @@ addressbook: /matthias-kretschmann.vcf typekitID: dtg3zui # Analytics tools -googleanalytics: UA-1441794-4 matomoUrl: https://analytics.kremalicious.com matomoSite: 2 diff --git a/gatsby-config.js b/gatsby-config.js index 2219fb6..9ef8659 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -2,7 +2,7 @@ const path = require('path') const fs = require('fs') const yaml = require('js-yaml') const meta = yaml.load(fs.readFileSync('./data/meta.yml', 'utf8')) -const { url, googleanalytics, matomoUrl, matomoSite } = meta +const { url, matomoUrl, matomoSite } = meta module.exports = { siteMetadata: { @@ -50,15 +50,6 @@ module.exports = { path: path.join(__dirname, 'src', 'images') } }, - { - resolve: 'gatsby-plugin-google-analytics', - options: { - trackingId: `${googleanalytics}`, - head: false, - anonymize: true, - respectDNT: true - } - }, { resolve: 'gatsby-plugin-matomo', options: { diff --git a/package.json b/package.json index 56c962d..6b1972d 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ "gatsby-image": "^1.0.52", "gatsby-link": "^1.6.44", "gatsby-plugin-favicon": "^2.1.1", - "gatsby-plugin-google-analytics": "^1.0.31", "gatsby-plugin-matomo": "^0.3.2", "gatsby-plugin-offline": "^1.0.18", "gatsby-plugin-react-helmet": "^2.0.11", diff --git a/src/components/molecules/Networks.jsx b/src/components/molecules/Networks.jsx index 9802b58..54e447d 100644 --- a/src/components/molecules/Networks.jsx +++ b/src/components/molecules/Networks.jsx @@ -1,6 +1,5 @@ import React, { PureComponent } from 'react' import PropTypes from 'prop-types' -import { OutboundLink } from 'gatsby-plugin-google-analytics' import { FadeIn } from '../atoms/Animations' import { ReactComponent as Email } from '../../images/email.svg' @@ -60,14 +59,14 @@ class Network extends PureComponent { diff --git a/src/components/molecules/ProjectLinks.jsx b/src/components/molecules/ProjectLinks.jsx index 3daf30a..5641367 100644 --- a/src/components/molecules/ProjectLinks.jsx +++ b/src/components/molecules/ProjectLinks.jsx @@ -1,6 +1,5 @@ import React from 'react' import PropTypes from 'prop-types' -import { OutboundLink } from 'gatsby-plugin-google-analytics' import { ReactComponent as Link } from '../../images/link.svg' import { ReactComponent as Download } from '../../images/download.svg' @@ -43,10 +42,10 @@ const ProjectLinks = ({ links }) => ( return (
  • - + {title} - +
  • ) })}