TrackStack Docs
TrackStack Docs
DashboardPricingTrackStack DocsQuickstartExamplesSDK SetupB2B SaaS EventsEvent Payload ContractPlatform Event MappingRouting PolicySupported Platforms
API Playground
GitHub

Routing Policy

What goes to ad platforms, CRM, and warehouse by default.

TrackStack routes events based on destination enablement, per-platform event allowlists, and event classification. This policy keeps ad platforms focused on measurable conversions while preserving full fidelity in your warehouse.

Routing layers

flowchart LR
  SDK[SDK capture] --> Edge[Edge router]
  Edge --> Ads[Ad platforms CAPI]
  Edge --> Pixel[Client pixels]
  Edge --> WH[Warehouse / Tinybird]
  Edge --> CRM[CRM destinations planned]
  1. SDK — Sends canonical events to edge with identity + context
  2. Edge — Validates, hashes PII, maps event names, filters by allowlist
  3. Ad platforms — Meta, Google, LinkedIn, Reddit, TikTok, X, Microsoft, Quora (+ Pinterest/Snap pixels)
  4. Warehouse — All events logged for analytics (always)
  5. CRM — Customer.io, HubSpot, Salesforce (planned — docs-only today)

Ad platform routing

An event delivers to an ad platform when all are true:

  • Platform is enabled for the API key
  • Platform credentials pass validation
  • Event is in the platform allowlist (or allowlist is blank = all events)
  • Event is not classified warehouse-only unless explicitly allowlisted

Warehouse-only by default

These events do not appear in any platform default allowlist:

  • Refund
  • Chargeback
  • Churned

Route them to warehouse and CRM for revenue ops — not ad optimization.

Product events

The 22 product-extension events (ApiDocsViewed, EmailFinderUsed, etc.) are warehouse-first. They are excluded from §15 default allowlists. Add them per destination only when you have a deliberate ads use case.

Allowlist behavior

Config stateBehavior
Blank / missing events arrayAll 66 canonical events eligible
Explicit allowlistOnly listed events deliver to that platform
Reset to platform defaultsApplies §15 allowlist for that platform
Reset to all eventsClears allowlist (blank = all)

Existing saved configs with blank allowlists continue to receive all events — no breaking migration.

Domain policy

Before CAPI delivery, the edge checks domain policy on the API key:

  • Allow all — Any origin (development-friendly)
  • Allowlist — Only listed hostnames may ingest events

Domain policy is independent of event allowlists.

CRM and lifecycle destinations (planned)

DestinationStatusTypical events
Customer.ioPlannedSignUp, StartTrial, Churned, CreditsLow
HubSpotPlannedLeadCaptured, SalesQualifiedLead, OpportunityCreated
SalesforcePlannedPipelineQualified, MeetingHeld, OpportunityCreated

Configure these in docs today; dashboard wiring ships in a future release.

Event quality gates

Before delivery, the edge evaluates:

  • Canonical or valid extension event name
  • Required fields for the event family
  • Identity signals (email, click IDs, externalId)
  • eventId presence for dedup-sensitive platforms

Failed deliveries land in the DLQ with retry. Check Platforms health in the dashboard.

Recommended routing strategy

Funnel stagePrimary destinationsSecondary
AwarenessGA4 (page_view), Meta PageViewLinkedIn PageView
InterestMeta Lead, Google generate_leadLinkedIn Lead
AcquisitionMeta CompleteRegistration, Google sign_upAll signup-capable platforms
ActivationLinkedIn SQL/opportunity, warehouseMeta Lead for retargeting
RevenueAll purchase-capable platformsWarehouse for refunds/chargebacks
ProductWarehouse onlyEnable ads selectively

Related docs

  • Platform mapping — Default allowlists and name mappings
  • B2B SaaS events — Full taxonomy
  • Event payload — Identity and dedup requirements

Platform Event Mapping

Canonical event to destination-specific event name reference.

Supported Platforms

Conversion destination coverage, common mappings, and override patterns.

On this page

Routing layersAd platform routingWarehouse-only by defaultProduct eventsAllowlist behaviorDomain policyCRM and lifecycle destinations (planned)Event quality gatesRecommended routing strategyRelated docs