Event API
The API-based integration to send data to Disco involves making a post request to the Disco endpoint with relevant information to attribute conversions.
- Create the payload to send to Disco.
- One of raw email, SHA256 email hash, or the URL-appended click identifier is required as a customer identifier to attribute conversions.
- If you are using the click identifier, this will be passed to you as a URL parameter in your landing page URL. You must extract the parameter from the URL and pass back the same identifier in the payload.
# POST
{
"event_name": "SIGNUP",
"account_id": "PUBLISHER_ID",
"event_properties": {
// one of the below three is required
"email": "aaron.smith@disconetwork.com"
"email_hash": "c9b7806074a3afd0033ee407f4ed409f623bd873a36fd6255df0392aa803a061",
"click_id": String
}
}
- Send the payload to https://consumer.disconetwork.com/api/events when your conversion event occurs.