# Mixpanel Track Endpoint Deprecation

We have significantly enhanced our Mixpanel destination integration to improve the overall functionality.

### Deprecation of Mixpanel track endpoint

We have deprecated the support for Mixpanel's [`/track`](https://developer.mixpanel.com/reference/track-event) endpoint.

Previously, RudderStack used the [`/import`](https://developer.mixpanel.com/reference/import-events) endpoint along with the `/track` endpoint to perform the merging of known (`userId`) and anonymous (`anonymousId`) users. With this update, RudderStack sends all events to Mixpanel by leveraging only the `/import` endpoint.

This change offers a higher batch limit, supports Gzip event compression, and supports ingestion of historical data, along with several other improvements. 

{{< info >}}
Note that with this update, you should expect additional merge calls in your Mixpanel profile feed.
{{< /info >}}

For more details, see [Mixpanel's documentation](https://developer.mixpanel.com/reference/track-event).

### Deprecation of API Secret dashboard setting

We have also removed the **API Secret** setting which was used to set up the Mixpanel destination in RudderStack. 

RudderStack now uses the **API Token** or **Service Account** credentials [provided in the dashboard]({{< ref "destinations/streaming-destinations/mixpanel/setup-guide.md#connection-settings" >}}) to authenticate the `/import` API to send all events to Mixpanel.

See our [Mixpanel documentation]({{< ref "destinations/streaming-destinations/mixpanel/" >}}) for more information.

