app/Module/ModuleAnalyticsTrait.php
public function analyticsCanShow(): bool
    {
        $request = app(ServerRequestInterface::class);

        // If the browser sets the DNT header, then we won't use analytics.
        $dnt = $request->getServerParams()['HTTP_DNT'] ?? '';

        if ($dnt === '1') {
            return false;
        }

        foreach ($this->analyticsParameters() as $parameter) {
            if ($parameter === '') {
                return false;
            }
        }

        return true;
    }
public function analyticsCanShow(): bool
    {
        $request = app(ServerRequestInterface::class);

        // If the browser sets the DNT header, then we won't use analytics.
        $dnt = $request->getServerParams()['HTTP_DNT'] ?? '';

        if ($dnt === '1') {
            return false;
        }

        foreach ($this->analyticsParameters() as $parameter) {
            if ($parameter === '') {
                return false;
            }
        }

        return true;
    }
public function analyticsCanShow ( ) : bool { $ request = app ( ServerRequestInterface :: class ) ; // If the browser sets the DNT header, then we won't use analytics. $ dnt = $ request -> getServerParams ( ) [ 'HTTP_DNT' ] ?? '' ; if ( $ dnt === '1' ) { return false ; } foreach ( $ this -> analyticsParameters ( ) as $ parameter ) { if ( $ parameter === '' ) { return false ; } } return true ; }
Should we add this tracker?

@return bool
Should we add this tracker?