Browse Source

* add token check only if tacking method php

pull/496/head
maenz.torsten 4 years ago
parent
commit
2f9e3ddf53
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      system/includes/functions.php

+ 7
- 1
system/includes/functions.php View File

@ -2035,7 +2035,7 @@ function matomo($title)
return; return;
} }
if(empty($matomoURL) || empty($matomoTracking) || empty($matomoID) || empty($matomoToken))
if(empty($matomoURL) || empty($matomoTracking) || empty($matomoID))
{ {
error_log("Please set all Matomo configuration values", 0); error_log("Please set all Matomo configuration values", 0);
return; return;
@ -2064,6 +2064,12 @@ EOF;
} }
else if($matomoTracking == 'php') else if($matomoTracking == 'php')
{ {
if(empty($matomoToken))
{
error_log("Please set Matomo Token for PHP Tracking Method", 0);
return;
}
$url = 'system/plugins/matomo/MatomoTracker.php'; $url = 'system/plugins/matomo/MatomoTracker.php';
require_once ($url); require_once ($url);


Loading…
Cancel
Save