EF.conversion() method fires a conversion event and returns a Promise that resolves with both the conversion ID and transaction ID.
Basic Usage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
offer_id | integer | One of offer_id or aid required | The offer identifier |
aid | integer | One of offer_id or aid required | The advertiser identifier |
transaction_id | string | No | Everflow transaction ID (improves attribution accuracy) |
amount | number | No | Sale amount (for Revenue Per Sale offers) |
event_id | integer | No | Event identifier for post-conversion events |
adv_event_id | integer | No | Global advertiser event identifier |
coupon_code | string | No | Promotional code |
order_id | string | No | Order reference ID |
user_id | string | No | User tracking identifier |
verification_token | string | No | Required if advertiser uses verification tokens |
email | string | No | Contact email |
adv1 – adv5 | string | No | Advertiser placement values |
parameters | object | No | Free-form custom key–value parameters |
Return Value
Returns a Promise resolving with an object containingconversion_id and transaction_id:
