pex

Causal Ledger

The Causal Ledger is Apex's timeline intelligence system. It records every significant change — configuration updates, experiment launches, connector events, anomalies — and overlays them on your business metrics so you can see what changed when and how it affected outcomes.

Why It Matters

Growth teams make dozens of changes: launching experiments, adjusting scoring models, connecting new data sources, changing budget allocations. Without a timeline, it's impossible to know which change caused a metric to move. The Causal Ledger gives you that visibility.

What Gets Recorded

The ledger automatically captures events across several categories:

Configuration Changes

EventRecorded when
Scoring model activatedA new scoring model version becomes active
Scoring rule changedA scoring model is created, edited, or deleted
Vertical changedThe project's industry vertical is updated
Funnel changedThe conversion model is switched
Goal changedA conversion goal is created, updated, or deleted
Budget changedA marketing budget is created or updated
Integration changedA snippet, SDK, or MCP server is installed or verified

Experiment Events

EventRecorded when
Experiment startedAn experiment begins collecting data
Experiment endedAn experiment is stopped or reaches its sample size
Experiment winnerA variant is declared the winner and promoted

Connector Events

EventRecorded when
Connector connectedA sensor (Google Ads, Stripe, HubSpot, etc.) is linked
Connector disconnectedA sensor loses its connection or is removed

Detections

EventRecorded when
Visitor milestoneCumulative visitor count crosses a threshold (1, 10, 100, 1K, 10K, 100K)
AnomalyA metric falls outside its normal range (2 standard deviations from the 30-day average)
Identity stitchAn anonymous visitor is linked to a known contact

Annotations

You can also add manual notes to the timeline — useful for recording external events like product launches, press coverage, or marketing campaigns that happen outside Apex.

Daily Metric Snapshots

The Causal Ledger captures a daily snapshot of key metrics:

  • Total visitors and total events
  • Form submissions and conversion rate
  • Average lead score and hot lead percentage
  • Active experiments

These snapshots form the baseline that the anomaly detector compares against and that the correlation engine uses to measure before/after impact.

Detected Correlations

When enough snapshot data exists around an event, Apex computes before vs. after correlations: average metric values in the 7 days before an event compared to the 7 days after. Each correlation includes:

  • The metric affected (visitors, conversion rate, lead score, etc.)
  • The change (percentage and direction)
  • A confidence level based on the data available

Info

Correlations show association, not definitive causation. They're a starting point for investigation — "conversion rate jumped 15% after we launched experiment X" is a signal worth exploring, not a proof.

Anomaly Detection

The anomaly detector runs daily after each metric snapshot. It compares today's values against the trailing 30-day average (requiring at least 7 days of history). If any metric falls outside 2 standard deviations from the mean, an anomaly event is recorded with the expected range and actual value.

This catches sudden shifts — a traffic spike from a viral post, a conversion rate drop from a broken form, or a scoring change that reclassified your pipeline.

Using the Timeline

The timeline page (/dashboard/timeline) shows:

  1. Causal Ledger chart — An area chart of your selected metric with vertical markers on dates that have events
  2. Event feed — Chronological list of all recorded events, filterable by category (Configuration, Experiments, Detection, Milestones, Notes)
  3. Correlation table — Before/after metric comparisons for each event
  4. Capture Snapshot — Manually trigger a metric snapshot at any time
  5. Add Note — Record an annotation for context that Apex can't detect automatically

Next Steps