Skip to content

Browser and Registration Attribution

Any normal terminal page can carry attribution query values:

https://trade.example.com/en/register?affiliate=AFF1024&campaign=FB_CY_01&utm_source=facebook&utm_medium=affiliate&sub_id=creative-7

Supported values are:

  • affiliate
  • campaign
  • link
  • utm_source, utm_medium, utm_campaign, utm_content, utm_term
  • sub_id, sub_id2, sub_id3

The server resolves the brand from the request host. Known, active codes are stored with a server-generated touch id. The request IP is hashed with the brand and is not stored as plain text.

The ScaleTrade terminal also forwards these values of the link it was opened with as the attribution object of POST /customer/registration. It keeps them only in the open page: the address bar is cleaned on load and nothing is stored, so a page reload drops them. A custom frontend that does not forward them relies on the stored touch, which is matched according to the fingerprint mode.

External landing page

An affiliate can host its own public landing page. It uses the common registration endpoint and passes public attribution values in attribution; no affiliate token is required.

{
  "email": "[email protected]",
  "password": "strong-password",
  "first_name": "John",
  "attribution": {
    "affiliate": "AFF1024",
    "campaign": "FB_CY_01",
    "utm_source": "partner-landing",
    "utm_medium": "affiliate",
    "sub_id": "creative-7"
  }
}

The request must be sent to the relevant brand host. A supplied code is persisted only when it is active and valid in that brand.

Resolution priority

  1. Explicit attribution in the registration request.
  2. installation_id previously bound by /app/activate.
  3. Latest non-expired browser fingerprint touch.
  4. Latest touch from the same brand and hashed IP, not older than one hour.

Steps 1 and 2 always apply. Steps 3 and 4 depend on the fingerprint mode.

Fingerprint mode

The global fingerprint_mode setting (GetConfig, UpdateConfig, BackOffice Settings → General) controls the stored touches:

Value Mode Behaviour
0 None Steps 3 and 4 are skipped. Only the registration request itself carries attribution; with the ScaleTrade terminal this is the link of the current page.
1 Once Default. The stored touch survives page reloads but attributes one registration only. After the customer is attached, the touch and every earlier touch of the same fingerprint are expired; the next registration from that browser is not attributed until a marketing link is opened again. A touch created from an explicit attribution is expired the same way.
2 Always The stored touch attributes every registration from the browser until it expires after 30 days.

Expired touches remain in the visit statistics. CustomerRegistrationByAffiliate does not use stored touches and is not affected by the mode.

Attribution is snapshotted when the customer is created. Later campaign edits do not rewrite historical customer attribution.