Skip to main content
The 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

EF.click({
  offer_id: 1,
  affiliate_id: 1
});

Parameters

ParameterTypeRequiredDescription
offer_idintegerYesThe offer identifier
affiliate_idintegerYesThe affiliate identifier
uidintegerNoOffer URL ID (extra destination URL)
creative_idintegerNoCreative identifier
sub1sub5stringNoSub-placement tracking values
source_idstringNoTraffic source identifier
coupon_codestringNoCoupon code for click-level attribution
fbclidstringNoFacebook click ID
gclidstringNoGoogle click ID
ttclidstringNoTikTok click ID
transaction_idstringNoCustom transaction ID (for ITP workaround)
parametersobjectNoFree-form custom key–value parameters

Return Value

EF.click() returns a Promise that resolves with the transaction ID:
EF.click({
  offer_id: 1,
  affiliate_id: 1
}).then(function(transactionId) {
  console.log('Transaction ID:', transactionId);
});

Examples

With sub-placements and URL parameters:
EF.click({
  offer_id: EF.urlParameter('oid'),
  affiliate_id: EF.urlParameter('affid'),
  sub1: EF.urlParameter('sub1'),
  sub2: EF.urlParameter('sub2'),
  source_id: EF.urlParameter('source')
});
With custom parameters:
EF.click({
  offer_id: 1,
  affiliate_id: 1,
  parameters: {
    campaign_name: 'summer_sale',
    landing_page: 'variant_b'
  }
});