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

        $this->send('event', [
            'ec' => $this->hit->ec,     // Event Category
            'ea' => $this->hit->ea,     // Event Action
            'el' => $this->hit->el,     // Event Label
            'ev' => $this->hit->ev,     // Event Value
        ]);

    }
public function sendEvent()
    {

        $this->send('event', [
            'ec' => $this->hit->ec,     // Event Category
            'ea' => $this->hit->ea,     // Event Action
            'el' => $this->hit->el,     // Event Label
            'ev' => $this->hit->ev,     // Event Value
        ]);

    }
public function sendEvent ( ) { $ this -> send ( 'event' , [ 'ec' => $ this -> hit -> ec , // Event Category 'ea' => $ this -> hit -> ea , // Event Action 'el' => $ this -> hit -> el , // Event Label 'ev' => $ this -> hit -> ev , // Event Value ] ) ; }
Send an 'event' type hit to GA.
Send an event type hit to GA .