Skip to main content

Overview

Enabling the Heap integration allows you to export Statsig events to your configured Heap app with information on the status of each user’s feature gate and experimentation groups. Statsig will send events to Heap when a client SDK is initialized and will also forward events as they are received.

Client SDK Initialize Events

Statsig sends the following events to your Heap app every time you call the initialize API from a Statsig client SDK.

Exposures and Custom Event Forwarding

Statsig can forward events as they are received from SDKs, Integrations or the HTTP API. Events include exposures (Gate, Experiment, Config) and custom events.

Event Format

Events will be sent in batches in a JSON format. The structure of a Statsig Event sent will look like the following:

Custom Event Formatting - logEvent

Feature Gate Exposure Formatting - checkGate

Dynamic Config Exposure Formatting - getConfig

Experiment Exposure Formatting - getExperiment

Example Batch

Configuring Outbound Events

  1. Navigate to your Heap Projects page to find and copy the App ID for your project.
img
  1. Paste the App ID into the App ID input field for the Heap configuration in the Statsig Integrations page and save your changes.