EF.click() method records a click event and returns a Promise that resolves with the transaction ID. This transaction ID can then be used for conversion attribution.
Basic Usage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
offer_id | integer | Yes | The offer identifier |
affiliate_id | integer | Yes | The affiliate identifier |
uid | integer | No | Offer URL ID (extra destination URL) |
creative_id | integer | No | Creative identifier |
sub1 – sub5 | string | No | Sub-placement tracking values |
source_id | string | No | Traffic source identifier |
coupon_code | string | No | Coupon code for click-level attribution |
fbclid | string | No | Facebook click ID |
gclid | string | No | Google click ID |
ttclid | string | No | TikTok click ID |
transaction_id | string | No | Custom transaction ID (for ITP workaround) |
parameters | object | No | Free-form custom key–value parameters |
Return Value
EF.click() returns a Promise that resolves with the transaction ID:
