Skip to main content
The EF.impression() method records an impression event. Use this for CPM-based offers or when you need to track ad views.

Basic Usage

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

Parameters

ParameterTypeRequiredDescription
offer_idintegerYesThe offer identifier
affiliate_idintegerYesThe affiliate identifier
sub1sub5stringNoSub-placement tracking values
source_idstringNoTraffic source identifier
fbclidstringNoFacebook click ID
gclidstringNoGoogle click ID
tracking_domainstringNoTracking domain override (for multi-tenant setups)
parametersobjectNoFree-form custom key–value parameters

Examples

Basic impression:
EF.impression({
  offer_id: 1,
  affiliate_id: 1
});
With URL parameters:
EF.impression({
  offer_id: EF.urlParameter('oid'),
  affiliate_id: EF.urlParameter('affid')
});
Multi-tenant with specific tracking domain:
EF.impression({
  tracking_domain: 'www.tracking-domain-b.com',
  offer_id: 50,
  affiliate_id: 17
});
With custom parameters:
EF.impression({
  offer_id: 1,
  affiliate_id: 1,
  parameters: {
    placement: 'sidebar',
    page_type: 'article'
  }
});