Skip to main content

Heap

Web Source code Package Beta

Heap (now part of Contentsquare) is a product analytics platform with auto-capture and retroactive event definitions. This destination loads the Heap snippet from Heap's CDN and forwards walkerOS events through heap.track(name, properties), plus identity, user properties, persistent event properties, and runtime consent.

Where this fits

Heap is a web destination in the walkerOS flow:

Installation

Loading...
Loading...

Configuration

This destination uses the standard destination config wrapper (consent, data, env, id, ...). For the shared fields see destination configuration. Package-specific fields live under config.settings and are listed below.

Settings

PropertyTypeDescriptionMore
appId*stringHeap App ID. Find it in your Heap project under Settings > App ID.
disableTextCapturebooleanDisable Heap auto text capture. Default: true.
disablePageviewAutocapturebooleanDisable Heap automatic pageview tracking. Default: true (walkerOS sources handle pageviews).
disableSessionReplaybooleanDisable Heap session replay.
secureCookiebooleanSSL-only cookies.
ingestServerstringCustom server endpoint for proxying Heap data.
identifyanyDestination-level identity mapping. Resolves to a string for heap.identify(). Example: { "key": "user.id" }.
userPropertiesanyDestination-level user properties mapping. Resolves to object for heap.addUserProperties(). Example: { "map": { "plan": "data.plan" } }.
* Required fields

Mapping

Per-event rules under config.mapping. For the standard rule fields (consent, condition, data, batch, name, policy) see mapping.

PropertyTypeDescriptionMore
identifyanyPer-event identity. Resolves to a string for heap.identify(). Example: { "key": "data.email" }.
resetanyReset Heap identity on this event. Set to true to call heap.resetIdentity().
userPropertiesanyPer-event user properties. Resolves to object for heap.addUserProperties().
eventPropertiesanyPer-event persistent event properties. Resolves to object for heap.addEventProperties() (persisted across page loads).
clearEventPropertiesanyClear all persistent event properties. Set to true to call heap.clearEventProperties().

Examples

Consent granted

A walker consent grant for analytics calls heap.startTracking to resume event capture.

Event
Out

Consent revoked

A walker consent revoke for analytics calls heap.stopTracking to pause event capture.

Event
Out

Default track

A walker event becomes a Heap track call with the event name and empty properties.

Event
Out

Destination identify

Destination-level identify calls heap.identify with the user id before firing the default track.

Event
Out

Renamed purchase

An order complete is renamed to purchase and mapped to Heap track properties such as order_id, total, and currency.

Event
Mapping
Out

User properties on event

An order fires Heap addUserProperties with last-order fields and then tracks the event.

Event
Mapping
Out

Global event properties

A page view sets persistent Heap event properties so all subsequent events include the page category.

Event
Mapping
Out

User login identify

A user login identifies the Heap user by email and adds user properties while skipping the track.

Event
Mapping
Out

User logout reset

A user logout calls heap.resetIdentity to clear the identified user from the Heap client.

Event
Mapping
Out

The destination wires walkerOS config.consent to Heap's runtime consent API. heap.startTracking() fires when all required consent keys are granted; heap.stopTracking() fires otherwise.

Loading...
💡 Need implementation support?
elbwalker offers hands-on support: setup review, measurement planning, destination mapping, and live troubleshooting. Book a 2-hour session (€399)