public function trackRequest(Request $request)
    {
        if ($this->isEnabled()) {
            $this->setRequest($request);

            $this->mergeVisitorActivityData([
                'visitor_id' => $this->getVisitorId(),
                'path_id'    => $this->getPathId(),
                'query_id'   => $this->getQueryId(),
                'referer_id' => $this->getRefererId(),
            ]);

            $id = $this->getVisitorActivityTracker()->track($this->visitorActivityData);
        }
    }
public function trackRequest(Request $request)
    {
        if ($this->isEnabled()) {
            $this->setRequest($request);

            $this->mergeVisitorActivityData([
                'visitor_id' => $this->getVisitorId(),
                'path_id'    => $this->getPathId(),
                'query_id'   => $this->getQueryId(),
                'referer_id' => $this->getRefererId(),
            ]);

            $id = $this->getVisitorActivityTracker()->track($this->visitorActivityData);
        }
    }
public function trackRequest ( Request $ request ) { if ( $ this -> isEnabled ( ) ) { $ this -> setRequest ( $ request ) ; $ this -> mergeVisitorActivityData ( [ 'visitor_id' => $ this -> getVisitorId ( ) , 'path_id' => $ this -> getPathId ( ) , 'query_id' => $ this -> getQueryId ( ) , 'referer_id' => $ this -> getRefererId ( ) , ] ) ; $ id = $ this -> getVisitorActivityTracker ( ) -> track ( $ this -> visitorActivityData ) ; } }
Start the tracking.

@param  \Illuminate\Http\Request  $request
Start the tracking .