Piwik\Plugins\CustomPiwikJs\API::doesIncludePluginTrackersAutomatically PHP Method

doesIncludePluginTrackersAutomatically() public method

Detects whether plugin trackers will be automatically added to piwik.js or not. If not, the plugin tracker files need to be loaded manually.
    public function doesIncludePluginTrackersAutomatically()
    {
        Piwik::checkUserHasSomeAdminAccess();
        try {
            $updater = new TrackerUpdater();
            $updater->checkWillSucceed();
            return true;
        } catch (AccessDeniedException $e) {
            return false;
        } catch (\Exception $e) {
            return false;
        }
    }