Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

mixpanel

51 sites Security covered
View on drupal.org

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!)

Activity

Total releases
1
First release
May 2025
Latest release
10 months ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.0.0 Stable May 24, 2025