Mixpanel

Connect Mixpanel with Webflow to track specific user interactions that page view analytics miss entirely.

Install app
View website
View lesson
A record settings
CNAME record settings
Mixpanel

How to integrate Mixpanel with Webflow

Unlike traditional analytics focused on page views, Mixpanel captures specific user actions to understand how people actually use products.

Webflow users can integrate Mixpanel through three primary methods. Add the JavaScript SDK through custom code in the head and body tags for event tracking on all Webflow plans. Enterprise customers can use the native integration with Webflow Optimize to automatically track A/B test variation views. For advanced scenarios requiring bulk event uploads or custom data pipelines, developers can use the Mixpanel Import API to process data server-side.

Use the JavaScript SDK

The Mixpanel JavaScript SDK is installed via the Webflow custom code sections. This client-side implementation works on all Webflow plans and provides real-time event tracking without backend development. Implementation takes 5-10 minutes; the SDK loads asynchronously without affecting site performance.

The core capabilities include the following:

  • Automatic page view tracking with track_pageview: true  
  • Custom event tracking using mixpanel.track() for clicks, forms, and interactions  
  • User identification through mixpanel.identify() to link anonymous activity with known users  
  • Profile properties via mixpanel.people.set() for user attributes  
  • UTM parameter capture through super properties or custom code

Setup: Access Project Settings > Custom Code > Head Code, paste the tracking snippet with your project token, and publish. Custom code does not execute in preview mode — always test on your published site.

The SDK supports localStorage persistence and debug mode for development verification.

Considerations: Ad blockers cause 20-40% data loss. For complete data collection, implement server-side proxy routing. For GDPR/CCPA compliance, configure opt_out_tracking_by_default: true and call mixpanel.opt_in_tracking() only after consent.

Native integration for Optimize experiments

Webflow Enterprise customers access native Mixpanel integration through Insights > Integrations for automatic A/B test tracking. This requires the base SDK already installed via custom code.

  • Setup: Navigate to Webflow dashboard > Insights > Integrations > Set up Mixpanel, configure the event name (default: Optimization Viewed), and save.  
  • Tracks: Variation view events, experiment metadata (variation names/IDs), automatic event formatting via Mixpanel Track API.  
  • Limitations: Does not track conversions. Measuring experiment success requires custom JavaScript for goal completions. The native integration extends rather than replaces SDK functionality.

This integration only tracks variation view events, NOT conversion events. Full analytics require a custom JavaScript implementation.

Build with the Mixpanel API

The Mixpanel Import Events API provides server-side tracking with Project Secret authentication, bypassing ad blockers entirely while securely processing sensitive data. Both approaches require middleware through custom server code.  

The key endpoints include the following:

  • POST /track — real-time individual events  
  • POST /import — bulk uploads (up to 2000 events/request)  
  • POST /engage — server-side user properties  
  • Identity API — link user IDs across systems

Use project tokens (client-safe) for tracking endpoints; project secrets for server-side operations only.

Form submission tracking through webhooks

Webflow forms can connect to Mixpanel via custom JavaScript in custom code or through webhooks.

Here are two approaches for this:

  • Custom JavaScript event listeners calling mixpanel.track() with form data  
  • Webflow webhooks forwarding to Make.com or Zapier, which send events to Mixpanel

The server-side pattern ensures tracking even when JavaScript fails or ad blockers are in place.

CMS content tracking

The Webflow CMS API provides read/write access to collection items. Poll the API for new items and send content creation events to Mixpanel to correlate updates with engagement metrics. You can also add a tracking code directly to CMS items using custom code.

Endpoints: GET /collections/{collection_id}/items (detect changes), POST /collections/{collection_id}/items (add data)

Requires scheduled polling since Webflow lacks real-time CMS webhooks. Maintain last-sync timestamps to avoid duplicate processing.

What you can build

Integrating Mixpanel with Webflow enables behavioral analytics that measure specific user actions rather than just page views — helping you optimize content performance, track e-commerce conversions, measure A/B test impact, and calculate customer lifetime value.

  • Content engagement optimization: Track scroll depth, time on page, and interaction patterns to identify high-converting content  
  • E-commerce behavior analysis: Monitor product views, add-to-cart actions, and checkout progression to measure abandonment rates  
  • A/B test impact measurement: Combine native Optimize variation tracking with custom conversion events for complete experiment analysis (Enterprise)  
  • Revenue tracking: Use mixpanel.people.track_charge() with mixpanel.identify() to calculate customer lifetime value

Frequently asked questions

  • Set debug: true in SDK configuration to log tracking calls to browser console. Use Mixpanel's Live View to watch events arrive in real-time. Check Network tab for successful POST requests to api.mixpanel.com (or regional endpoints) with 200 status codes. Always test on the published site, not the preview.

  • There are no automatic integrations. Add custom JavaScript event listeners to capture submissions and call mixpanel.track(), or use webhooks to forward data through Make.com/Zapier to Mixpanel's Track Event API.

  • Add the Mixpanel SDK snippet in Project Settings > Custom Code > Head Code for site-wide tracking. For page-specific tracking, use a custom code embed element on individual pages.

Mixpanel
Mixpanel
Joined in

Description

Mixpanel is a product analytics platform that tracks behavioral events and user interactions across web and mobile applications. It provides funnel analysis, retention tracking, user segmentation, and real-time dashboards.

Install app

This integration page is provided for informational and convenience purposes only.


Other Analytics and targeting tools integrations

Other Analytics and targeting tools integrations

PixelFlow

PixelFlow

Connect PixelFlow to Webflow for sending conversion data directly through PixelFlow's servers to Meta.

Analytics and targeting tools
Learn more
Schema Flow

Schema Flow

Connect Schema Flow with Webflow to add structured data markup across your site using a no-code interface with AI suggestions and CMS collection mapping.

Analytics and targeting tools
Learn more
PromoteKit

PromoteKit

Connect PromoteKit, a Stripe-native affiliate tracking platform, with Webflow to run an affiliate program with commission tracking through Stripe's payment lifecycle.

Analytics and targeting tools
Learn more
Semflow

Semflow

Connect Semflow with Webflow to run AI-assisted SEO audits, keyword research, rank tracking, schema markup, and metadata generation directly inside the Webflow Designer.

Analytics and targeting tools
Learn more
Cometly

Cometly

Connect Cometly, a marketing attribution platform, with Webflow to track which ads drive form submissions and send conversion data back to ad platforms.

Analytics and targeting tools
Learn more
Cometly

Cometly

Connect Cometly, a marketing attribution platform, with Webflow to track which ads drive form submissions and send conversion data back to ad platforms.

Analytics and targeting tools
Learn more
Website Speedy

Website Speedy

Connect Website Speedy, a site speed optimization tool, with Webflow to improve Core Web Vitals scores and page load times through automated speed optimizations.

Analytics and targeting tools
Learn more
Optibase

Optibase

Connect Optibase with Webflow to run A/B tests without writing code.

Analytics and targeting tools
Learn more
Optily

Optily

Connect Optily with Webflow to automatically compress CMS images and convert them to WebP format for faster page loads.

Analytics and targeting tools
Learn more

Related integrations

No items found.

Get started for free

Try Webflow for as long as you like with our free Starter plan. Purchase a paid Site plan to publish, host, and unlock additional features.

Get started — it’s free