Implement Mixpanel

Mixpanel maintains SDKs for easy implementation across many different platforms. Use the Ingestion API if there is not an SDK that supports your use case.

Follow the integration pages to programmatically implement Mixpanel with an SDK. In addition to event tracking, the integration pages cover Mixpanel dependencies such as identity management, group implementation, etc.

Use the HTTP specification for implementations that do not use an SDK. This includes server-side implementations that do not have a library, and can accommodate implementing on any device with a network connection, such as an “internet of things” device.

Getting Started

View the Getting Started section of our Help Center if you are new to Mixpanel and looking for product basics and not implementation basics.

Tracking Plan

It is important to build a tracking plan before implementing Mixpanel. A tracking plan connects a Mixpanel implementation to goals and performance indicators, optimizing your Mixpanel use case.

Your tracking plan serves as a map for implementing Mixpanel and a reference ensuring that meaningful events and properties are being collected. It also guides the development process.

View sample tracking plans in the Help Center to get more detail.

Mixpanel SDKs

Mixpanel currently offers an array of both client and server libraries.

The SDKs and APIs that you use will depend on your unique Mixpanel implementation and key performance indicators. In general, client libraries will support front-end tracking and support default properties.

Server libraries will handle back-end events, such as transactions or migrations.

It is possible to use the Mixpanel API Ingestion endpoints to send raw data to Mixpanel, optimizing for flexibility in what is being tracked.

It is possible to use a combination of all three tracking methods in order to collect the data that is important to you.

Client-Side SDKs

Use client libraries when implementing Mixpanel on the front-end, such as web pages and mobile applications.

Server-Side SDKs

Use server libraries when using Mixpanel to track events on the back-end, such as financial transactions that are handled on your server.

Don't see an SDK listed here? Post to our Community Ideas page to request support for a new platform.

HTTP Specification

The, or Ingestion API, endpoint will ingest events, user information, and group information. If you send data using the proper JSON format, Mixpanel ingests and displays that data.

Mixpanel's ingestion capability allows you to track events on any device that is connected to a network.

Examples include IoT devices, hardware with a network connection (such as a drone with network capabilities), server-side implementations that do not have an SDK, or a server-side implementations that you want more granular control over.

View the HTTP Spec documentation to learn more.

Mixpanel APIs

Mixpanel supports a collection of APIs that can use Mixpanel functionality outside of the web application.

View this page to see an overview of Mixpanel APIs.

Implement Mixpanel

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.