From 17d8b598a60db9b3799f3864b78d6b12814261c4 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 12 Apr 2020 11:15:42 +0200 Subject: [PATCH] matomo: disable trackLoad --- gatsby-config.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index be47e200..cab47a8c 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -117,11 +117,11 @@ module.exports = { resolvers: { // For any node of type MarkdownRemark, list how to resolve the fields' values MarkdownRemark: { - title: node => node.frontmatter.title, - excerpt: node => node.excerpt, - tags: node => node.frontmatter.tags, - content: node => node.rawMarkdownBody, - slug: node => node.fields.slug + title: (node) => node.frontmatter.title, + excerpt: (node) => node.excerpt, + tags: (node) => node.frontmatter.tags, + content: (node) => node.rawMarkdownBody, + slug: (node) => node.fields.slug } } } @@ -131,7 +131,8 @@ module.exports = { options: { siteId: '1', matomoUrl: 'https://analytics.kremalicious.com', - siteUrl: `${siteConfig.siteUrl}` + siteUrl: `${siteConfig.siteUrl}`, + trackLoad: false } }, { @@ -167,7 +168,7 @@ module.exports = { feeds: [ { serialize: ({ query: { allMarkdownRemark } }) => { - return allMarkdownRemark.edges.map(edge => { + return allMarkdownRemark.edges.map((edge) => { return Object.assign({}, edge.node.frontmatter, { title: edge.node.frontmatter.title, date: edge.node.fields.date,