EF.configure() to customize SDK behavior before calling any tracking methods. This is required when you need cross-subdomain cookie attribution or organic fallback tracking.
EF.configure() before any EF.click(), EF.conversion(), or EF.impression() calls.
Cross-subdomain tracking (tld)
By default, the SDK stores first-party cookies on the current subdomain. If a user clicks onshop.your-store.com but converts on checkout.your-store.com, the SDK cannot read the cookie across subdomains.
Set the tld option to store cookies at the top-level domain so all subdomains can access them:
shop.your-store.com, www.your-store.com) is accessible when the conversion fires on a different subdomain (e.g., checkout.your-store.com).
Example
Organic tracking
If your tracking URLs don’t always includeoffer_id and affiliate_id parameters, you can set fallback defaults using the organic option. When a user lands on your page without the expected URL parameters, the SDK uses these defaults instead of abandoning the tracking event.
How it works
- User visits
your-store.com/?oid=5&affid=10— SDK usesoffer_id: 5,affiliate_id: 10from the URL - User visits
your-store.com/(no parameters) — SDK falls back tooffer_id: 1,affiliate_id: 1from the organic config
- Landing pages that may receive both paid and organic traffic
- Pages where tracking parameters are sometimes stripped by redirects or intermediaries
- Ensuring conversions are never lost due to missing URL parameters
Example
Multi-account tracking (tracking_domain)
If you work with multiple Everflow accounts, you can specify thetracking_domain directly on individual tracking calls to route events to the correct account:
EF.click(), EF.conversion(), and EF.impression() calls.
Routing different URL parameters to different accounts
Multi-tenant setups often need to read different query string parameters for each account from the same landing page. For example, a URL likehttps://landing-page.com?oid=1&affid=2&offer=10&affiliate=17 can feed two separate accounts:
Multi-tenant attribution has inherent challenges because the SDK relies on browser cookies to store transaction IDs. When two accounts use the same offer ID on the same page, a little custom attribution logic (using
EF.getTransactionId() / EF.getAdvertiserTransactionId()) is typically required to match conversions to the correct click.Combining options
All configuration options can be combined:Options reference
| Option | Type | Description |
|---|---|---|
tld | string | Top-level domain for cookie storage. Enables cross-subdomain attribution. |
organic.offer_id | number | Fallback offer ID when URL parameters are missing. |
organic.affiliate_id | number | Fallback affiliate ID when URL parameters are missing. |
