# Segment Integration

Segment collects, cleans, and controls your visitor data/event within a reliable infrastructure. You can integrate your CustomFit account with Segment to have your CustomFit experiences and behaviours pushed as custom events in Segment.

### Prerequisites

* A Segment account that is currently active
* Your webpage should have both the CustomFit code snippet and the Segment analytics code.

### Integrating CustomFit with Segment

* Log in to your CustomFit dashboard.
* From the dashboard sidebar, click on **Settings > 3rd Party Integrations.**
* On the integrations page, you can see the **Segment** section.

<figure><img src="/files/r1VD9NDQ3ECK5O5tA6Lf" alt=""><figcaption></figcaption></figure>

* Click on the status field to enable Segment integration.

<figure><img src="/files/kJIhadqDXEYUR408qKD3" alt=""><figcaption></figcaption></figure>

### Validating integration

Once the integration is configured, you can validate that your experience behavior data is being transmitted to Segment.

* Log in to your Segment account.
* Click on **Sources** under Connections in the sidebar.

<figure><img src="/files/LnS1dHLUAf4N74jxgOnw" alt=""><figcaption></figcaption></figure>

* Then click on the source installed on your website.

<figure><img src="/files/rNG0dECy50icZIo0J1Hh" alt=""><figcaption></figcaption></figure>

* To view a list of all the events the source has received, select the **Debugger** tab.

<figure><img src="/files/lmxQWx3r9AtDPWDthwcB" alt=""><figcaption></figcaption></figure>

* Under the Debugger tab, you can see an event by the name **CustomFit Experience Viewed**. Click on this event to see the experience and behavior details.

<figure><img src="/files/w3XoYEwbCRkh2imRVGVj" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.customfit.ai/integrations/segment-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
