# How Do I Switchover From Segment?

The Freshpaint Javascript and Mobile SDKs are 100% compatible with Segment's SDKs. That means you can migrate with only a minimal amount of engineering resources. All your event tracking will automatically be switched over to Freshpaint.

Switching from Segment to Freshpaint takes only two steps:

1. Setup your destinations in Freshpaint.
2. Replace the Segment SDKs with the Freshpaint SDKs.

## 1. Setting up Your Destinations in Freshpaint

For each each destination you have in Segment, setup the corresponding destination in Freshpaint. This can be done in the [Freshpaint destinations page](https://app.freshpaint.io/destinations/apps). For each destination, copy and paste your credentials into Freshpaint.

![Easily configure existing Segment destinations in Freshpaint](/files/7jnvzZbYMYJB2JygXcE9)

{% hint style="info" %}
You can override your destinations hardcoded into your Segment tracking code. This can be done in the [Freshpaint Event Schema](/admin-panel/events.md), and clicking on the Advanced Settings for a particular event's Destinations.
{% endhint %}

## 2. Replacing the Segment SDKs with the Freshpaint SDKs

First remove the Segment SDKs and replace them with the Freshpaint SDKs. For the web SDK, you can find the Freshpaint installation snippet in the [Freshpaint sources page](https://app.freshpaint.io/sources).

With that done, you need to point your Segment tracking code to Freshpaint. On web, this can be done by setting the `analytics` object to the `freshpaint` object:

```javascript
window.analytics = freshpaint;
```

## Congrats! You're Done.

After replacing the Segment SDK with the Freshpaint SDK, you've finished the migration process. We promised this would be easy. If you want to run a test to show that everything is working properly, try performing an action that would normally trigger an event in Segment. You should see that event show up in the Freshpaint [Liveview](https://app.freshpaint.io/events/liveview) and in all your destinations, too.


---

# 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://documentation.freshpaint.io/reference/faqs/how-can-i-switchover-from-segment.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.
