From dc574ab72c4ec01c4fa995ae9aa9a1469f04387a Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 14 May 2018 22:15:53 +0200 Subject: [PATCH] fix environment check --- src/gatsby-browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gatsby-browser.js b/src/gatsby-browser.js index 3e88232..815351f 100644 --- a/src/gatsby-browser.js +++ b/src/gatsby-browser.js @@ -15,7 +15,7 @@ function getDuration() { } exports.onRouteUpdate = ({ location }) => { - if (process.env.NODE_ENV !== 'production' && typeof _paq !== 'undefined') { + if (process.env.NODE_ENV === 'production' && typeof _paq !== 'undefined') { window._paq = window._paq || [] window.dev = window.dev || null