![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/anfangola.com/wp-content/plugins/matomo/app/plugins/CustomJsTracker/ |
<?php /** * Matomo - free/libre analytics platform * * @link https://matomo.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ namespace Piwik\Plugins\CustomJsTracker; use Piwik\Container\StaticContainer; use Piwik\Piwik; use Piwik\Plugins\CustomJsTracker\Exception\AccessDeniedException; /** * API for plugin CustomJsTracker * * @method static \Piwik\Plugins\CustomJsTracker\API getInstance() */ class API extends \Piwik\Plugin\API { /** * Detects whether plugin trackers will be automatically added to piwik.js or not. If not, the plugin tracker files * need to be loaded manually. * @return bool */ public function doesIncludePluginTrackersAutomatically() { Piwik::checkUserHasSomeAdminAccess(); try { $updater = StaticContainer::get('Piwik\\Plugins\\CustomJsTracker\\TrackerUpdater'); $updater->checkWillSucceed(); return true; } catch (AccessDeniedException $e) { return false; } catch (\Exception $e) { return false; } } }