Dataset
Heap autocaptured interaction datasets for AI training
A Heap dataset is an export of one business's Heap environment: the users, sessions and pageviews Heap captured automatically, the clicks, field changes and form submits its team named as defined events, each definition's selector or URL rule, and the user_migrations table that records identity merges, usually as Heap Connect tables in the business's warehouse. SourceX sources it to a buyer's spec from established businesses that run Heap. Each dataset is de-identified, with user IDs rekeyed and captured text screened, and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Heap Connect tables for one environment: users, sessions, pageviews, a table per synced defined event, all_events and user_migrations, plus the event definitions
- Typical systems
- Heap web and mobile autocapture, the Event Visualizer and defined events, Snapshots, and Heap Connect to Snowflake, BigQuery, Redshift or Amazon S3
- Typical history
- Specified by the buyer; bounded by the install date, the plan's retention and, for Snapshot values, the day each Snapshot was created
- Modality
- Warehouse tables of timestamped interactions with page and element properties, short captured text, and definition rules
- Delivery formats
- Agreed per order; Parquet or CSV per Heap Connect table, definitions as JSON or CSV, with sync dates recorded
- Preparation
- user_id rekeyed with one mapping that follows user_migrations; identity and IP removed; target text, URLs and Snapshot values screened
- Licensing
- Rights reviewed against the privacy notice the interactions were captured under; permitted use set in the license
- Availability
- Sourced to your spec from businesses that agree; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| event_id | string | The event_id column of a Heap Connect event table, one per captured interaction. |
| event_table_name | string | The synced defined event's table, as named in all_events, which says which definition matched. |
| time | timestamp | The event's time column from the event table, the moment Heap captured the interaction. |
| user_id | string | Heap's user_id from the event, sessions and users tables, rekeyed after user_migrations is applied. |
| session_id | string | The session_id that ties the event to its row in the sessions table, rekeyed. |
| session | object | Sessions table columns: start time, device_type, platform, browser, country, region, landing_page and utm_ values. |
| page | object | Pageview properties on the event: path, title and domain, with query and hash where they pass screening. |
| target | object | Autocaptured element properties on the event table: target_text and href, with the element's tag, id and class only if they were synced. |
| definition | object | The Defined Event behind the table: type, CSS selector or URL rule, filters, category and the team's note. |
| definition_history | array | Dated edits to the Defined Event where the business kept them, since Heap applies the current rule to past data. |
| snapshot_properties | object | Values captured by Snapshot properties on the definition, present only from the day each Snapshot was created. |
| custom_properties | object | Properties the business sent itself through heap.track or addEventProperties, as columns on the event table. |
| user | object | From the users table: joindate, custom user properties and any Account link; the identity value is removed. |
| migration | object | The user_migrations row, from_user_id, to_user_id and time, that merged an anonymous user into a known one. |
Field names from the table above; values are masked placeholders.
Example record
{
"event_id": "5273518849043211",
"event_table_name": "checkout_click_apply_promo_code",
"time": "2026-04-22T18:07:31.512Z",
"user_id": "hu_81c2d4",
"session_id": "hs_3f90ab",
"session": {
"time": "2026-04-22T17:58:02.100Z",
"device_type": "Desktop",
"platform": "Windows",
"browser": "Chrome",
"country": "United States",
"region": "Ohio",
"landing_page": "/pricing",
"utm_source": "newsletter"
},
"page": {
"path": "/checkout/payment",
"title": "Checkout - Payment",
"domain": "app.example.com"
},
"target": {
"target_text": "Apply code",
"href": null
},
"definition": {
"name": "Checkout - Click Apply Promo Code",
"type": "click",
"selector": "form#payment .promo-apply",
"filters": [
{
"property": "path",
"op": "contains",
"value": "/checkout"
}
],
"category": "Checkout",
"note": "Counts presses, not successful redemptions. See Promo Applied (server) for those."
},
"definition_history": [
{
"edited": "2025-11-03",
"change": "Selector added after the checkout redesign renamed .apply-btn to .promo-apply"
}
],
"snapshot_properties": {
"cart_item_count": "3"
},
"custom_properties": {
"plan_tier": "annual"
},
"user": {
"joindate": "2025-08-14T12:41:09Z",
"account_key": "acct_22e7",
"role": "buyer"
},
"migration": {
"from_user_id": "hu_d09e11",
"to_user_id": "hu_81c2d4",
"time": "2026-04-22T18:01:44Z"
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Ground interface elements in business meaning
Each definition pairs a CSS selector, page and element text with the name a product team gave it, a label set for web agents.
Propose event names for unlabeled elements
Selector, text and page as input, with the team's event name as target, train a model to label elements as Heap users do by hand.
Predict the next interaction
Ordered pageviews and defined events per session are sequences for next-step, conversion and drop-off models.
Learn identity stitching
user_migrations rows are recorded merges of an anonymous visitor into a known user, with the sessions on each side.
Evaluate funnel analysis
Defined events with notes on what they count let an agent's funnel query be recomputed from the tables and scored.
Use-case guides: Enterprise and computer-use agents, Private evaluation sets, Sales agents
What makes this data valuable
Broad sync list
Most defined events, and catch-all click or submit events, were switched on in Heap Connect.
Definitions with notes
Events carry categories and written notes on what they count, not only a name.
Stable selectors
The site uses fixed ids or data attributes, so rules survived redesigns and builds.
Identify called at sign-in
user_migrations is populated, so journeys before sign-up join to the later account.
Redaction in use
Sensitive elements carry data-heap-redact-text or heap-ignore, so their text was masked before it left the browser.
Server-side outcomes
Purchases and upgrades were sent with the track API, which browser capture cannot see.
Process
Heap dataset
Defined events are labels written over a raw capture
Most analytics tools record only the events a developer coded. Heap's snippet records every pageview, click, field change and form submit by itself, with what it can read from the page at that moment: the path and title, and the element's tag, id, classes, text, link target and place in the DOM hierarchy. Nothing is named at capture. Later someone in product or marketing opens the Event Visualizer, clicks a button on the live site and saves a defined event, shown as a labeled event in some versions of the interface: a type, a CSS selector, optional filters such as the path, and a name like Checkout - Click Apply Promo Code. Heap then matches the rule against everything already captured, so the event has history from the day the snippet was installed, as far as the plan's retention reaches.
Each definition is therefore a human annotation. A person who knows the product mapped an element pattern to a business meaning, and often added a category and a note on what the event counts. Tools with coded events hold the name without the element, and session recordings hold the element without a name. Heap holds both. Where a combo event groups several definitions under one name, the team has also stated that different controls mean the same thing.
The interactions are fixed and the labels are not. Editing a definition rewrites its whole history, and event rows do not say which version of a rule matched them. Selectors also break quietly. A redesign, or a build that generates new class names, stops the matches, and someone patches the rule weeks later. Snapshots are the exception to retroactivity. A Snapshot reads an extra value from the page when an event fires, and it has data only from the day it was created. Ask for a dated definition history if the business kept one.
Heap Connect delivers what was defined and synced
Event-level data leaves Heap through Heap Connect, a managed sync into the business's own Snowflake, BigQuery, Redshift or Amazon S3. The schema is users, sessions, pageviews, one table for each defined event the team chose to sync, an all_events table that lists event_id, time, user_id, session_id and event_table_name across those tables, and user_migrations. Pageviews and sessions arrive whole. Clicks, changes and submits arrive only as rows of a synced defined event. Raw interactions nobody defined generally stay inside Heap. Coverage is set by how many definitions the team wrote and switched on, so ask whether catch-all events, such as any click, were among them.
Three behaviors follow. A table is normally filled with the event's history when it is first synced, and its rows reflect the rule as it stood at a sync, not at the time of each click, so ask how definition edits reached the warehouse. One interaction can match several definitions and appear in several tables, so count by event_id, not by row. And identity moves: Heap gives each browser or device a user_id, a call to heap.identify joins it to a known user, and user_migrations records the from_user_id and to_user_id of the merge. Whether that merge is already applied to delivered rows depends on the destination. The identity column in users often holds an email address or customer number, so rekeying must remove it and follow the migrations, or every journey loses its anonymous first half.
To test a sample, compare the distinct event_table_name values with the definition list in Heap. The difference was defined and never synced. Plot daily counts per event and look for cliffs that line up with releases. Then read target_text, titles, query strings and Snapshot values. Autocapture is built to record that a field changed, not what was typed, which is worth confirming for the install. The text of a clicked element can still be a customer's name or a search result, and a URL can carry an email address or a token. Session replays are a separate feature, so ask whether any are in scope.
What to check before licensing
- Have the buyer's counsel and the data owner read the Heap and Contentsquare terms as they apply to exported data, Heap Connect and API use.
- Confirm user_id was rekeyed with one mapping across users, sessions, pageviews, every event table and user_migrations, and that the identity column is gone.
- Read target_text, titles, hrefs, query strings, Snapshot values and custom properties on a sample for personal data, and ask which redaction settings were on.
- Ask for every definition with its selector or URL rule and filters, and compare that list with the event tables actually synced.
- Ask whether edits to definitions were dated anywhere, and check daily counts per event for cliffs that mark a broken selector.
- Ask which Heap Connect destination was used and whether user_migrations has already been applied to the delivered rows.
- Ask for the install date on each platform, the plan's retention, the creation date of each Snapshot and whether form values were ever captured.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
What does a Heap dataset contain?
It contains one environment's Heap Connect tables and the definitions behind them. That means users, sessions and pageviews, one table per synced defined event with page and element properties, all_events and user_migrations. The definition list, with each event's selector or URL rule, category and note, is requested beside the tables. Segments and charts are optional.
Does the export include every click Heap captured?
Usually not. Heap stores every click, change and submit, but Heap Connect syncs pageviews, sessions and the defined events the team switched on. A click that matches no synced definition generally does not reach the warehouse. Ask how many events are defined, how many are synced, and whether a catch-all click event covers the rest.
Why do the event definitions matter?
They are the labels. A definition states that a CSS selector or URL rule, on certain pages, means a named business action. Without it a table name is only a string. With it, each row links an interface element to its meaning. Definitions can be edited at any time and apply to all history, so ask when each was last changed.
Are typed form values in the data?
Not by default, though it should be confirmed for each install. Heap's autocapture is built to record that a field changed or a form was submitted, not what was typed. Personal data can still arrive through the text of clicked elements, page titles, URLs, Snapshot properties and custom properties the business sent. Read those columns on a sample and confirm that user IDs were rekeyed and the identity value removed.
How are anonymous and signed-in users joined?
Through heap.identify and the user_migrations table. Heap assigns a user_id to each browser or device, and when the site identifies the person, earlier anonymous activity is merged into the known user. Each merge is recorded as a from_user_id and to_user_id pair. Confirm whether the delivered rows already reflect those merges and that the pseudonym scheme follows them.
Is SourceX affiliated with Heap or Contentsquare?
Heap is named to identify the system the records come from. That does not imply a partnership with or endorsement by Heap or Contentsquare. The records belong to the business that runs Heap, 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.
Related datasets
- Web and product analytics events
Event-level logs from a first-party site or app, with the tracking plan and keys to business outcomes
- UI screenshots with element annotations
Interface screenshots with per-element bounds, role, name and state taken from the application itself
- Mixpanel product event records
Raw events as ingested, user and group profiles, and the Lexicon dictionary, cohorts and saved reports from one Mixpanel project
- Amplitude product analytics records
Raw events from one Amplitude project with event, user and group properties and identity fields, plus the tracking plan, cohorts and exposure events
- Pendo product usage and guide records
Usage of a software product by visitor and account against tagged pages, features and track events, with in-app guides, their step events and poll and NPS responses
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell 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.