Skip to content

Dataset

PostHog event and session replay datasets for AI training

A PostHog dataset is an export of one business's PostHog project: the events its product captured, both custom events and $autocapture clicks with the element chain of what was pressed, the persons and groups they resolve to, and session replays, with feature flags, experiments, surveys, cohorts and saved insights tied to the same person IDs where agreed. SourceX sources it to a buyer's spec from established businesses that run PostHog. Each dataset is de-identified, with distinct IDs rekeyed and captured text screened, and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Events, persons, groups and session replays from one PostHog project, with flag, experiment, survey, cohort, Action and Insight definitions
Typical systems
PostHog in the vendor's cloud or self-hosted, with product analytics, session replay, feature flags, experiments and surveys, and batch exports to a warehouse
Typical history
Specified by the buyer; events bounded by plan retention or the warehouse copy, replays by the project's own recording retention setting
Modality
Event rows with JSON properties and element chains; replays as rrweb snapshot JSON; definitions as JSON; short captured text
Delivery formats
Agreed per order; events as Parquet or JSONL by day, persons and definitions as JSON, replays as snapshot JSON per session
Preparation
distinct_id, person IDs and session IDs rekeyed with one mapping; $ip, emails and names removed; element text, URLs and replay text screened
Licensing
Rights reviewed against the privacy notice and consent the events and replays were captured under; permitted use set in the license
Availability
Sourced to your spec from businesses that agree; 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
uuidstringThe Event's uuid from the events table, the key that SQL queries and batch exports both return.
eventstringThe Event name as captured: a custom name the business sent, or one of PostHog's own such as $pageview, $autocapture or $feature_flag_called.
timestamptimestampThe Event timestamp in UTC, which PostHog adjusts for client clock skew at ingestion when the SDK reports its send time.
distinct_idstringThe Event's distinct_id, rekeyed: an anonymous ID before sign-in and the value the business passed to identify afterwards.
person_idstringThe Person the distinct_id resolves to after merges, rekeyed with the same mapping; Events captured without a person profile have an ID and no Person row.
session_idstringThe $session_id property the SDK sets, which ties the Event to its Session Recording; $window_id separates browser tabs.
propertiesobjectThe Event's properties: those the business sent, plus SDK defaults such as $current_url, $browser, $device_type and $lib.
elementsarrayFor $autocapture Events, the elements_chain parsed into the clicked element and its ancestors, each with tag, classes, attributes, position and text.
person_propertiesobjectPerson Properties for the Event, flagged as the copy stored on the Event when it was sent or the Person's current values.
groupsobjectGroup keys from the Event's $groups property, such as an organization ID, with the Group's type and properties.
feature_flagsobjectFlag keys and variants from the Event's $feature/ properties, which link it to Feature Flag and Experiment definitions.
action_matchesarrayActions whose rule matched this Event on the export date, each delivered with its selector, text or URL definition.
surveyobjectFor survey sent Events, the Survey ID, the question as defined and the $survey_response value.
replayobjectThe Session Recording for this session, with its duration, the Event's offset in it and the masking settings in force.
Sample recordIllustrative

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

Example record

{
  "uuid": "018e3b7e-52a4-7c1e-9b0d-4f6a21c8e9d3",
  "event": "$autocapture",
  "timestamp": "2026-03-11T14:02:37.418Z",
  "distinct_id": "d_7f3a90c2",
  "person_id": "p_41be07",
  "session_id": "s_0c9e55d1",
  "properties": {
    "$event_type": "click",
    "$current_url": "/invoices/{id}/edit",
    "$window_id": "w_22a1",
    "$browser": "Firefox",
    "$device_type": "Desktop",
    "$lib": "web"
  },
  "elements": [
    {
      "order": 0,
      "tag_name": "button",
      "classes": [
        "btn",
        "btn-primary"
      ],
      "attributes": {
        "attr__type": "submit"
      },
      "nth_child": 2,
      "text": "Send invoice"
    },
    {
      "order": 1,
      "tag_name": "form",
      "attr_id": "invoice-editor",
      "classes": [
        "css-1x9k2ab"
      ],
      "nth_child": 1
    }
  ],
  "person_properties": {
    "as_of": "ingestion",
    "plan": "growth",
    "role": "bookkeeper"
  },
  "groups": {
    "organization": "org_5d20"
  },
  "feature_flags": {
    "$feature/new-invoice-editor": "test"
  },
  "action_matches": [
    {
      "name": "Sent an invoice",
      "rule": {
        "selector": "form#invoice-editor button[type=submit]",
        "url_contains": "/invoices/"
      }
    }
  ],
  "survey": null,
  "replay": {
    "recording": "s_0c9e55d1",
    "duration_s": 412,
    "event_offset_ms": 183250,
    "mask_all_inputs": true
  }
}

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

