Record a conversion for a click
Attributes a conversion to a click. Links with trackConversions enabled append ?esrx_id=<click id> to their destination; the customer's backend captures it and posts it here (typically with an org API key) when the visitor signs up or pays. Clicks are written asynchronously, so an instant conversion can 404 once — retry after a second.
View as MarkdownAuthorization
bearer In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/track/conversion" \ -H "Content-Type: application/json" \ -d '{ "clickId": "string" }'{ "conversion": { "id": "string", "linkId": "string", "name": "string", "amountCents": 0, "currency": "string", "created": "2019-08-24T14:15:22Z" }}Export a link's clicks as CSV
Raw enriched click log for one link over the requested window as a CSV attachment (at, country, device, browser, os, referrerHost, referrer, isBot). Bot rows are included and flagged, unlike the in-app analytics which exclude them. Capped at 50000 rows; a trailing "truncated" row signals the cap.
Account-wide link analytics
Account-wide totals, the top five links by clicks, a daily click series, and country/device/browser/referrer breakdowns across all links for the requested window. Bot traffic is excluded from series and breakdowns.