# 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="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FsO25DF7RjXD5zlqkNWAz%2Fimage%20(5).png?alt=media&#x26;token=c841df55-b5e7-4cec-aab9-2e04b8aad95e" alt=""><figcaption></figcaption></figure>

* Click on the status field to enable Segment integration.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2F856n3X5EIdifQkddR3cC%2Fimage%20(6).png?alt=media&#x26;token=e8cec70e-2116-4ea0-848b-31021bd8cbca" 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="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FYo8XhpiM8j5vcyMECGlW%2FSegment1.png?alt=media&#x26;token=bc18b93a-944a-4742-91ef-d873d8ed6b73" alt=""><figcaption></figcaption></figure>

* Then click on the source installed on your website.

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FRt3aYmxmT2PYvjz7gDGU%2FSegment1%20(1).png?alt=media&#x26;token=be660be7-0d5b-424c-af51-3274e15e041b" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2F43wIKZbAe3vZa9Rw1ajI%2FSegment2.png?alt=media&#x26;token=3c5b1ae2-f324-4da2-ba6c-8cf61e375116" 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="https://1136256215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUgAFLO61VraHX8jwLt%2Fuploads%2FQcJ2PWIMMnkX329BbSwo%2FSegment2%20(1).png?alt=media&#x26;token=aec2bfe3-2806-4450-b6d7-e362b594e429" alt=""><figcaption></figcaption></figure>
