From 2cd683c8e8e3d1e3dc108e8afe83751145cfebab Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 9 Mar 2020 15:52:35 +0100 Subject: [PATCH] add matomo tracking --- gatsby-config.js | 8 ++++++++ package.json | 1 + yarn.lock | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/gatsby-config.js b/gatsby-config.js index f64b1a20..d0a10f3c 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -30,6 +30,14 @@ module.exports = { icon: `src/images/logo.svg` // This path is relative to the root of the site. } }, + { + resolve: "gatsby-plugin-matomo", + options: { + siteId: 3, + matomoUrl: "https://surveillance.sia.tech", + siteUrl: "https://siasky.net" + } + }, `gatsby-plugin-remove-serviceworker` ] }; diff --git a/package.json b/package.json index 158bee82..e9528080 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "gatsby": "^2.19.32", "gatsby-image": "^2.2.43", "gatsby-plugin-manifest": "^2.2.44", + "gatsby-plugin-matomo": "^0.8.1", "gatsby-plugin-react-helmet": "^3.1.22", "gatsby-plugin-remove-serviceworker": "^1.0.0", "gatsby-plugin-robots-txt": "^1.5.0", diff --git a/yarn.lock b/yarn.lock index f6fa04cc..fe4082cf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5534,6 +5534,11 @@ gatsby-plugin-manifest@^2.2.44: semver "^5.7.1" sharp "^0.23.4" +gatsby-plugin-matomo@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/gatsby-plugin-matomo/-/gatsby-plugin-matomo-0.8.1.tgz#f8f775e91cfaaae602654b30e7f2897eaca090ca" + integrity sha512-dK6mMIF2pGfNjWS0CbKSgUp+zKJil2mIw0efH9ghADzzpXIXImlVgDtKJaEM58+jL9bNunWmjOT7AvFNUkgZng== + gatsby-plugin-page-creator@^2.1.42: version "2.1.42" resolved "https://registry.yarnpkg.com/gatsby-plugin-page-creator/-/gatsby-plugin-page-creator-2.1.42.tgz#08110702b2611a58f008b61838b5ca7c91db9701"