Skip to contentSkip to navigationSkip to topbar
Page toolsOn this page
Looking for more inspiration?Visit the
(information)
You're in the right place! Segment documentation is now part of Twilio Docs. The content you are used to is still here—just in a new home with a refreshed look.

Mixpanel Web Destination


Destination Info
  • Accepts Page, Alias, Group, Identify and Track calls.
  • Refer to it as Mixpanel Web (actions) in the Integrations object
  • This destination is not compatible with Destination Insert Functions.
  • This integration is partner owned. Please reach out to the partner's support for any issues.
  • This destination is in Beta

Mixpanel(link takes you to an external page) is an event analytics platform that lets product teams understand user behavior, measure engagement, and drive retention through data-driven insights.

This destination is maintained by Mixpanel. For any issues with the destination, contact the Mixpanel Support team.


Getting started

getting-started page anchor
  1. From your workspace's Destination catalog page(link takes you to an external page), search for "Mixpanel Web".
  2. Select Mixpanel Web (Actions) and click Add Destination.
  3. Select an existing JavaScript source to connect to Mixpanel Web (Actions).
  4. Go to your Mixpanel project settings(link takes you to an external page), find and copy the Project Token.
  5. Enter the Project Token in the Mixpanel Web destination settings in Segment.

Property nameTypeRequiredDescription
API Hoststring
required

The Mixpanel API host to send data to.


Autocaptureselect

Optional

Enable or disable Mixpanel autocapture functionality. Select "Custom" to specify fine grained control over which events are autocaptured.


Autocapture Capture Text Contentboolean
required

Capture text content of elements in autocaptured events


Autocapture Clickboolean
required

Capture click events automatically


Cookie Expiration (days)number

Optional

Set the cookie expiration time in days for Mixpanel cookies.


Cross Subdomain Cookieboolean

Optional

Enable or disable cross subdomain cookies for Mixpanel.


Autocapture Dead Clickboolean
required

Capture dead click events automatically


Disable Persistenceboolean

Optional

Disable all persistence mechanisms for Mixpanel.


Autocapture Inputboolean
required

Capture input events automatically


Send IP Addressboolean

Optional

Enable or disable sending IP address information to Mixpanel.


Mixpanel Instance Namestring

Optional

The name for the new mixpanel instance that you want created.


Autocapture Pageviewselect
required

Capture pageview events automatically


Persistence Methodselect

Optional

Set the persistence method for Mixpanel (cookie or localStorage).


Project Tokenstring
required

Your Mixpanel project token.


Autocapture Rage Clickboolean
required

Capture rage click events automatically


Record Block Classstring

Optional

CSS class to block elements from being recorded in session recordings.


Record Block Selectorstring

Optional

CSS selector to block elements from being recorded in session recordings.


Record Canvasboolean

Optional

Enable or disable recording of canvas elements in session recordings.


Record Heatmap Databoolean

Optional

Enable or disable tracking of heatmap events in session recordings.


Record Idle Timeout (ms)number

Optional

Idle timeout in milliseconds for session recordings.


Record Mask Text Classstring

Optional

CSS class to mask text elements in session recordings.


Record Mask Text Selectorstring

Optional

CSS selector to mask text elements in session recordings.


Record Max (ms)number

Optional

Maximum recording time in milliseconds for session recordings.


Record Min (ms)number

Optional

Minimum recording time in milliseconds for session recordings.


Record Sessions Percentnumber

Optional

Percentage of sessions to record for session recordings.


Autocapture Scrollboolean
required

Capture scroll events automatically


Autocapture Submitboolean

Optional

Capture form submit events automatically


Track Marketing Campaignsboolean

Optional

Enable or disable tracking of marketing campaigns in Mixpanel. Includes UTM parameters and click identifiers for various ad platforms.


Mixpanel Web (actions) has the following presets

Preset NameTriggerDefault Action
IdentifyEvent type = "identify"Identify
TrackEvent type = "track"Track

Build your own Mappings. Combine supported triggers with the following Mixpanel Web (actions)-supported actions:

(information)

Mapping limits per destination

Individual destination instances have support a maximum of 50 mappings.

Identify

identify page anchor

Sync user profile data to Mixpanel.

Identify is a Web action. The default Trigger is type = "identify"

Property nameTypeRequiredDescription
Unique IDSTRING
required

The unique ID to associate with the user.


User Profile Properties to SetOBJECT

Optional

User Profile Properties to set on the user profile in Mixpanel.


User Profile Properties to Set OnceOBJECT

Optional

User Profile Properties to set once on the user profile in Mixpanel. Values which get set once cannot be overwritten later.


User Profile Properties to IncrementOBJECT

Optional

User Profile Properties to increment on the user profile in Mixpanel. Values must be numeric.

Sync alias data to Mixpanel. Use this to replace a Unique ID with a new one.

Alias is a Web action. The default Trigger is type = "alias"

