src/FACTFinder/Adapter/Tracking.php
public function setupLoginTracking(
        $sid = null,
        $cookieId = null,
        $userId = null
    ) {
        if (strlen($sid) == 0) $sid = session_id();
        $params = array(
            'sid'       => $sid,
            'userId'    => $userId,
            'event'     => 'login'
        );
        
        if (strlen($cookieId) > 0) $params['cookieId'] = $cookieId;
        
        $this->parameters->clear();
        $this->parameters->setAll($params);
    }
public function setupLoginTracking(
        $sid = null,
        $cookieId = null,
        $userId = null
    ) {
        if (strlen($sid) == 0) $sid = session_id();
        $params = array(
            'sid'       => $sid,
            'userId'    => $userId,
            'event'     => 'login'
        );
        
        if (strlen($cookieId) > 0) $params['cookieId'] = $cookieId;
        
        $this->parameters->clear();
        $this->parameters->setAll($params);
    }
Use this method directly if you want to separate the setup from sending
the request. This is particularly useful when using the
MultiCurlRequestFactory.