public function createConversionEvent($config, $eventKey, $userId, $attributes, $eventTags)
    {
        $eventParams = $this->getCommonParams($config, $userId, $attributes);
        $eventEntity = $config->getEvent($eventKey);
        $conversionParams = $this->getConversionParams($eventEntity, $eventTags);

        $eventParams[VISITORS][0][SNAPSHOTS] = $conversionParams;
        return new LogEvent(self::$ENDPOINT, $eventParams, self::$HTTP_VERB, self::$HTTP_HEADERS);
    }
public function createConversionEvent($config, $eventKey, $userId, $attributes, $eventTags)
    {
        $eventParams = $this->getCommonParams($config, $userId, $attributes);
        $eventEntity = $config->getEvent($eventKey);
        $conversionParams = $this->getConversionParams($eventEntity, $eventTags);

        $eventParams[VISITORS][0][SNAPSHOTS] = $conversionParams;
        return new LogEvent(self::$ENDPOINT, $eventParams, self::$HTTP_VERB, self::$HTTP_HEADERS);
    }
public function createConversionEvent ( $ config , $ eventKey , $ userId , $ attributes , $ eventTags ) { $ eventParams = $ this -> getCommonParams ( $ config , $ userId , $ attributes ) ; $ eventEntity = $ config -> getEvent ( $ eventKey ) ; $ conversionParams = $ this -> getConversionParams ( $ eventEntity , $ eventTags ) ; $ eventParams [ VISITORS ] [ 0 ] [ SNAPSHOTS ] = $ conversionParams ; return new LogEvent ( self :: $ ENDPOINT , $ eventParams , self :: $ HTTP_VERB , self :: $ HTTP_HEADERS ) ; }
Create conversion event to be sent to the logging endpoint.

@param $config ProjectConfig Configuration for the project.
@param $eventKey string Key representing the event.
@param $userId string ID of user.
@param $attributes array Attributes of the user.
@param $eventTags array Hash representing metadata associated with the event.

@return LogEvent Event object to be sent to dispatcher.
Create conversion event to be sent to the logging endpoint .