Skip to content

Commit 65a8cc6

Browse files
chore: setup piwik
1 parent 920795b commit 65a8cc6

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

gatsby-config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,13 @@ module.exports = {
9191
],
9292
},
9393
},
94+
{
95+
resolve: "gatsby-plugin-piwik-pro",
96+
options: {
97+
containerUrl: "https://ythecombinator.containers.piwik.pro",
98+
siteId: "9c66f3a5-2460-4e70-a795-a69c4eb922aa",
99+
enabled: process.env.NODE_ENV === "production",
100+
},
101+
},
94102
].filter(Boolean),
95103
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"gatsby-plugin-manifest": "2.4.34",
2424
"gatsby-plugin-mdx": "1.2.46",
2525
"gatsby-plugin-offline": "3.2.31",
26+
"gatsby-plugin-piwik-pro": "^1.2.0",
2627
"gatsby-plugin-react-helmet": "3.3.14",
2728
"gatsby-plugin-react-helmet-canonical-urls": "1.4.0",
2829
"gatsby-plugin-sharp": "2.6.40",

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,11 @@
17661766
string-width "^2.0.0"
17671767
strip-ansi "^3"
17681768

1769+
"@piwikpro/react-piwik-pro@^1.1.1":
1770+
version "1.1.1"
1771+
resolved "https://registry.yarnpkg.com/@piwikpro/react-piwik-pro/-/react-piwik-pro-1.1.1.tgz#2869e77876c95cc7c850e69fa8367a3b5ae7f744"
1772+
integrity sha512-Zl6+3FMUOqENOflmVkP8YP8WMV0D+H9BND8QUCp1gCqGUSSMlsSxco9hJFZGG0m0wiDAIqkF6p0ocNSVcUeR4g==
1773+
17691774
"@pmmmwh/react-refresh-webpack-plugin@^0.4.1":
17701775
version "0.4.2"
17711776
resolved "https://registry.yarnpkg.com/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.4.2.tgz#1f9741e0bde9790a0e13272082ed7272a083620d"
@@ -7381,6 +7386,13 @@ gatsby-plugin-page-creator@^2.3.32:
73817386
graphql "^14.7.0"
73827387
lodash "^4.17.20"
73837388

7389+
gatsby-plugin-piwik-pro@^1.2.0:
7390+
version "1.2.0"
7391+
resolved "https://registry.yarnpkg.com/gatsby-plugin-piwik-pro/-/gatsby-plugin-piwik-pro-1.2.0.tgz#d18afe8409d227be849d6084325a32470f5df459"
7392+
integrity sha512-drQwjxvAAV53Ipj9lw6NlWBO/pqy9NdJV9xRWNiylfGuwTygCFQCQjCC+vV1c2lvsz0bXHlizhb6k/O/zEaEXg==
7393+
dependencies:
7394+
"@piwikpro/react-piwik-pro" "^1.1.1"
7395+
73847396
gatsby-plugin-react-helmet-canonical-urls@1.4.0:
73857397
version "1.4.0"
73867398
resolved "https://registry.yarnpkg.com/gatsby-plugin-react-helmet-canonical-urls/-/gatsby-plugin-react-helmet-canonical-urls-1.4.0.tgz#9a0f3a6e75b0ff54c6a8e70c2bc48219903a8296"

0 commit comments

Comments
 (0)