# Submit user conversion data Records a user conversion. In Zephr, a conversion typically represents a user state change, such as transitioning from anonymous to registered or becoming a paying customer. This endpoint can also be used to record any event, like a user clicking on an advert. Conversions are tracked against specific rule versions and outcomes, enabling performance comparison between different outcomes. Recording this data enables the comparison of performance of different outcomes in a rule. For example, a split test could be set up with two slightly different 'advert' outcomes that each record a conversion when a user interacts with them. After traffic has been processed by the rule, the conversion rates between the two outcomes can be compared in 'analytics' mode in the console. For example, it might show that 5% of users who saw Outcome1 clicked a button, compared to 8% for Outcome2. This analytics data can be downloaded in CSV format for further analysis. Conversion data is only used to evaluate the performance of outcomes in rules and cannot be accessed on a per-user basis. To track if a particular registered user has interacted with an outcome, update a user attribute value. This endpoint is only relevant where the Zephr in-rule analytics feature is enabled. This endpoint must be called with a populated blaize_tracking_id cookie. If this cookie is missing, a 400 response code is returned. Endpoint: POST /zephr/public/rule-outcomes/v1/conversions Version: 2025-07-30 Security: CookieBlaizeSession, JwtQuery, JwtHeaderXBlaizeJwt, JwtHeaderXZephrJwt, JwtBearer, JwtCookie ## Cookie parameters: - `blaize_tracking_id` (string, required) Zephr tracking ID cookie used to uniquely identify the user or anonymous session Example: "dc8f7f9e-2deb-4485-a9f0-34b44fc7f45e" ## Request fields (application/json): - `ruleId` (string, required) The ID of the specific Zephr rule version that led to the outcome causing this conversion. Example: "article-22" - `outcomeId` (string, required) The ID of the outcome in the rule that triggered this conversion. Example: "graph/1#1,graph/1#2,graph/1#3,graph/2#1,graph/2#2" - `conversion` (string, required) The type of conversion to be recorded. For example, Zephr out-of-the-box components will submit conversion strings 'REGISTERED' and 'CUSTOMER' when registering a user or when a user purchases a product. Any string can be used for custom conversions. Example: "REGISTERED" ## Response 201 fields