Skip to content

Dataset

Segment event stream and warehouse datasets for AI training

A Segment dataset is a collection of one business's Segment records: the track, identify, page, screen, group and alias calls its websites, apps and servers sent, as Segment loaded them into the tracks, identifies, pages and per-event tables of the business's own warehouse, with the Tracking Plan that governed them and any audiences and Computed Traits. SourceX sources it to a buyer's spec from established businesses that run Segment. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
One business's Segment calls as loaded into its warehouse: tracks, identifies, pages, screens, groups and one table per event name, with the Tracking Plan
Typical systems
Twilio Segment Connections with a warehouse or Amazon S3 destination; Protocols, Unify with Profiles Sync, and Engage where the workspace has them
Typical history
Specified by the buyer; bounded by when the warehouse was connected, how much earlier history Segment backfilled into it, and any tables the business pruned
Modality
Event and identity rows with flattened property columns; event names and trait values as short text
Delivery formats
Agreed per order; Parquet or CSV per warehouse table, or JSONL of the calls, with the Tracking Plan as JSON
Preparation
Name, email and phone traits removed; user_id and anonymous_id replaced with one set of pseudonyms across every schema; IP addresses and URL query strings scrubbed
Licensing
Permitted use agreed per license; license the events once, from the warehouse, not again from each downstream tool; visitor consent and Twilio's terms checked by owner and buyer
Availability
Sourced to your spec from businesses that run Segment; supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
message_idstringThe id column of the warehouse row, the messageId Segment gave the call and the key for removing repeats.
call_typeenumThe Segment call behind the row: track, identify, page, screen, group or alias, from the table it was loaded into.
source_schemastringThe warehouse schema of the Source that sent the call, such as the website, the iOS app or a server Source.
event_tablestringFor a Track call, the per-event table it came from, which matches the tracks table's event column.
event_textstringThe tracks table's event_text column, the event name exactly as the code sent it.
anonymous_idstringPseudonymous form of the anonymous_id column, the identifier Segment's library set before sign-in.
user_idstringPseudonymous form of the user_id column, present once an Identify call named the user.
clockobjectThe row's time columns: original_timestamp from the device, sent_at, received_at at Segment, and the corrected timestamp.
event_columnsobjectThe property columns of the Track call's own event table, under their flattened column names, with arrays as the strings Segment stored.
contextobjectSelected context_ columns, such as context_library_name, context_page_path and context_campaign_source; context_ip is dropped.
identify_historyarrayThe user's identifies table rows in received_at order, each with the non-identifying traits that Identify call sent.
groupobjectThe group_id and traits from the Group calls that tie the user to an account, from the groups table.
plan_statusobjectWhether the event is defined in the Tracking Plan connected to its Source, and any Protocols violations recorded.
engageobjectEngage audience memberships and Computed Trait values for the user, with the definition behind each.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "message_id": "ajs-next-5c1e0b7d2f",
  "call_type": "track",
  "source_schema": "web_app_prod",
  "event_table": "plan_upgraded",
  "event_text": "Plan Upgraded",
  "anonymous_id": "anon_91f3c2",
  "user_id": "usr_40a7",
  "clock": {
    "original_timestamp": "2024-05-14T18:22:07.412Z",
    "sent_at": "2024-05-14T18:22:07.498Z",
    "received_at": "2024-05-14T18:22:08.031Z",
    "timestamp": "2024-05-14T18:22:07.945Z"
  },
  "event_columns": {
    "from_plan": "starter",
    "to_plan": "team",
    "seats": 12,
    "billing_interval": "annual"
  },
  "context": {
    "library_name": "analytics.js",
    "page_path": "/settings/billing",
    "campaign_source": null
  },
  "identify_history": [
    {
      "received_at": "2024-03-02T15:10:44Z",
      "traits": {
        "plan": "starter",
        "role": "admin",
        "company_size": "51-200"
      }
    },
    {
      "received_at": "2024-05-14T18:22:09Z",
      "traits": {
        "plan": "team",
        "role": "admin",
        "company_size": "51-200"
      }
    }
  ],
  "group": {
    "group_id": "grp_7d21",
    "traits": {
      "industry": "logistics",
      "seats_purchased": 12
    }
  },
  "plan_status": {
    "tracking_plan": "Web app plan",
    "event_planned": true,
    "violations": []
  },
  "engage": {
    "audiences": [
      "trial_converted"
    ],
    "computed_traits": {
      "sessions_last_30d": 19
    }
  }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Behavior sequences across surfaces

Web, mobile and server calls share one spec and one pair of identifiers, so a model sees a user's path across all three in order.

Account state as it changed

The identifies table gives plan, role and seat traits on each date, so features use the value that was true when an event fired.

Tracking audit agents

Renamed events, type conflicts and Protocols violations are real cases for an agent that finds and repairs broken instrumentation.

Analytics agents on a real warehouse

Questions over tracks, identifies and hundreds of event tables test text-to-SQL on a layout many companies have.

Audience definition evaluation

Engage audience and Computed Trait definitions with recorded memberships give ground truth for a model asked to rebuild a segment.

Use-case guides: Enterprise and computer-use agents, Private evaluation sets, Sales agents

What makes this data valuable

Full identifies table

More rows in identifies than in users shows trait history was delivered, not only current values.

A connected Tracking Plan

A plan tied to each Source, with its connection date, separates governed events from ad hoc ones.

Event names as sent

The event_text column beside the table name lets renames and near-duplicate spellings be traced.

One pseudonym map

The same pseudonyms across every Source schema keep cross-device and pre-login joins.

All four clocks

