Skip to main content

Conversion

Log conversion data for experiments.

Log Conversion

Log a conversion event for a user in a specific experiment. These logs are stored in Google Cloud Logging for further processing.

  • URL: /api/conversion
  • Method: POST
  • Auth Required: No (Public SDK Access)

Request Body

FieldTypeDescription
userIdstringUnique identifier for the user
tenantIdstringID of the tenant
experimentNamestringName of the experiment
variantstringTarget variant
valuenumberOptional value of the conversion (default: 0)
itensCountnumberOptional count of items involved (default: 0)

Response

{
"success": true
}