From 4687e547bcf210c8b267ff5605773f0da2b11174 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 2 Nov 2022 09:04:50 +0100 Subject: [PATCH] Fix is the custom path is just empty --- tarteaucitron.services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index ed0496b..39c2792 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -4492,7 +4492,7 @@ tarteaucitron.services.matomocloud = { this.setVisitorCookieTimeout(getOriginalVisitorCookieTimeout()); }]); - if (tarteaucitron.user.matomoCustomJSPath === undefined) { + if (tarteaucitron.user.matomoCustomJSPath === undefined || tarteaucitron.user.matomoCustomJSPath == '') { tarteaucitron.addScript('https://cdn.matomo.cloud/matomo.js', '', '', true, 'defer', true); } else { tarteaucitron.addScript(tarteaucitron.user.matomoCustomJSPath, '', '', true, 'defer', true);