src/FACTFinder/Adapter/Tracking.php
public function setupClickTracking(
        $id,
        $query,
        $pos,
        $masterId = null,
        $sid = null,
        $cookieId = null,
        $origPos = -1,
        $page = 1,
        $simi = 100.0,
        $title = '',
        $pageSize = 12,
        $origPageSize = -1,
        $userId = null,
        $campaign = null,
        $instoreAds = false
    ) {
        if (strlen($sid) == 0) $sid = session_id();
        if ($origPos == -1) $origPos = $pos;
        if ($origPageSize == -1) $origPageSize = $pageSize;
        $params = array(
            'id'            => $id,
            'query'         => $query,
            'pos'           => $pos,
            'sid'           => $sid,
            'origPos'       => $origPos,
            'page'          => $page,
            'simi'          => $simi,
            'title'         => $title,
            'event'         => 'click',
            'pageSize'      => $pageSize,
            'origPageSize'  => $origPageSize,
        );
        
        if (strlen($userId) > 0) $params['userId'] = $userId;
        if (strlen($cookieId) > 0) $params['cookieId'] = $cookieId;
        if (strlen($masterId) > 0) $params['masterId'] = $masterId;
        if (strlen($campaign) > 0) $params['campaign'] = $campaign;
        if ($instoreAds) $params['instoreAds'] = 'true';
        
        $this->parameters->clear();
        $this->parameters->setAll($params);
    }
public function setupClickTracking(
        $id,
        $query,
        $pos,
        $masterId = null,
        $sid = null,
        $cookieId = null,
        $origPos = -1,
        $page = 1,
        $simi = 100.0,
        $title = '',
        $pageSize = 12,
        $origPageSize = -1,
        $userId = null,
        $campaign = null,
        $instoreAds = false
    ) {
        if (strlen($sid) == 0) $sid = session_id();
        if ($origPos == -1) $origPos = $pos;
        if ($origPageSize == -1) $origPageSize = $pageSize;
        $params = array(
            'id'            => $id,
            'query'         => $query,
            'pos'           => $pos,
            'sid'           => $sid,
            'origPos'       => $origPos,
            'page'          => $page,
            'simi'          => $simi,
            'title'         => $title,
            'event'         => 'click',
            'pageSize'      => $pageSize,
            'origPageSize'  => $origPageSize,
        );
        
        if (strlen($userId) > 0) $params['userId'] = $userId;
        if (strlen($cookieId) > 0) $params['cookieId'] = $cookieId;
        if (strlen($masterId) > 0) $params['masterId'] = $masterId;
        if (strlen($campaign) > 0) $params['campaign'] = $campaign;
        if ($instoreAds) $params['instoreAds'] = 'true';
        
        $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.