From bdb71375f8045b706103b3331d22836867ea11e6 Mon Sep 17 00:00:00 2001 From: Steffen Schwark Date: Fri, 15 Oct 2021 16:18:23 +0100 Subject: [PATCH] Standard Matomo tracking code --- src/gatsby-ssr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gatsby-ssr.js b/src/gatsby-ssr.js index ff4ea58..3341be2 100644 --- a/src/gatsby-ssr.js +++ b/src/gatsby-ssr.js @@ -26,7 +26,7 @@ function buildTrackingCode(pluginOptions) { const html = ` window.dev = ${dev} if (window.dev === true || ${dntCondition}) { - window._paq = window._paq || []; + var _paq = window._paq = window._paq || []; ${requireConsent ? "window._paq.push(['requireConsent']);" : ''} ${ requireCookieConsent