# Hightouch

> For AI agents: a documentation index is available at [/llms.txt](/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

## How the Hightouch integration works

Enabling the [Hightouch](https://hightouch.com/) integration allows you to send events and keep segments up-to-date in Statsig using Hightouch. You can ingest data into Statsig from [any source](https://hightouch.com/integrations) that Hightouch supports.

If you’re on a [Pro plan](https://www.statsig.com/pricing), you can find all events that Statsig receives from Hightouch in the [Metrics](https://docs.statsig.com/metrics/introduction) tab in the Statsig console. Statsig automatically includes these events in [Pulse](https://docs.statsig.com/experiments/interpreting-results/read-results) and [Experiment](https://docs.statsig.com/experiments/monitor) results for your feature gates and experiments. You can view your updated segment lists on the [Segments](https://console.statsig.com/segments) page.

## Event configuration

1. From the **[API Keys](https://console.statsig.com/api_keys)** tab in the Statsig console, copy the Statsig **Client-SDK API key**.
2. Go to the Hightouch [**Destinations** overview page](https://app.hightouch.com/destinations) and click the **Add destination** button. Select **Statsig** and click **Continue**. Enter the **Client-SDK API key** and click **Continue**.
3. Give your destination a descriptive name, for example, "Statsig prod."
4. After you set up your Statsig destination and have a [model](https://hightouch.com/docs/getting-started/concepts#models) to pull data from, you can set up your sync configuration to begin syncing data. Go to the [**Syncs** overview page](https://app.hightouch.com/syncs) and click the **Add sync** button to begin. Then, select the relevant model and the Statsig destination you previously set up.
5. Select **Events** as the sync type.
6. Enter either a static value or select a column that contains **Event names**.
7. Optionally, select a column that contains the event timestamp. If you don't select a column, Statsig uses the time the event arrives at the server.
8. Choose source columns to sync as event metadata and user attributes, such as the **User ID**.
9. Finally, select whether you want the first sync to backfill event data. For more information about configuration options, refer to [Hightouch’s Statsig docs](https://hightouch.com/docs/destinations/statsig#events).
10. Run the sync and check that events appear in your Statsig **[Metrics](https://docs.statsig.com/metrics/introduction)** tab.

## Segment configuration

The Hightouch integration lets you keep your segments up-to-date by adding or removing members based on changes in your source dataset.

1. From the **[API Keys](https://console.statsig.com/api_keys)** tab in the Statsig console, copy the Statsig **Console API key.**
2. Go to the Hightouch [**Destinations** overview page](https://app.hightouch.com/destinations) and click the **Add destination** button. Select **Statsig** and click **Continue**. Enter the **Client-SDK API key** and click **Continue**.
3. Give your destination a descriptive name, for example, "Statsig prod."
4. After you set up your Statsig destination and have a [model](https://hightouch.com/docs/getting-started/concepts#models) to pull data from, you can set up your sync configuration to begin syncing data. Go to the [**Syncs** overview page](https://app.hightouch.com/syncs) and click the **Add sync** button to begin. Then, select the relevant model and the Statsig destination you previously set up.
5. Select **Segment** as the sync type.
6. Select whether you want to create a new audience or use an existing audience to sync data to. If creating a new audience, you can give it a name. If you leave this input blank, Hightouch uses the name of your model for the audience.
7. Select the audience's ID type: either **userID** or **stableID**.
8. Select the source column and Statsig field to match records on. For more information, refer to Hightouch's docs on [record matching](https://hightouch.com/docs/syncs/record-matching).
9. [Schedule your sync](https://hightouch.com/docs/syncs/schedule-sync-ui) to run as frequently as you need. You can view your updated segment lists on the **[Segments](https://console.statsig.com/segments)** page.

## Troubleshooting

For questions, contact [Hightouch support](https://www.notion.so/Hightouch-page-in-Statsig-docs-42b88b32b82b491d9baf1694049955ab).
