From 12c6d24df2e296909b7b000fa8519effa9a7e8f1 Mon Sep 17 00:00:00 2001 From: "maenz.torsten" Date: Thu, 26 Aug 2021 21:49:44 +0200 Subject: [PATCH] * check at first the tracking method --- system/includes/functions.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index 911cec3..64e775e 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -2030,6 +2030,11 @@ function matomo($title) $matomoID = config('matomo.id'); $matomoTracking = config('matomo.tracking'); + if($matomoTracking == 'disable') + { + return; + } + if(empty($matomoURL) || empty($matomoTracking) || empty($matomoID) || empty($matomoToken)) { error_log("Please set all Matomo configuration values", 0); @@ -2072,10 +2077,6 @@ EOF; // Track page view $matomoTracker->doTrackPageView($title); } - else - { - return "nothing"; - } } function slashUrl($url) {