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