> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/mixpanel/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrations

> Ingest data from third-party tools into Mixpanel

# Integrations: Connect Your Data Sources

These integrations allow you to send your tracking data to Mixpanel from third-party tools. You may review our complete integrations directory at [mixpanel.com/partners/integrations](https://mixpanel.com/partners/integrations).

If you don't see what you're looking for, [reach out to us](https://mixpanel.com/get-support).

## Featured Integrations

<CardGroup cols={2}>
  <Card title="Segment" icon="chart-network" href="/docs/tracking-methods/integrations/segment">
    Route data from the leading Customer Data Platform to Mixpanel
  </Card>

  <Card title="Google Tag Manager" icon="google" href="/docs/tracking-methods/integrations/google-tag-manager">
    Deploy Mixpanel tracking through GTM without code changes
  </Card>
</CardGroup>

## Customer Data Platforms (CDPs)

CDPs collect data from multiple sources and route it to various destinations. Connect your CDP to Mixpanel to centralize your data pipeline.

<CardGroup cols={2}>
  <Card title="Segment" icon="chart-network" href="/docs/tracking-methods/integrations/segment">
    Industry-leading CDP with native Mixpanel Actions destination
  </Card>

  <Card title="mParticle" icon="chart-network" href="/docs/tracking-methods/integrations/mparticle">
    Customer data platform for multi-channel marketing
  </Card>

  <Card title="Rudderstack" icon="chart-network" href="/docs/tracking-methods/integrations/rudderstack">
    Open-source customer data platform
  </Card>

  <Card title="Freshpaint" icon="droplet" href="/docs/tracking-methods/integrations/freshpaint">
    Healthcare-compliant customer data platform
  </Card>

  <Card title="Tealium" icon="database" href="/docs/tracking-methods/integrations/tealium">
    Enterprise tag management and customer data platform
  </Card>
</CardGroup>

### Segment Integration Details

Segment is one of the most popular ways to integrate Mixpanel. Here's how it works:

**1. Set Up Segment Source**

Install the Segment library in your application to start collecting data:

```javascript theme={null}
// Web - Install Segment
analytics.load("YOUR_WRITE_KEY");

// Identify users
analytics.identify('user_123', {
  name: 'Jane Doe',
  email: 'jane@example.com'
});

// Track events
analytics.track('Button Clicked', {
  button_name: 'Sign Up',
  location: 'Homepage'
});
```

**2. Configure Mixpanel as Destination**

In your Segment dashboard:

1. Navigate to **Catalog** > **Destinations**
2. Select **Mixpanel (Actions)**
3. Connect your Segment source
4. Add your Mixpanel project token
5. Enable the destination

**3. Data Mapping**

Segment automatically maps data to Mixpanel:

| Segment Method | Mixpanel Action                        |
| -------------- | -------------------------------------- |
| `track()`      | Import Event                           |
| `identify()`   | Identify User + Set Profile Properties |
| `page()`       | Import "Viewed \[name]" Event          |
| `screen()`     | Import "Viewed \[name]" Event          |
| `group()`      | Identify Group                         |

<Note>
  The Segment `id` property is reserved and maps to `distinct_id` in Mixpanel. Avoid sending events with an `id` event property from Segment.
</Note>

## Tag Management

Deploy and manage Mixpanel tracking through tag management systems.

<CardGroup cols={2}>
  <Card title="Google Tag Manager" icon="google" href="/docs/tracking-methods/integrations/google-tag-manager">
    Deploy Mixpanel via GTM with our official template
  </Card>
</CardGroup>

## E-Commerce & Payments

Track purchases, subscriptions, and payment events automatically.

<CardGroup cols={2}>
  <Card title="Shopify" icon="shopping-cart" href="/docs/tracking-methods/integrations/shopify">
    Track e-commerce events from your Shopify store
  </Card>

  <Card title="Stripe" icon="credit-card" href="/docs/tracking-methods/integrations/stripe">
    Automatically track payment and subscription events
  </Card>

  <Card title="Vendo" icon="shopping-bag" href="/docs/tracking-methods/integrations/vendo">
    Multi-vendor marketplace analytics
  </Card>

  <Card title="CMS & E-Commerce" icon="store" href="/docs/tracking-methods/integrations/cms-ecommerce">
    Integrations with WordPress, WooCommerce, and more
  </Card>
</CardGroup>

## Cloud Storage & Data Warehouses

Import historical data or set up continuous sync from your data infrastructure.

<CardGroup cols={2}>
  <Card title="Amazon S3" icon="aws" href="/docs/tracking-methods/integrations/amazon-s3">
    Import events from S3 buckets
  </Card>

  <Card title="Google Cloud Storage" icon="google" href="/docs/tracking-methods/integrations/google-cloud-storage">
    Import events from GCS buckets
  </Card>

  <Card title="AWS Kafka" icon="stream" href="/docs/tracking-methods/integrations/aws-kafka">
    Stream real-time events from Kafka
  </Card>

  <Card title="Google Pub/Sub" icon="google" href="/docs/tracking-methods/integrations/google-pubsub">
    Real-time event streaming from Pub/Sub
  </Card>
</CardGroup>

## Development Frameworks

Native integrations for popular development frameworks.

<CardGroup cols={2}>
  <Card title="Next.js" icon="react" href="/docs/tracking-methods/integrations/nextjs">
    Server-side and client-side tracking for Next.js apps
  </Card>
</CardGroup>

## AI & LLM Observability

Track AI model usage, performance, and user interactions.

<CardGroup cols={2}>
  <Card title="Langfuse" icon="brain" href="/docs/tracking-methods/integrations/langfuse">
    LLM observability and analytics platform integration
  </Card>
</CardGroup>

## Marketing & Attribution

<CardGroup cols={2}>
  <Card title="Ad Spend" icon="dollar-sign" href="/docs/tracking-methods/integrations/ad-spend">
    Import ad spend data from Facebook, Google, and more
  </Card>

  <Card title="Mobile Attribution" icon="mobile" href="/docs/tracking-methods/integrations/mobile-attribution-tracking">
    Track mobile app install attribution
  </Card>
</CardGroup>

## Product & Feature Management

<CardGroup cols={2}>
  <Card title="LaunchDarkly" icon="flag" href="/docs/tracking-methods/integrations/launchdarkly">
    Connect feature flags with product analytics
  </Card>
</CardGroup>

## Data Collection Platforms

<CardGroup cols={2}>
  <Card title="Snowplow" icon="snowflake" href="/docs/tracking-methods/integrations/snowplow">
    Route Snowplow events to Mixpanel
  </Card>

  <Card title="Google Sheets" icon="table" href="/docs/tracking-methods/integrations/google-sheets">
    Export Mixpanel data to Google Sheets for reporting
  </Card>
</CardGroup>

## Integration Setup Guide

<AccordionGroup>
  <Accordion title="How do integrations work?">
    Mixpanel integrations work in one of three ways:

    1. **Server-to-Server**: Data is sent from the third-party service directly to Mixpanel's servers (most reliable)
    2. **Client-Side**: The integration runs in the user's browser or mobile app
    3. **Import**: Historical data is imported in bulk from cloud storage or data warehouses

    Most integrations use Mixpanel's [Import API](https://developer.mixpanel.com/reference/import-events) to send data.
  </Accordion>

  <Accordion title="Do I need to write code?">
    Most integrations are no-code or low-code:

    * **CDPs (Segment, mParticle)**: No code required - configure in the UI
    * **Tag Managers (GTM)**: Minimal configuration in the UI
    * **E-commerce (Shopify, Stripe)**: Simple app installation
    * **Cloud Storage**: Configuration via Mixpanel UI

    Some integrations may require light code changes to map custom events or properties.
  </Accordion>

  <Accordion title="Can I customize what data is sent?">
    Yes! Most integrations allow you to:

    * **Filter events**: Choose which events to send to Mixpanel
    * **Map properties**: Customize how properties are named
    * **Transform data**: Apply transformations before data reaches Mixpanel
    * **Set conditions**: Use rules to control when data is sent

    Configuration options vary by integration - check the specific integration docs.
  </Accordion>

  <Accordion title="How do I debug integration issues?">
    To troubleshoot integration issues:

    1. **Check Events View**: Open [Events](https://mixpanel.com/report/events) in Mixpanel to see if data is arriving
    2. **Verify Credentials**: Ensure your project token is correct
    3. **Check Integration Logs**: Most platforms provide logs showing what was sent
    4. **Review Mappings**: Verify event and property mappings are configured correctly
    5. **Test with Sample Event**: Send a test event to verify the connection

    See our [debugging guide](/data-ingestion/best-practices#debugging-your-implementation) for more details.
  </Accordion>

  <Accordion title="What about historical data?">
    Many integrations support importing historical data:

    * **CDPs**: Can replay historical events through the integration
    * **Cloud Storage**: Import CSV or JSON files with historical events
    * **Warehouse Connectors**: Query and import historical data from warehouses

    <Warning>
      Events sent to the `/track` endpoint must be within the last 5 days. For older events, use the `/import` endpoint or a warehouse connector.
    </Warning>
  </Accordion>
</AccordionGroup>

## Choosing the Right Integration

<Steps>
  <Step title="Assess Your Current Stack">
    Identify where your data currently lives:

    * Already using a CDP? Start there
    * Using Google Tag Manager? Use our GTM template
    * Have a data warehouse? Use warehouse connectors
  </Step>

  <Step title="Consider Reliability">
    Server-side integrations (CDPs, warehouse connectors) are more reliable than client-side integrations and won't be affected by ad-blockers.
  </Step>

  <Step title="Evaluate Maintenance">
    CDPs and tag managers make it easier to update tracking without code deployments.
  </Step>

  <Step title="Check Feature Support">
    Some integrations may not support all Mixpanel features like Group Analytics or identity merge. Check the integration docs for details.
  </Step>
</Steps>

## Need Help?

Can't find the integration you're looking for? We're constantly adding new integrations and may be able to help:

* [Contact Support](https://mixpanel.com/get-support)
* [Request an Integration](https://mixpanel.com/partners/integrations)
* Use our [HTTP API](/data-ingestion/api-ingestion) to build a custom integration

## Next Steps

<CardGroup cols={2}>
  <Card title="HTTP API" icon="code" href="/data-ingestion/api-ingestion">
    Build custom integrations with our API
  </Card>

  <Card title="Best Practices" icon="lightbulb" href="/data-ingestion/best-practices">
    Learn how to implement tracking correctly
  </Card>
</CardGroup>
