src/Jobs/Analytics.php
public function handle()
    {

        // Do nothing if tracking is disabled
        if (! $this->allowTracking())
            return;

        // Send the hit based on the hit type
        switch ($this->hit->type) {

            case 'event':
                $this->sendEvent();
                break;

            case 'exception':
                $this->sendException();
                break;

            default:
                break;
        }

    }
public function handle()
    {

        // Do nothing if tracking is disabled
        if (! $this->allowTracking())
            return;

        // Send the hit based on the hit type
        switch ($this->hit->type) {

            case 'event':
                $this->sendEvent();
                break;

            case 'exception':
                $this->sendException();
                break;

            default:
                break;
        }

    }
public function handle ( ) { // Do nothing if tracking is disabled if ( ! $ this -> allowTracking ( ) ) return ; // Send the hit based on the hit type switch ( $ this -> hit -> type ) { case 'event' : $ this -> sendEvent ( ) ; break ; case 'exception' : $ this -> sendException ( ) ; break ; default : break ; } }
Execute the job, keeping in mind that if tracking
is disabled, nothing should be sent and the
job should just return.

@return void
@throws \Seat\Services\Exceptions\SettingException
Execute the job keeping in mind that if tracking is disabled nothing should be sent and the job should just return .