From: Vincent Vanwaelscappel Date: Thu, 1 Feb 2024 15:00:29 +0000 (+0100) Subject: wait #6496 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=edaf03f6d56372a8665a75bd9ac2df09d2318626;p=fluidbook-html5.git wait #6496 --- diff --git a/js/libs/fluidbook/fluidbook.stats.js b/js/libs/fluidbook/fluidbook.stats.js index 1bd43b42..6335a5d7 100644 --- a/js/libs/fluidbook/fluidbook.stats.js +++ b/js/libs/fluidbook/fluidbook.stats.js @@ -6,7 +6,7 @@ function FluidbookStats() { FluidbookStats.prototype = { setupMatomoTagManager: function () { - if (SETTINGS.matomoTagManager !== '') { + if (SETTINGS.matomoTagManager !== undefined && SETTINGS.matomoTagManager !== null && SETTINGS.matomoTagManager !== '') { var _mtm = window._mtm = window._mtm || []; _mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'}); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];