Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Mailchimp 3.1.5 Minor update available for module mailchimp (3.1.5). Release: Commerce Shipping 3.0.5 Minor update available for module commerce_shipping (3.0.5). Release: GoogleTag Manager 2.0.1 Minor update available for module gtm (2.0.1). Usage Milestone: Easy Breadcrumb Module easy_breadcrumb crossed 100,000 active installs. Release: MCP Sentinel 2.17.0 Minor update available for module mcp_sentinel (2.17.0). Release: Commerce ML Exchange 2.0.1 Minor update available for module cmlexchange (2.0.1). Release: Commerce ML Exchange 2.0.0 Major update available for module cmlexchange (2.0.0). Release: SynImport 2.0.0 Major update available for module synimport (2.0.0). Release: Contact ajax 3.0.0 Major update available for module contact_ajax (3.0.0). Module Revived: Contextual Filter from Referer 1.0.2 Module contextual_filter_referer updated after 22 months of inactivity (1.0.2).

Advanced Mautic Integration

Security covered Drupal 10–11
View on drupal.org

Connects a Drupal site to a Mautic instance in both directions: the Mautic tracking script on the pages you choose, with the events and contact data you choose, and the Mautic REST API available to your own code, with an optional synchronization of Drupal users to Mautic contacts.

JavaScript tracking

  • Loading mtc.js from your Mautic instance, through the module's own library rather than an inline script, so it works under a Content Security Policy.
  • Tracking page views, one per page load.
  • Tracking outbound links, a pageview event for external links.
  • Tracking mail and phone links, a pageview event for mailto: and tel: links.
  • Tracking downloads, a pageview event for links to the file extensions you list.
  • Default parameters sent with every event, with tokens: for example the current user's e-mail, to identify anonymous contacts in Mautic. The module takes care of the cache dependencies the tokens bring in.
  • Where the script appears, chosen with the same condition plugins as block placement: pages, content types, roles, languages. Track only the pages that matter.
  • Your own events, through Drupal.mt_send() from any JavaScript on the site.

API connection

The module wraps the Mautic API library, which Composer installs with it: you configure the endpoint and the basic authentication credentials once, and the advanced_mautic_integration.api service hands out authenticated API objects to your own code.

$api_wrapper = \Drupal::service('advanced_mautic_integration.api');
$contacts = $api_wrapper->getApi('contacts');
$contacts->create([
  'email' => '[email protected]',
  'firstname' => 'Someone',
]);

Built on that, the module can push Drupal users to Mautic whenever they are created or updated, with a field mapping of your choice.

Requirements

Drupal 10.3 or later, or Drupal 11, and the Token module. The README covers every setting.

Related modules

How does it relate to Google Tag Manager?

You can get similar tracking through Google Tag Manager, but not out of the box. This module is the simple path that just works, and it does not need a tag manager on the page.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2026
Latest release
6 hours ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Sep 10, 2026
1.0.0 Stable 10–11 Sep 10, 2026