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

matomo: disable trackLoad

This commit is contained in:
Matthias Kretschmann 2020-04-12 11:15:42 +02:00
parent 631cd78fb3
commit 17d8b598a6
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

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