Mixpanel
Connect Mixpanel with Webflow to track specific user interactions that page view analytics miss entirely.
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 eventsPOST /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()withmixpanel.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.
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.
This integration page is provided for informational and convenience purposes only.

Microsoft Clarity
Connect Microsoft Clarity with Webflow to record every user session, visualize clicks and scrolls with heatmaps, and detect rage clicks and UX friction.

Humblytics
Connect Humblytics with Webflow to track conversions and user behavior using cookie-free, GDPR-compliant analytics.

Adblock Detector
Connecting Adblock Detector with Webflow lets you identify visitors using ad blockers, measure adoption rates, and display alternative content.

LinkerFlow
Connect LinkerFlow with Webflow to receive AI-generated internal linking recommendations and automatically implement approved links in your CMS collections.

Flowtrix Schema
Connect Flowtrix Schema with Webflow to add structured data markup to your site through visual forms without writing JSON-LD code manually.

Void Analytics
Connect Void Analytics, a privacy-focused analytics tool, with Webflow to track page views and visitor behavior without cookies or personal data collection.

Census
Connect Census, a reverse ETL platform, with Webflow to sync data from your cloud warehouse directly to CMS collections and automate content updates.

Google Ads
Connect Google Ads with Webflow to track conversions and manage Performance Max campaigns.

Snowflake
Connect your Snowflake data warehouse to Webflow using REST APIs to sync analytics data, populate dynamic content, and build data-driven web experiences.


