> For the complete documentation index, see [llms.txt](https://doc.customfit.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.customfit.ai/integrations/segment-integration.md).

# 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>
