From edaf03f6d56372a8665a75bd9ac2df09d2318626 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 1 Feb 2024 16:00:29 +0100 Subject: [PATCH] wait #6496 --- js/libs/fluidbook/fluidbook.stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.5