1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +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: { resolvers: {
// For any node of type MarkdownRemark, list how to resolve the fields' values // For any node of type MarkdownRemark, list how to resolve the fields' values
MarkdownRemark: { MarkdownRemark: {
title: node => node.frontmatter.title, title: (node) => node.frontmatter.title,
excerpt: node => node.excerpt, excerpt: (node) => node.excerpt,
tags: node => node.frontmatter.tags, tags: (node) => node.frontmatter.tags,
content: node => node.rawMarkdownBody, content: (node) => node.rawMarkdownBody,
slug: node => node.fields.slug slug: (node) => node.fields.slug
} }
} }
} }
@ -131,7 +131,8 @@ module.exports = {
options: { options: {
siteId: '1', siteId: '1',
matomoUrl: 'https://analytics.kremalicious.com', matomoUrl: 'https://analytics.kremalicious.com',
siteUrl: `${siteConfig.siteUrl}` siteUrl: `${siteConfig.siteUrl}`,
trackLoad: false
} }
}, },
{ {
@ -167,7 +168,7 @@ module.exports = {
feeds: [ feeds: [
{ {
serialize: ({ query: { allMarkdownRemark } }) => { serialize: ({ query: { allMarkdownRemark } }) => {
return allMarkdownRemark.edges.map(edge => { return allMarkdownRemark.edges.map((edge) => {
return Object.assign({}, edge.node.frontmatter, { return Object.assign({}, edge.node.frontmatter, {
title: edge.node.frontmatter.title, title: edge.node.frontmatter.title,
date: edge.node.fields.date, date: edge.node.fields.date,