What AI teams use it for

Ground web agents in real element paths

Autocaptured clicks give the tag, attributes and text of what people pressed, in order, on a production interface.

Learn from experiments with behavior attached

Flag variants on each event show what people did after seeing each version, not only the headline metric.

Model sessions from DOM and events together

A replay supplies page state and pointer movement, and the events supply named actions in the same session.

Name unlabeled interactions

Actions are a person's label on a raw element chain, so the pairs are targets for naming uninstrumented clicks.

Evaluate analytics agents on saved questions

Saved Insights, including SQL ones, are real analyst questions that can be recomputed from the events.

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

What makes this data valuable

Custom events beside autocapture

Key outcomes were sent as named events, so not everything depends on element chains.

Actions maintained

The team defined Actions over its autocaptured clicks and kept them current through redesigns.

Stable selectors

Elements carry IDs or data attributes, not only build-generated class names.

Early warehouse copy

Batch exports began early, so history outlasts the plan's retention.

Masking on record

Replay masking settings are documented for the whole period.

Flag calls captured

$feature_flag_called events and $feature/ properties are present, so exposure is known per person.

Record timeline

PostHog dataset

This page covers postHog product event and replay records.Illustrative

One project keyed to one person, and sometimes the tables themselves

PostHog puts tools usually bought from separate vendors into one project. An analytics event, a session replay, a feature flag evaluation, an experiment exposure and a survey answer all hang off the same distinct_id and $session_id. When a flag is evaluated the SDK sends a $feature_flag_called event with the flag key and the variant served, and later events carry $feature/ properties. An experiment is a feature flag with variants, goal metrics and dates. A survey answer arrives as a survey sent event. So the version a person saw, what they did next, the recording of that session and what they said about it join inside one store.

What the store keeps and overwrites differs by object. Events are not edited after ingestion. A Person is one row of current property values, changed by each $set in the order events arrive, not by event timestamp, so a late batch can overwrite a newer value. An identify call merges an anonymous distinct_id into the signed-in person. PostHog also stores a person's properties on each event as they stood when it was sent. Older projects may still be set to join the person's current values instead. Ask which the export used, because it decides whether the plan a user was on at the moment of a click is in the delivery. Projects can also capture anonymous events with no person profile at all. Flag conditions, cohort rules and Action definitions arrive as they stand on the export date, so ask for any change history the project kept.

PostHog is open source and some businesses run it on their own servers. Then the business holds the tables itself: events in ClickHouse, and persons, flags, cohorts and saved insights in Postgres. An export can be a direct table pull against a published schema. The cost is that nothing is standard: retention, version and capture settings are the operator's own choices.

Clicks without names, replays that expire, history in the warehouse

An $autocapture event records a click, an input change or a form submit, and says which DOM node was touched. Its elements_chain lists that element and each ancestor with tag name, classes, attributes such as href, nth-child position and visible text. By default it leaves out the values submitted in a form, and it does not say that an invoice was sent. Meaning is added afterwards by Actions, saved rules over selector, text and URL that are applied at query time and can be edited, so they are not in the event rows. The raw rows are all in the events table whether or not anyone wrote an Action over them, so coverage does not depend on what the team labeled. Class names produced by a build tool change with a release, and the same button then has a different chain. The chain is also not the page. Sibling elements and layout are only in the replay.

