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;
    }
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;
    }
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 ; }
Helper function to define if tracking code should be included automatically
@return bool
Helper function to define if tracking code should be included automatically