Skip to contentSkip to navigationSkip to topbar
Page tools
Useful for sharing or LLM
Accelerate development with AI

On this page
Looking for more inspiration?Visit the

Heap (Actions) Destination


(information)

Additional versions of this destination are available

This page is about the Heap (Actions) Destination. See below for information about other versions of the Heap destination:

  • Heap (Classic)

Heap(link takes you to an external page) automatically captures every user interaction with no extra code. This includes clicks, taps, gestures, form submissions, page views, and more.

(success)

Success!

Good to know: This page is about the Actions-framework Heap destination. There's also a page about the non-Actions Heap destination. Both of these destinations receive data from Segment.


Benefits of Heap (Actions) vs Heap Classic

benefits-of-heap-actions-vs-heap-classic page anchor

Heap (Actions) provides the following benefits over the classic Heap destination:

  • More control with clearer mapping. Actions-based destinations enable you to define the mapping between the data Segment receives from your source, and the data Segment sends to the destination.
  • Increased transparency. All Segment ingested events display the Segment icon in Heap, so you can identify the source of the event, and foster greater data trust.
  • Improved setup. Clear default settings enable you to set up faster.

  1. From the Segment web app, navigate to Connections and click Add Destination.
  2. Search for Heap (Actions) and click it.
  3. Click Configure Heap.
  4. Select the Source to connect to Heap (Actions).

Property nameTypeRequiredDescription
Heap app IDstring
required

The app ID of the environment to which you want to send data. You can find this ID on the Projects(link takes you to an external page) page.


Browser Array Limitnumber

Optional

This is an optional setting. When set, nested array items will be sent in as new Heap events. Defaults to 0.


Global data redaction via Disabling Text Captureboolean

Optional

Setting to true will redact all target text on your website. For more information visit the heap docs page(link takes you to an external page).


Hostnamestring

Optional

This is an optional setting used to set the host that loads heap-js. This setting is used when heapJS is self-hosted. In most cased this should be left unset. The hostname should not contain https or app id it will be populated like so: https://${hostname}/js/heap-${appId}.js. For more information visit the heap docs page(link takes you to an external page).


Secure Cookieboolean

Optional

This option is turned off by default to accommodate websites not served over HTTPS. If your application uses HTTPS, we recommend enabling secure cookies to prevent Heap cookies from being observed by unauthorized parties. For more information visit the heap docs page(link takes you to an external page).


Tracking Serverstring

Optional

This is an optional setting. This is used to set up first-party data collection. For most cased this should not be set. For more information visit the heap docs page(link takes you to an external page).


Heap Web (Actions) has the following presets

Preset NameTriggerDefault Action
Track EventEvent type = "track"Track Event
Identify UserEvent type = "identify"Identify User

Build your own Mappings. Combine supported triggers with the following Heap Web-supported actions:

(information)

Mapping limits per destination

Individual destination instances support a maximum of 5 mappings.

Identify User

identify-user page anchor

Sets user identity

Identify User is a Web action. The default Trigger is type = "identify"

Property nameTypeRequiredDescription
IdentitySTRING

Optional

The user's identity


TraitsOBJECT

Optional

The Segment traits to be forwarded to Heap

Track events

Track Event is a Web action. The default Trigger is type = "track"

Property nameTypeRequiredDescription
NameSTRING
required

The name of the event.


PropertiesOBJECT

Optional

A JSON object containing additional information about the event that will be indexed by Heap.


IdentitySTRING

Optional

a string that uniquely identifies a user, such as an email, handle, or username. This means no two users in one environment may share the same identity. More on identify: https://developers.heap.io/docs/using-identify


Anonymous IDSTRING

Optional

The segment anonymous identifier for the user


User PropertiesOBJECT

Optional

An object with key-value properties you want associated with the user. Each property must either be a number or string with fewer than 1024 characters.