Skip to main content

Conversion payload script

Zuora

Conversion payload script

The conversion script is used to capture all paid conversion events, using the action 151. It requires dtId and userState to be available before sending the event to AI Paywall. These values help:

  • Attribute the conversion to a previous click event.
  • Retrieve contextual data (e.g., article metadata) that may not be accessible during checkout.

Ensuring Availability of dtId and userState

For server-side implementations, you must ensure that dtId and userState are available before triggering the conversion event. As with page load, impression, and click events, you are responsible for populating all required values in the payload before sending it to the endpoint.


curl --location 'https://{region}.production.ai.zephr.com/{hostname}/SendEventData' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic your-auth-token-here' \
--data '{
  "dtId": "055af05d-fdab-4b2e-ac7a-4cc48df2dffa",
  "refer": "https://www.domain.com/path",
  "action": 151,
  "wId_2": "41218b9e-c8ae-c934-43ad-71b13fcb4465",
  "actionValue": 49,
  "user": {
    "userState": "anonymous",
    "userId": ""
  }
}'