# Segment Proxy

If you're using Segment to collect data from your website, you can set up [Webhooks (Actions)](https://segment.com/docs/connections/destinations/catalog/actions-webhook/) destination to send data to Jitsu

Use this step-by-step guide to set up Segment proxy

## Add Webhooks (Actions) destination

1. Go to **Connections** / **Catalog** section in you Segment Workspace and find Webhooks (Actions) destination:

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy1.png" />

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy2.png" />

2. Select data source your want to send to Jitsu and click **Next**

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy3.png" />

3. Name your destination and click **Create Destination**

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy4.png" />

4. Enable your destination and click **Save changes**

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy5.png" />

## Set up Mapping

5. Go to the **Mappings** tab and click **New Mapping**

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy6.png" />

6. Click on **Send** action

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy7.png" />

7. Select events to map. You can map all events or specific ones

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy8.png" />

8. Add test event. If your source is alive you can choose **Load Test Event from Source**, otherwise you can click **Load Sample Event**

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy9.png" />

9. Select mappings

Fill **URL** field with your Jitsu instance [S2S endpoint URL](/docs/sending-data/http#ingest-endpoint) while replacing event type at the end of URL with the `type` variable from the dropdown list:

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy10.png" />

and **Write Key** with your Jitsu site Server-to-server Write Key

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy11.png" />

9. Send test event and check if it was received in Jitsu

Press **Send test event to destination** button

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy12.png" />

Make sure that you see a successful response:

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy13.png" />

Check Jitsu - Live Events section to see if the test event was received

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy15.png" />

Save Mapping and make sure that it's enabled

<Screenshot src="/docs/screenshots/segment-proxy/segment-proxy14.png" />