How Mautic tracking on Drupal sites works and which method applies
A marketing or web team that runs Drupal and Mautic and wants visitor tracking on the site should use the Drupal Mautic Integration module, installed with Composer as drupal/mautic. That module is the supported method for adding the Mautic tracking system to a Drupal site. It is a contributed project on Drupal.org, and its code is licensed under GPL-2.0-or-later, the same license family as Drupal core. Because it is contributed code, it is maintained by its own project community rather than by the Drupal core team, so the team should check its release status before committing to it.
The module and the Mautic instance are two separate systems. The module runs inside Drupal and sends tracking data to a Mautic installation that your organization hosts itself, so the Mautic server still needs its own PHP, database, web server, domain and cron setup. Before you plan the work, confirm which Drupal major version the site runs. The module's 8.x-1.13 release, published 23 September 2022, lists Drupal 8.8, 9 and 10 as supported, and Drupal 10 reaches end of life on December 9, 2026, so a Drupal 11 site will need a version-by-version check of the module's compatibility before installation. Also confirm that the Mautic version on your server is on a supported release line, because tracking code and the Mautic side can drift apart after upgrades.
The decision that matters most is whether this module fits the site's Drupal version and Mautic version, or whether the team should add the tracking script through the Mautic documentation directly. Ask the Drupal developer to record the exact module version, the Drupal core version and the Mautic version in the project plan, and to test tracking on a staging copy before it reaches production. Note what the module does not cover: this page does not confirm which forms, contact fields or consent behaviors the module supports, so verify those against the module documentation on the Drupal.org Mautic Integration project page before the build starts.
What you need before installing the Drupal Mautic module
The Drupal Mautic Integration module connects two systems that each have their own version lifecycle, so the Drupal core line, the PHP runtime and the Mautic release all have to agree before any code is installed. The cards below cover the checks to make in that order, starting with the Drupal site itself.
Drupal core version and lifecycle
Confirm which Drupal major version the site runs and when it leaves support. Drupal 10 reaches end of life on December 9, 2026, so a site on Drupal 10 that stays on the module past that date will need a planned upgrade to Drupal 11 or later. Drupal 12 is scheduled for the week of December 7, 2026. Ask the team who owns the upgrade calendar before tracking code is added.
Core release schedulePHP runtime for each Drupal version
Each Drupal major version sets its own PHP floor: Drupal 10 requires PHP 8.1 or later, Drupal 11 requires PHP 8.3 or later and Drupal 12 requires PHP 8.5 or later. No supported Drupal version runs on PHP 7. Check the PHP version on every web node, including staging and any build agents that run Composer, because a site that installs cleanly on a developer laptop can still fail on an older production server.
PHP requirementsModule release and compatibility
The current Drupal Mautic Integration release is 8.x-1.13, published 23 September 2022, and it lists Drupal 8.8, 9 and 10 as supported. It does not list Drupal 11 in the facts gathered for this page, so confirm compatibility with your exact Drupal version on the project page before installing and before every core upgrade. If the release does not cover your version, plan the tracking work as a separate build rather than assuming the module will load.
Mautic module project pageSupported Mautic release line
The module sends visitor data to a Mautic instance, so that instance needs its own supported release. Mautic 7.2 receives active and security support until 30 September 2026, and Mautic 7.3 is planned as the long-term support release with security support through 31 December 2027. Confirm which Mautic version your team runs, the PHP version it needs, and whether the tracking endpoint is reachable from the Drupal site's public domain.
Mautic releasesDrupal major version migration status
Drupal 6 and 7 sites cannot be updated in place to Drupal 10 or later. They are rebuilt as a new site with the core Migrate modules or Drush, and themes are rebuilt because they do not migrate. Drupal 7 security support ended on January 5, 2025, so a legacy site needs either a migration plan or a paid extended security provider. Do not install the tracking module on a legacy site as a stopgap, because the work will be repeated during migration.
Upgrade from Drupal 6 or 7Composer and the project build
Drupal and its contributed modules are normally installed and updated with Composer, so the team needs a build process that pins the module through composer require 'drupal/mautic:^1.13' and commits the resulting lock file. Decide who runs Composer updates, where the build happens and how a module update is tested against the Drupal core version in use before it reaches production.
How to install and configure the module in sequence
This sequence takes a Drupal site from a version check to a verified Mautic tracking setup, with each step ending in a check that confirms the module and tracking work before moving on. It is written for the team that will own the site after the work is done.
Confirm Drupal and PHP versions
Check the Drupal core version and PHP version on the site before installing anything. The Mautic Integration module's 8.x-1.13 release, published 23 September 2022, works with Drupal 8.8, 9 and 10, so a site on Drupal 11 or a later major version needs to confirm the module's current compatibility on its Drupal.org project page before going further. Drupal 10 requires PHP 8.1 or later and Drupal 11 requires PHP 8.3 or later, according to the Drupal.org PHP requirements page. Drupal 6 and 7 sites cannot be updated in place to a supported version and need a migration project first. Done when the team has written down the Drupal version, the PHP version and a compatibility decision for the module.
Back up the site before changes
Take a full backup of the database and the codebase, including the files directory and the Composer files, and confirm the backup can be restored in a separate environment. The backup is the rollback point if the module install or a later Composer update breaks the site. Whoever runs the change should record where the backup is stored and who can restore it. Done when a restore test on a non-production copy has succeeded and the backup location is documented.
Install the module with Composer
From the Drupal project root, run composer require 'drupal/mautic:^1.13' so that Composer records the module and its dependencies in composer.json and composer.lock. Commit both files to version control so the install is reproducible across environments. Confirm the resulting package version in the Composer output or with composer show drupal/mautic. Done when the package appears in the lock file at the expected 1.x version and the change is committed.
Enable the module in Drupal
Enable the Mautic Integration module from the Extend page in the Drupal admin interface, or with Drush if the team manages the site from the command line. Clear the caches after enabling so that the new settings pages and tracking hooks load. Confirm that the module shows as enabled on the Extend page and that the Mautic configuration page is reachable from the admin menu. Done when the module status reads enabled and the configuration form loads without errors.
Enter the Mautic base URL and tracking settings
On the module's configuration page, enter the base URL of the Mautic instance and the tracking settings the module asks for. Use the exact address of the Mautic installation, including the scheme, and confirm with the Mautic administrator which tracking options are enabled on that instance. Save the form and check the status message. Done when the configuration saves and the base URL matches the Mautic instance the team intends to use.
Place the tracking script on the intended pages
Confirm which pages should carry the tracking script, then configure the module's page visibility or the theme region that outputs it so the script appears only where the team has approved. Check the rendered page source for the Mautic tracking script on a sample of public pages and confirm it is absent from pages that should be excluded, such as administrative routes. Review the page list with the marketing team, since consent rules for tracking depend on where it runs. Done when the script appears on the approved pages in the rendered HTML and does not appear on excluded pages.
Verify visits appear in Mautic
Open an approved page in a private browser window that has not previously accepted tracking, then open the Mautic instance and search for the visit as a contact or page hit. Confirm that the visit is attributed to the expected page and that the contact record shows the page activity. Repeat the test on a second page and on a second device if the team uses form submissions or consent banners. Record the test date, the URL tested and the Mautic record found. Done when a test visit is recorded in Mautic and the team has written down how to repeat the check.
What the module covers and what it leaves to your team
The Drupal Mautic Integration module adds the Mautic tracking system to a Drupal site, so visits to the site can be recorded against your Mautic instance. It installs with Composer, and the Drupal.org Mautic Integration module page lists the 8.x-1.13 release as the one to use for this purpose. Treat the module as the tracking layer only and verify its behavior on a staging copy of your site.
- Tracking on the site: the module adds the Mautic tracking system to the Drupal site so page visits can be recorded.
- Composer installation: the install command is
composer require 'drupal/mautic:^1.13'run inside your Drupal project. - Stated Drupal versions: the 8.x-1.13 release names Drupal 8.8, 9 and 10 as the versions it works with.
- Release date: 8.x-1.13 was published on 23 September 2022, so its age matters when you plan a newer Drupal version.
- Licensing: Drupal.org's licensing terms place contributed files that derive from Drupal under GPL-2.0-or-later.
Confirm the tracking behavior on the exact Drupal version you run before any change reaches production.
Tracking a visit is only one step in a marketing setup. Forms, dynamic content, consent banners, campaign logic, CRM sync and single sign-on are separate pieces of work that the module does not establish on its own. Each one needs a named owner, a written design and its own verification before launch.
- Forms: deciding which fields are captured, how they map to Mautic contact fields and what a submission triggers.
- Dynamic content and personalization: any page that changes by visitor or contact data must be designed and tested on both the Drupal and Mautic sides.
- Consent banners and preferences: the banner, cookie categories and the point where tracking starts must be agreed with your privacy team before the script runs.
- Campaign logic and segments: what happens after a visit, including segments, campaigns, scoring and triggers, is configured in Mautic and needs its own design.
- CRM sync and single sign-on: pushing contacts to a CRM and signing users in through an identity provider are separate integrations. Drupal's contributed SAML Authentication and OpenID Connect modules are options to evaluate separately.
Ask for each excluded area to appear as a named deliverable in the written scope, with its own test cases.
The module's project page and Mautic's own documentation decide compatibility and expected behavior, so the team should check them before installation. The release history on the project page determines which Drupal versions the module has been tested against. Record each answer in the scope document.
- Drupal 11 support: the 8.x-1.13 release names Drupal 8.8, 9 and 10. Confirm on the project page whether a later release supports Drupal 11 before installing it on that version.
- Drupal lifecycle dates: Drupal 10 reaches end of life on December 9, 2026, and Drupal 12 is scheduled for the week of December 7, 2026. Plan the Drupal and module upgrades together.
- PHP requirements: Drupal 10 requires PHP 8.1 or later and Drupal 11 requires PHP 8.3 or later. Confirm the PHP version the module itself needs.
- Mautic release line: Mautic 7.2 receives security support until 30 September 2026, and 7.3 is planned as the long-term support release. Check the tracking setup against the line you run on the Mautic releases page.
- Tracking configuration: confirm the Mautic base URL and tracking script settings against your instance's domain in the module settings.
Retest tracking after each Drupal or Mautic minor upgrade.
Release status and keeping the module current
Before you choose a version of the Mautic Integration module, open its project page on Drupal.org and read the release list yourself. The supported facts name 8.x-1.13, published 23 September 2022, as the release that works with Drupal 8.8, 9 and 10. That date is almost three years old at the time of writing, so treat it as the baseline you verified, not as proof of currency. Confirm whether a newer 8.x-1 or later release exists, check which Drupal core versions it declares, and check its issue queue for open security or compatibility reports. Record the version you install in your change log, because the composer require 'drupal/mautic:^1.13' constraint will accept later 1.x releases and you need to know which one actually landed.
Plan the module's upgrades alongside Drupal core, not separately. Drupal's core release schedule publishes bugfix releases on the first Wednesday of each month and security releases on the third Wednesday, and new major versions typically arrive about every three years. Drupal 11 is the current major version, Drupal 12 is scheduled for the week of December 7, 2026, and Drupal 10 reaches end of life on December 9, 2026. A module release that declares support for your current core line may stop declaring support once you move to the next major version, so check the compatibility section before each core upgrade. Drupal 10 also requires PHP 8.1 or later, and Drupal 11 requires PHP 8.3 or later, so a core move can force a PHP change that affects the Mautic server as well.
Keep the Drupal and Mautic upgrade calendars in one plan. Mautic publishes monthly patch releases, quarterly minor releases and major releases every two years, and its supported lines have different end dates, including 30 September 2026 for Mautic 6.0 security support and 31 December 2027 for Mautic 7.3 as the planned long-term support release. Each tracking change depends on the Mautic tracking script and API endpoints staying compatible with the module, so test the Drupal site against a staging copy of both the Drupal and Mautic upgrades before you schedule them. Ask your implementation partner or internal owner to name who watches the module's release status, who approves each upgrade window, and what the rollback path is if a tracking change breaks.
Which Drupal and Mautic settings must line up
This table compares the Drupal, PHP, Mautic and tracking settings that have to agree before the Mautic Integration module sends visits from Drupal pages. Read each row as a check to run in the staging site before go-live. The main takeaway is that the module release, Drupal core, PHP runtime and Mautic release line are separate version decisions, and a mismatch in any one of them can stop tracking without an obvious error.
| Setting | Where it lives | Expected value or check | Failure if wrong |
|---|---|---|---|
| Drupal core version | Drupal codebase and Composer constraints | Drupal 8.8, 9 or 10 per the 1.13 release listing; confirm Drupal 11 support on the project page | Composer conflicts during install, or an unsupported pairing with no vendor testing |
| Module version | composer.json, Composer constraint drupal/mautic | Constraint ^1.13 installs the 8.x-1.13 release, published 23 September 2022 | Older module releases missing fixes, or a constraint that blocks the Drupal core update |
| PHP version | Web server PHP runtime and Composer platform settings | Drupal 10 needs PHP 8.1 or later; Drupal 11 needs PHP 8.3 or later | Drupal fails at boot, or Composer refuses to resolve packages |
| Mautic release line | Mautic instance version and PHP runtime on its own host | Mautic 7.0 and later need PHP 8.2 to 8.5; confirm the release is in active or security support | Tracking runs on a release that no longer receives security fixes |
| Mautic base URL | Mautic site URL setting and Drupal module tracking configuration | Same scheme and host that visitors use, served over HTTPS | Script loads from the wrong host, so visits are not recorded |
| Tracking script placement | Drupal theme or module settings for page header or footer | One tracking script on each public page, placed where the module setting says | Duplicate hits inflate visit counts, or pages without the script leave no record |
| Visitor data sent | Drupal page context and form submissions passed to Mautic | Only the fields your consent basis and privacy notice cover; confirm the list in the module docs | Personal data is collected before consent or beyond the stated purpose |
| Page caching and CDN | Drupal cache settings, reverse proxy and CDN rules | Tracking script loads on cached pages without caching visitor-specific output | Visits are undercounted, or one visitor identity is served to another |
| Mautic cron jobs | Mautic server scheduler | Cron runs staggered jobs for segment and campaign updates as the Mautic docs describe | Tracked visits arrive but segments and campaigns do not update |
Security settings for Drupal tracking with Mautic
A security or privacy reviewer will look at the Drupal site, the Mautic instance and the tracking script as one chain. Each card below covers one link in that chain, from patch levels and runtime versions to consent decisions and who can change module settings.
Keep Drupal core and modules supported
Confirm the site runs a Drupal core release that still receives security coverage, and that the Mautic Integration module and other contributed modules are on releases maintained for that core. Subscribe the operations owner to advisories from the Drupal Security Team and record who applies each patch. Ask for a dated patch log before go-live, so a reviewer can see how quickly advisories were handled.
Drupal Security TeamCheck PHP and database versions
The Drupal core version sets the minimum PHP version, and the Mautic release line sets its own PHP and database floor. Compare both against the Drupal PHP requirements and the Mautic requirements before choosing a runtime, and confirm the database engine and version are still under vendor support. Unsupported PHP is a common reason a patched site still carries known weaknesses.
- Drupal 10 minimum
- PHP 8.1
Align the tracking script with consent
The Mautic tracking script sets visitor identification and runs on every page where the module is enabled. Decide with the privacy and legal owners whether it loads before or after consent, which pages it covers and how opt-outs are honored. Document the decision once and reuse it in the Mautic compliance work, so the Drupal configuration and the Mautic preference settings say the same thing.
Restrict admin access to module settings
Limit the Drupal permissions that can open the Mautic module configuration, since the base URL and tracking settings control where visitor data goes. Assign these permissions to a named role rather than to general site editors, and review that role on each staff change. Confirm that Mautic API credentials are stored outside exported configuration and are not visible to content editors.
Confirm Mautic hosting location
Confirm in writing which infrastructure runs the Mautic instance that receives the tracking data, including the cloud account, data center or private network and the region. The Drupal site and the Mautic instance can sit in different places, so the reviewer needs both on record. Mautic is not intended for shared hosting, so ask for the server type and who holds administrator access to it.
Review the SSO and login path
Mautic supports basic authentication for users and can use a SAML identity provider, while the Drupal side can act as a SAML service provider through a contributed module. Decide which login path staff use for each system, then check that admin accounts on both sides are removed when people leave. Record the identity provider attributes each system expects so account mapping can be tested.
Why Mautic tracking on Drupal does not record visits
This table lists the failures that most often stop the Mautic tracking script from recording visits on a Drupal site, with the likely cause and a check for each. Work through the rows in order, since the first two checks rule out installation and version problems before you inspect the page output.
| Symptom | Likely cause | Check or fix |
|---|---|---|
| No tracking script in page source | Module installed outside Composer, so its files or dependencies are incomplete | Confirm the module was added with composer require 'drupal/mautic:^1.13' and that the project's composer.json lists it |
| Module errors after a Drupal core upgrade | Drupal version outside the range the module supports (8.x-1.13 lists Drupal 8.8, 9 and 10) | Check the module's compatibility on its Drupal.org page; if you run Drupal 11, confirm a compatible release exists before relying on it |
| Tracking script loads but no contacts appear | Mautic base URL in the module settings differs from the live Mautic domain | Compare the base URL field with the domain Mautic actually serves, including subdomain and trailing slash |
| Script requests blocked in browser console | HTTP base URL on an HTTPS Drupal site, causing mixed content | Set the Mautic base URL to HTTPS and confirm the Mautic certificate covers the same hostname |
| Script missing on some pages only | Theme template omits page attachments, so the module's attached library never renders | Confirm the theme prints the page bottom or head regions and that the tracking library is attached on the affected routes |
| Old script appears after a settings change | Page or reverse proxy cache still serves HTML from before the change | Clear Drupal caches and any CDN or proxy cache, then reload in a private window and inspect the source again |
| Visits recorded for anonymous users only | Role or user permissions exclude authenticated users from tracking | Review the module's role settings and test as each role that should be tracked |
| Tracking stops after a consent banner is added | Consent or cookie settings suppress the script until the visitor accepts | Test with consent granted and denied, and confirm the consent tool loads before the Mautic script |
| Visits show but are not linked to contacts | Visitors have not submitted a Mautic form, so no identity exists yet | Expected behavior for anonymous visits; confirm identification with a tracked form submission in a test environment |
Questions teams ask before installing Mautic tracking on Drupal
Is the Mautic Integration module for Drupal free to use?
Yes, the module and Drupal itself are licensed under GPL-2.0-or-later, and there is no paid edition of Drupal core. The cost you actually pay comes from the infrastructure that runs Mautic and Drupal, the staff time to configure and test tracking, and any ongoing maintenance. Hosting for the Mautic side must be a VPS or dedicated server, since the Mautic project advises against shared hosting. Ask any partner for a quote that separates one-time setup from recurring hosting, upgrades and support so you can compare it with your own internal effort.
How long does Mautic tracking setup on Drupal take?
Duration depends on the work involved, not on the module install itself, which is a short Composer step. The main drivers are the number of pages and templates that need the tracking script, how complex the Drupal theme is, how consent is handled for cookies and tracking, which Drupal version the site runs, and whether forms, landing pages or CRM sync are in scope. Ask for a written scope that lists each of these items and the test plan, because the schedule follows from that list rather than from a fixed estimate.
Can an internal team install Mautic tracking on Drupal without a partner?
Yes, a team with Drupal and Composer experience can install the module and add the tracking code. The harder parts are usually outside the module: confirming consent behavior with your legal or privacy team, checking that tracking fires on every relevant page, verifying that contact data reaches Mautic correctly, and keeping both platforms on supported releases. If your team lacks time or experience with Mautic cron jobs and hosting, you can split the work, with an internal owner for the Drupal side and an outside partner for the setup and testing.
What access and information does a Drupal tracking project need from us?
Expect to provide administrative access to the Drupal site, including the ability to install modules through Composer and edit the theme or templates where the tracking script goes. You will also need Mautic admin access, the hosting details for both systems (web server, PHP version, database, and any proxy or domain settings), and staging copies of both sites for testing. A test plan should be agreed in advance, covering page coverage, form submissions, consent choices and what should happen when a visitor declines tracking.
Can Drupal 6 or Drupal 7 sites use the Mautic Integration module directly?
No. The module is published for Drupal 8.x through the release that works with Drupal 8.8, 9 and 10, so Drupal 6 and 7 sites must be migrated first. Drupal.org documents that these sites cannot simply be updated to Drupal 10 or later. They are moved into a new site with the core Migrate, Migrate Drupal and Migrate Drupal UI modules or with Drush, and themes must be rebuilt because they cannot be migrated. Drupal 7 security support ended on January 5, 2025, so the migration is also a security priority.
Which Drupal and PHP versions should the tracking setup target?
Choose a Drupal version that is still receiving security support and check the PHP requirement before installing. Drupal 10 requires PHP 8.1 or later, Drupal 11 requires PHP 8.3 or later, and Drupal 12 requires PHP 8.5 or later. Drupal 11 is the current major version, and Drupal 10 reaches end of life on December 9, 2026, so a new build should be planned around the upgrade path. Confirm the module release supports the exact Drupal version you choose, because the published release lists Drupal 8.8, 9 and 10.
What does the Mautic tracking module not cover?
The module adds the Mautic tracking system to a Drupal site, so it does not design your contact model, build segments or campaigns, set up email delivery, or manage consent policy. Those are separate Mautic and legal decisions. The module also does not replace the cron jobs Mautic needs for segment and campaign updates, or the broadcasts command and messenger consumer used for queued email. Confirm with the project page exactly which features are included before you assume anything beyond tracking.
How a Drupal page visit reaches Mautic
The visit starts in a visitor's browser when a Drupal page loads the Mautic tracking script that the Drupal Mautic Integration module adds to the site. The script sends the hit over HTTPS to the Mautic instance, which records the visit against a contact. The Drupal site and the Mautic instance both sit inside your own infrastructure, and the boundary between them is where you should check which hosts, paths and HTTPS settings the script can reach.
A Drupal page visit travels from the browser to the Mautic contact record across a trust boundary.
How DeployOpen scopes and delivers Drupal tracking with Mautic
DeployOpen plans, installs, configures and verifies the Drupal Mautic Integration module inside your own infrastructure, and the work is normally a fixed-scope engagement with scope, deliverables and timelines agreed in writing before any work starts. The written scope should name the Drupal site or sites, the Drupal core version in use, the Mautic instance the tracking script will report to, the pages and forms that must be tracked, the environments involved (development, staging and production) and the acceptance checks that close the work. Ask for the scope to state which of these are included and which are left to your team, so the quote reflects the real work rather than an assumed one.
The quote follows from that written scope. DeployOpen does not publish a price list, so the components that move cost are the ones you should ask about: the number of Drupal sites, whether a Composer-managed codebase already exists, how many pages and forms need tracking, whether consent banners or tag management must change, and how much testing across environments is required. Ask whether the quote covers one-time setup only or also a recurring element. Ongoing support, Drupal and module upgrades, and continuous checks are available as retainers, and those are priced separately from the initial build. Confirm with the vendor which module versions and Drupal releases the retainer covers before you sign.
Before signing, check that the scope matches your own release calendar. Drupal core bugfix and security releases follow a published schedule, so an upgrade plan should be agreed alongside the tracking build rather than after it. Confirm which party owns Drupal core and module updates, who receives security notices and who approves changes to production. DeployOpen does not hold certifications or partner status for Drupal or Mautic, so the questions to put to any delivery partner, including DeployOpen, are about the written deliverables, the acceptance tests and who keeps the running system afterward.