Property nameTypeRequiredDescription
Alias IDSTRING
required

The new ID to associate with the user.


Original IDSTRING
required

The original ID to associate with the user.

Sync Segment page events to Mixpanel.

Track Page View is a Web action. The default Trigger is type = "page"

Property nameTypeRequiredDescription
Event NameSTRING

Optional

The name of the event to track in Mixpanel.


Event PropertiesOBJECT

Optional

Properties to associate with the event.


Unique IDSTRING

Optional

The unique ID to associate with the user. Settings this value will trigger a Mixpanel identify call before immediately the page event is sent.


User Profile Properties to SetOBJECT

Optional

User Profile Properties to set on the user profile in Mixpanel.


User Profile Properties to Set OnceOBJECT

Optional

User Profile Properties to set once on the user profile in Mixpanel. Values which get set once cannot be overwritten later.


User Profile Properties to IncrementOBJECT

Optional

User Profile Properties to increment on the user profile in Mixpanel. Values must be numeric.


Group DetailsOBJECT

Optional

Details for the group to be created or updated in Mixpanel. Setting this value will trigger a Mixpanel set_group call before the page event is sent.


Group properties to SetOBJECT

Optional

Group Profile Properties to set on the group in Mixpanel.


Group properties to set onceOBJECT

Optional

Group Profile Properties to set once on the group profile in Mixpanel. Values which get set once cannot be overwritten later.


Group list properties to unionOBJECT

Optional

Merge a list into a list group property. Duplicates will be removed.

Sync Segment track events to Mixpanel.

Track is a Web action. The default Trigger is type = "track"

Property nameTypeRequiredDescription
Event NameSTRING
required

The name of the event to track in Mixpanel.


Event PropertiesOBJECT

Optional

Properties to associate with the event.


Unique IDSTRING

Optional

The unique ID to associate with the user. Settings this value will trigger a Mixpanel identify call before immediately the track event is sent.


User Profile Properties to SetOBJECT

Optional

User Profile Properties to set on the user profile in Mixpanel.


User Profile Properties to Set OnceOBJECT

Optional

User Profile Properties to set once on the user profile in Mixpanel. Values which get set once cannot be overwritten later.


User Profile Properties to IncrementOBJECT

Optional

User Profile Properties to increment on the user profile in Mixpanel. Values must be numeric.


Group DetailsOBJECT

Optional

Details for the group to be created or updated in Mixpanel. Setting this value will trigger a Mixpanel set_group call before the track event is sent.


Group properties to SetOBJECT

Optional

Group Profile Properties to set on the group in Mixpanel.


Group properties to set onceOBJECT

Optional

Group Profile Properties to set once on the group profile in Mixpanel. Values which get set once cannot be overwritten later.


Group list properties to unionOBJECT

Optional

Merge a list into a list group property. Duplicates will be removed.

Sync Group data to Mixpanel.

Group is a Web action. The default Trigger is type = "group"

Property nameTypeRequiredDescription
Group DetailsOBJECT
required

Details for the group to be created or updated in Mixpanel.


Group properties to SetOBJECT

Optional

Group Profile Properties to set on the group in Mixpanel.


Group properties to set onceOBJECT

Optional

Group Profile Properties to set once on the group profile in Mixpanel. Values which get set once cannot be overwritten later.


Group list properties to unionOBJECT

Optional

Merge a list into a list group property. Duplicates will be removed.


Mixpanel's Autocapture feature automatically tracks user interactions without requiring manual instrumentation. You can configure autocapture in three modes:

  • Enabled: Automatically captures all supported events including page views, clicks, scrolls, form submissions, and input changes.
  • Disabled: No automatic event capture. Only explicitly tracked events are sent.
  • Custom: Fine-grained control over which event types to capture (clicks, rage clicks, dead clicks, scrolls, form submissions, input changes) and how page views are tracked.

The Track, Track Page View, and Identify actions support three methods for updating user profile properties:

  • Set: Overwrites the property value.
  • Set Once: Sets the property only if it doesn't already exist. Useful for immutable properties like signup date.
  • Increment: Adds a numeric value to an existing property. Useful for counters like login count or purchase count.

Mixpanel supports Group Analytics for company or organization-level analysis. To use groups:

  1. Define group keys in your Mixpanel project settings before sending group data.
  2. Use the Group action or include group details in Track events to associate users with groups.
  3. Set group profile properties using the same set, set once, and union operations available for user profiles.

Mixpanel Web supports session recording through Mixpanel's Replay feature. Configure recording settings including:

  • Sampling rate: Control what percentage of sessions are recorded.
  • Block and mask selectors: Define CSS selectors to block or mask sensitive content.
  • Recording duration: Set minimum and maximum recording times.
  • Canvas recording: Enable to capture canvas element content.

Use Alias events to merge user identities when a user's identifier changes, such as when an anonymous user signs up and receives a new user ID. This creates a link between the original ID and the new alias in Mixpanel.