Skip to main content
TrailsparkDocs

How Identity Resolution Works

How It Works

Trailspark creates or matches leads using persistent identifiers: email, productUserId, crmId, or mapId. Signals that arrive without any identifying information are anonymous. Trailspark holds them, without creating a lead, until the visitor is identified.

A signal counts as identifiable if it contains any of: email, userId, productUserId, crmId, marketing automation IDs, phone number, or product organization context. Only signals that lack all of these are held as anonymous.

When a signal arrives with both an anonymousId and an identifying field (for example, an email from a Segment identify call), Trailspark links that anonymousId to the lead. It then finds the earlier anonymous signals with the same anonymousId and processes them against your mapping rules, so they appear on the lead.

Resolution Flow

Anonymous signal arrives (anonymousId only, no identifying info)
  → Held, no lead created

Identification signal arrives (anonymousId + email or userId)
  → Lead created or updated
  → anonymousId linked to the lead
  → Earlier anonymous signals with any anonymousId linked to this lead are found
  → Those signals are processed against your mapping rules and appear on the lead
  → Later signals with the same anonymousId go straight to the lead
IdentifierWhere it comes from
anonymousIdYour CDP or tracking script (Segment, RudderStack, etc.)
emailIdentify calls, forms, CRM records
userIdYour product's user ID, from identify or track calls
deviceIdDevice-based tracking identifier, when your source sends one

Email addresses are encrypted at rest.

Lead Identifiers

Leads require at least one persistent identifier to be created. An anonymousId alone is not enough.

IdentifierPersistentCan Create Lead
emailYesYes
productUserIdYesYes
crmIdYesYes
mapIdYesYes
anonymousIdNo (changes per device and browser)No

What Makes a Signal Identifiable

A signal is processed straight away, instead of being held as anonymous, if it contains any of:

  • Email address (in any payload location)
  • userId (non-email)
  • productUserId
  • crmId
  • Marketing automation IDs (mktLeadId, mktEventId)
  • Phone number
  • Product organization context (productOrgId or workspace ID)

Lead Merging

When multiple leads match the same set of identifiers (for example, one lead found by email and another by productUserId), Trailspark merges them automatically. The oldest lead becomes the primary record, and signals from the other leads move to it.

Limitations

  • Cross-device: anonymousId does not carry across devices or browsers. Activity from several devices is still linked when the visitor is identified with the same email on each.
  • Cleared cookies: a new anonymousId is assigned after cookies are cleared.
  • Lookback: when a visitor is identified, Trailspark looks back 90 days for their anonymous signals.
  • Retention: held anonymous signals follow your plan's signal retention period.
  • Duplicates: a signal is never added to a lead twice, even if it is found again.

Troubleshooting

Anonymous signals not resolving -- Verify the identification event includes both the anonymousId and an identifying field (email, userId, etc.). Confirm both events belong to the same organization.

Lead missing historical activity -- The anonymous signals may have come from a different device or browser (a different anonymousId). If the visitor was identified with the same email on both, their activity is linked automatically. Check that your CDP keeps anonymousId stable across sessions.

Next Steps