Rows with every time column let late and mis-clocked events be found.

Tables with history

First and last received_at per event table shows which events are live, retired or test debris.

Process

Segment dataset

This page covers segment customer event stream records.Illustrative

A pipe that leaves its record in the warehouse

Segment is a pipe more than a store. Code on a website, in a mobile app and on a server makes one of six calls, track, identify, page, screen, group or alias, and each carries an anonymousId or a userId, a messageId, a set of timestamps and a context object for the library, page, device and campaign. Segment forwards the call to the Destinations the business switched on. The lasting copy is the one loaded into the business's own warehouse, or written as raw JSON logs to a storage bucket. Each Source gets its own schema there with one shared layout: tracks, pages, screens, identifies, users, groups and aliases.

Every identify call appends a row to the identifies table with its traits as columns, while users holds one row per user_id with the latest value of each trait. So users says an account is on the team plan today, and identifies says it was on the starter plan in March. Applications often fire identify at every login, so many rows repeat the one before, and a trait missing from a row was not sent, not cleared. This is also where names and emails were written, so those columns are removed and plan, role and size traits are kept.

The warehouse does not resolve identity. A visitor is an anonymous_id until an identify call supplies a user_id, the rows that carry both are the only bridge, and the users table has no anonymous_id column at all. Server libraries usually send a user_id with no page context. Unify's merged profiles reach the warehouse only where Profiles Sync was turned on. Where a warehouse is connected to the Engage space, audiences and Computed Traits arrive as identify traits or as Audience Entered, Audience Exited and Trait Computed events. Segment wrote those, not the product. Schemas fed by cloud app Sources are copies of other systems.

A table for every event name, governed or not

The tracks table has a row for every track call but none of its custom properties. Those go to a table named after the event in snake case, so Order Completed becomes order_completed, with each property as a column, nested objects flattened into longer column names and arrays stored as strings. A renamed event starts a new table and the old one stops receiving rows, and Segment does not merge the two afterwards. The tracks table keeps both forms, the table's slug in event and the name as sent in event_text, so count the distinct event_text values behind each slug to find spellings that share a table. A column takes its type from the first value Segment received, and the types declared in a Tracking Plan do not change it, so ask how later values of another type were handled.

The Tracking Plan in Protocols separates governed events from ad hoc ones. It lists each event, its properties, their types and which are required. Once a plan is connected to a Source, Segment records a violation for each call that does not conform, and the Source's schema settings can block unplanned events or omit unplanned properties and traits. A blocked event is discarded for good unless the workspace forwarded blocked events to a separate Source, so a strict workspace's warehouse shows only what conformed. Violations can also be forwarded to a Source, where they load as Violation Generated events that name the event, the field and the plan. Ask whether either kind of forwarding was on, and ask for the plan's change history, because the plan itself is current state.

To test a sample, list every table in each Source schema with its row count and first and last received_at, then set the list against the Tracking Plan. Compare the row count of tracks with the sum of the event tables, since a gap points to tables pruned or left out by Selective Sync. Compare received_at with original_timestamp to find wrong device clocks and mobile batches sent late. Then search property columns and page URL query strings for email addresses.

What to check before licensing

  • Ask for every Source with its warehouse schema, and for each table its row count and first and last received_at.
  • Confirm the identifies table is delivered in full with the name, email, phone and address trait columns removed, then scan the remaining columns yourself.
  • Ask whether a Tracking Plan was connected to each Source, from what date, whether unplanned events were blocked, and whether blocked events and violations were forwarded to a Source and kept.
  • Confirm the events are licensed once, from the warehouse. If you hold a downstream tool's export from the same business, compare timestamps and any Segment message ID that tool kept for overlap.
  • Check that user_id and anonymous_id were pseudonymized with one mapping across all Source schemas and any Profiles Sync tables.
  • Ask which schemas come from cloud app Sources. Those hold records copied from payment, help desk or CRM systems and need their own rights review.
  • Have the buyer and the data owner each check Twilio's terms on exported data and API use with counsel, along with the consent visitors gave when the events were collected.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Does the data come from Segment or from the business's warehouse?

From the warehouse, in most cases. Segment routes calls to other tools and is not where a business queries its history. The lasting copy is the set of tables loaded into the business's Snowflake, BigQuery or Redshift, or raw logs in a storage bucket. Ask which is offered, because raw logs keep the original nested JSON.

What is the difference between the identifies and users tables?

The identifies table keeps every identify call as its own row, and the users table keeps one row per user with the latest traits. For training, identifies is the valuable one, because it shows what a user's plan or role was on a given date. Both hold personal traits as columns, so check which were removed.

Why does a Segment schema have hundreds of tables?

Because every distinct event name gets its own table. Segment loads the properties of each track call into a table named after the event, so each new name an engineer ships, including typos and tests, adds a table. Ask for a table inventory with row counts and date ranges.

Can anonymous visitors be linked to signed-in users?

Yes, where the calls recorded both identifiers. A row that carries an anonymous_id and a user_id links the two, and alias rows add earlier IDs. The warehouse does not merge them for you. The link survives delivery only if both IDs were pseudonymized with one mapping.

Should I also license the Mixpanel or Amplitude copy of these events?

Usually not. Segment sends one stream to every connected tool, so the events in a downstream analytics product are the same calls in another shape. License them once, from the warehouse. A downstream tool is worth adding only for what it alone holds, such as saved cohorts.

Is SourceX affiliated with Twilio?

Segment is named to identify the system the records come from. That does not imply a partnership with or endorsement by Twilio. The records belong to the business that runs Segment, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies