public function autoInclude()
    {
        if (!Config::inst()->get(PiwikExtension::class, 'auto_include')) {
            return false;
        }

        if (Director::is_cli()) {
            return false;
        }

        //don't include on dev/build etc...
        if ($this->isBlockedController()) {
            return false;
        }

        if ($this->isBackend() && !Config::inst()->get(PiwikExtension::class, 'include_in_backend')) {
            return false;
        }

        return true;
    }