private function trackIfEnabled($key, \Closure $callback, $default = null)
    {
        return $this->isEnabled()
            ? ($this->getConfig("tracking.$key", false) ? $callback() : $default)
            : $default;
    }
private function trackIfEnabled($key, \Closure $callback, $default = null)
    {
        return $this->isEnabled()
            ? ($this->getConfig("tracking.$key", false) ? $callback() : $default)
            : $default;
    }
private function trackIfEnabled ( $ key , \ Closure $ callback , $ default = null ) { return $ this -> isEnabled ( ) ? ( $ this -> getConfig ( "tracking.$key" , false ) ? $ callback ( ) : $ default ) : $ default ; }
Track the trackable if enabled.

@param  string      $key
@param  \Closure    $callback
@param  mixed|null  $default

@return mixed
Track the trackable if enabled .