1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00

remove Google Analytics

This commit is contained in:
Matthias Kretschmann 2018-06-16 17:21:12 +02:00
parent 54914369a3
commit 8d3d2c3bfb
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 5 additions and 18 deletions

View File

@ -26,6 +26,5 @@ addressbook: /matthias-kretschmann.vcf
typekitID: dtg3zui
# Analytics tools
googleanalytics: UA-1441794-4
matomoUrl: https://analytics.kremalicious.com
matomoSite: 2

View File

@ -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: {

View File

@ -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",

View File

@ -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 {
<FadeIn>
<aside className={this.state.classes}>
{Object.keys(this.props.meta.social).map((key, i) => (
<OutboundLink
<a
className={styles.link}
href={this.props.meta.social[key]}
key={i}
>
<NetworkIcon title={key} className={icons.icon} />
<span className={styles.title}>{key}</span>
</OutboundLink>
</a>
))}
</aside>
</FadeIn>

View File

@ -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 (
<li key={title}>
<OutboundLink href={url}>
<a href={url}>
<LinkIcon title={title} className={icons.icon} />
{title}
</OutboundLink>
</a>
</li>
)
})}