Skip to content

Commit

Permalink
Merge pull request #75 from brainhubeu/ga
Browse files Browse the repository at this point in the history
google analytics
  • Loading branch information
piotr-s-brainhub authored Mar 17, 2020
2 parents a3dbe5d + 1a845f5 commit 24e0675
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
20 changes: 16 additions & 4 deletions docs-www/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,20 @@ module.exports = {
// URL prefix on production environment. For more info see https://www.gatsbyjs.org/docs/path-prefix/
pathPrefix: process.env.PATH_PREFIX || ' ',

plugins: pluginConfigFactory({
config: `${__dirname}/gatsby-docs-kit.yml`,
resources: path.resolve(__dirname, '../docs'),
}),
plugins: [
...pluginConfigFactory({
config: `${__dirname}/gatsby-docs-kit.yml`,
resources: path.resolve(__dirname, '../docs'),
}),
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-62818184-6',
head: false,
anonymize: true,
respectDNT: true,
pageTransitionDelay: 0,
cookieDomain: 'brainhubeu.github.io',
},
],
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"author": "Krystian Kościelniak",
"license": "MIT",
"dependencies": {
"gatsby-plugin-google-analytics": "^2.1.38",
"lodash.difference": "^4.5.0",
"lodash.intersection": "^4.4.0"
},
Expand Down
19 changes: 19 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@
core-js "^2.6.5"
regenerator-runtime "^0.13.2"

"@babel/runtime@^7.8.7":
version "7.8.7"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.7.tgz#8fefce9802db54881ba59f90bb28719b4996324d"
integrity sha512-+AATMUFppJDw6aiR5NVPHqIQBlV/Pj8wY/EZH+lmvRdUo9xBaz/rF3alAwFJQavvKfeOlPE7oaaDHVbcySbCsg==
dependencies:
regenerator-runtime "^0.13.4"

"@babel/template@^7.8.3":
version "7.8.6"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.8.6.tgz#86b22af15f828dfb086474f964dcc3e39c43ce2b"
Expand Down Expand Up @@ -3115,6 +3122,13 @@ functions-have-names@^1.2.0:
resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.1.tgz#a981ac397fa0c9964551402cdc5533d7a4d52f91"
integrity sha512-j48B/ZI7VKs3sgeI2cZp7WXWmZXu7Iq5pl5/vptV5N2mq+DGFuS/ulaDjtaoLpYzuD6u8UgrUKHfgo7fDTSiBA==

gatsby-plugin-google-analytics@^2.1.38:
version "2.1.38"
resolved "https://registry.yarnpkg.com/gatsby-plugin-google-analytics/-/gatsby-plugin-google-analytics-2.1.38.tgz#37907b2000abf19dcba06da31ccca99abf3fbbc2"
integrity sha512-Ce5E1qoD1jQkDcQIm4qPmu0L66ujqwHua0Vy+UC4rUw2GdIn5dunpBklgYaDFF2DG1gDyMwJ4v+XElLaltXcDQ==
dependencies:
"@babel/runtime" "^7.8.7"

gauge@~2.7.3:
version "2.7.4"
resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7"
Expand Down Expand Up @@ -5511,6 +5525,11 @@ regenerator-runtime@^0.13.2:
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz#32e59c9a6fb9b1a4aff09b4930ca2d4477343447"
integrity sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA==

regenerator-runtime@^0.13.4:
version "0.13.5"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697"
integrity sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==

regenerator-transform@^0.10.0:
version "0.10.1"
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd"
Expand Down

0 comments on commit 24e0675

Please sign in to comment.