A Session Recording is rrweb data: a full DOM snapshot followed by mutations, pointer movement, scrolls and input events. Inputs are masked by default. Visible page text is not, unless the business configured text masking or marked elements with the ph-no-capture class, so a page that greets a customer by name records exactly that. Recordings are kept for a retention period the project sets within what its plan allows, often shorter than its event history, and a change to it applies only to new recordings. Sampling settings mean not every session has one. Batch exports carry events, persons and sessions as tables, not replay snapshots, so ask how the recordings themselves were pulled.

Long event histories usually sit outside PostHog. Batch exports write events on a schedule to a destination such as S3, BigQuery, Snowflake, Postgres, Redshift or Databricks, and a business that started early holds years the project no longer does. Check that the warehouse rows kept elements_chain, and ask which transformations ran at ingestion, since a filter that dropped events or properties removed them for good. To test a sample, follow one $session_id through its events in time order, open the matching recording at one click's offset and confirm the element is there. Then read element text, $current_url and replay text nodes for personal data.

What to check before licensing

  • Have the buyer's counsel and the data owner read PostHog's terms as they apply to exported data and API use, and for a self-hosted deployment the license of the edition in use.
  • Confirm distinct_id, person IDs and $session_id were rekeyed with one mapping across events, persons and replays, and that no email address survives as a distinct_id.
  • Open sample replays as snapshot JSON and search text nodes, attribute values, console logs and network URLs for personal data, since visible page text is not masked by default.
  • Scan the text and href values inside elements_chain, and $current_url query strings, for names, account numbers and customer content.
  • Ask whether delivered person properties are the values at ingestion or current values, and what share of events were captured without a person profile.
  • Ask for the Action definitions, and for the ingestion transformations and autocapture settings in force by date.
  • Compare the date ranges of events, replays and the warehouse copy, and check that the warehouse rows still carry elements_chain and person fields.

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

What does a PostHog dataset contain?

It contains one project's events and what PostHog keeps around them. Each event has its name, timestamp, distinct_id and properties, and autocaptured events add the element chain. Persons, groups, session replays, feature flag and experiment definitions, surveys and their answers, cohorts, Actions and saved Insights are added where agreed.

Are PostHog session replays video files?

No. A replay is a stream of DOM snapshots and changes in rrweb format, with pointer movement, scrolls and input events. It can be rendered to look like video, but the delivery is JSON that a model reads as page structure. Mobile replays are captured differently, so ask which platforms are covered.

Can autocaptured clicks be used without the business's own event names?

Yes, with limits. An $autocapture row records which element was touched and its visible text, not what the click meant. Meaning comes from Actions, rules the team wrote over selectors, text and URLs. Ask for those definitions, and check how stable the selectors are across releases.

Does it matter whether the business self-hosts PostHog?

It does. A self-hosting business holds the ClickHouse and Postgres tables itself and can export them directly, without going through an API. It also means retention, version and masking are whatever that business set. In the vendor's cloud the same data is reached through SQL queries, the API and batch exports.

How far back does PostHog history go?

It depends on where the data was kept. Events in the project follow the plan's retention, and replays follow a separate retention setting that is often shorter. Businesses that set up batch exports to a warehouse early often hold a longer event history there. Ask for the date range of each part separately.

Is SourceX affiliated with PostHog?

PostHog is named to identify the system the records come from. That does not imply a partnership with or endorsement by PostHog. The records belong to the business that runs PostHog, 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.

  • Web and product analytics events

    Event-level logs from a first-party site or app, with the tracking plan and keys to business outcomes

  • Browser task trajectories with DOM state

    Ordered steps of employees doing real tasks in web apps, each paired with the DOM, accessibility tree, URL and network calls

  • Mixpanel product event records

    Raw events as ingested, user and group profiles, and the Lexicon dictionary, cohorts and saved reports from one Mixpanel project

  • Heap autocaptured interaction records

    Heap Connect tables for one environment: users, sessions, pageviews, a table per synced defined event, all_events and user_migrations, plus the event definitions

  • Hotjar session and feedback records

    Survey responses from one Hotjar site, button survey feedback included, with page, device and country context, plus recording metadata, heatmap data, funnels and highlights where in scope

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