TheDocumentation Index
Fetch the complete documentation index at: https://developers.everflow.io/llms.txt
Use this file to discover all available pages before exploring further.
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) |
tracking_domain | string | No | Tracking domain override (for multi-tenant setups — see Configuration) |
parameters | object | No | Free-form custom key–value parameters |
Return Value
EF.click() returns a Promise that resolves with the transaction ID:
Examples
With sub-placements and URL parameters:EF.urlParameter() returns an empty string when the parameter is not present in the URL. In that case, nothing is passed for that field — the SDK simply omits it from the click.ITP Workaround and First-Party Cookie Tracking
You can combine the SDK with traditional redirect tracking links to enhance attribution on browsers that restrict third-party cookies (Safari ITP, etc.). When a user lands on your owned landing page after going through a redirect link, fireEF.click() with the transaction_id extracted from the URL — the SDK will set a first-party cookie on your landing-page domain, making subsequent conversion attribution more reliable.
Configure your tracking link’s destination URL to include the transaction_id, offer_id, and affiliate_id macros. For a destination URL like:
transaction_id and enhances attribution without creating a duplicate click.
Advanced Usage
Preventing duplicate clicks
UseEF.getTransactionId() to check whether a transaction already exists for the offer before firing a new click — useful when the same page may be loaded multiple times for a returning user:
Falling back to default values
When the URL may not always containoffer_id or affiliate_id parameters, you can supply default values rather than letting the click fail:
Multi-tenant attribution (multiple Everflow accounts)
When multiple Everflow accounts fire clicks on the same page, passtracking_domain per call to route each click to the correct account. See Multi-account tracking for the full pattern and caveats.