Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Mixpanel

Security covered Under active development 44 sites

This module integrates your Drupal site with Mixpanel, a real-time analytics service. It allows you to track specific user actions and events, providing insights into user behavior and site usability. You can send custom events via PHP or JavaScript, or use the Rules module for a no-code approach.

Provides integration with the Mixpanel real-time analytics service.

Unlike Google Analytics, Mixpanel isn't for tracking aggregate data about page views (though you can do that with it if you wish). Instead, you send specific events to Mixpanel when users perform certain actions. This allows you to examine how users interact with your site in real-time and connects all events to the individual user who performed them (so you can contact them).

Mixpanel is great for finding ways to improve usability, studying how existing features are actually used and is especially good for startups who are trying to refine their MVP (Minimum Viable Product).

2.x

Version 2 is effectively a "Mixpanel API" module for Drupal 10/11. At the moment it is just a configuration wrapper (with UI) for the mixpanel PHP library which can be injected as a service wherever it is needed. The project token is also sent to the frontend in drupalSettings.

If you're looking for something with more features, maybe leave a comment on #3444350: Integrate with ECA? or open a new issue ;)

Drupal 7

Installing

  1. Install this module in the normal Drupal way
  2. Sign-up for a free account on Mixpanel.com
  3. Obtain your Mixpanel token
  4. Go to Configuration -> Web services -> Mixpanel
  5. Copy your Mixpanel token into the appropriate field and click "Save configuration"

See the installation guide for a complete walk-through.

Sending events to Mixpanel

The quickest way to start sending events to Mixpanel, is to simply enable the Mixpanel defaults module. It will send events for:

  • Joining and leaving a group (in Organic groups)
  • Creating, deleting, updating a user
  • User login and logout
  • Creating, updating, and deleting a node
  • Creating a comment

However, the only way to get really powerful insights into how users are using your application is by sending your own custom events!

You can do this in one of two ways:

  1. Writing a custom module and calling mixpanel_track() in PHP or mixpanel.track() in Javascript, or
  2. Using Rules. This is the best option if you want to use Mixpanel but you aren't a coder and can't write your own Drupal module!

(Click one of the above links to see the full documentation on how to do that!)

Drupal 10–11

Ask your assistant about Mixpanel

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
May 2024
Latest release
3 months ago
Releases (12 mo)
1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.1 Stable 10–11 Jun 21, 2026
2.0.0 Stable 10–11 May 24, 2025
2.0.0-beta1 Pre-release 10–11 May 28, 2024