Browse Source

* check at first the tracking method

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

+ 5
- 4
system/includes/functions.php View File

@ -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) {


Loading…
Cancel
Save