{"id":72952,"date":"2025-07-10T16:50:54","date_gmt":"2025-07-10T11:20:54","guid":{"rendered":"https:\/\/www.tothenew.com\/blog\/?p=72952"},"modified":"2025-07-18T01:18:32","modified_gmt":"2025-07-17T19:48:32","slug":"mautic-integration-with-drupal","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/mautic-integration-with-drupal\/","title":{"rendered":"Mautic integration with Drupal"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>Mautic is an open-source marketing automation platform designed to help businesses and organizations automate various marketing tasks and streamline their marketing efforts. Marketing automation offers an exciting opportunity for greater efficiency, cost reduction, and an enhanced customer experience.<\/p>\n<p>The purpose of this blog is to guide you through the process of integrating Mautic with Drupal to enable seamless marketing automation and user tracking.<\/p>\n<h2>Step 1: Install Mautic on the local server<\/h2>\n<p>You can install Mautic using several methods:<\/p>\n<ul>\n<li>Using <a href=\"https:\/\/docs.mautic.org\/en\/5.x\/getting_started\/how_to_install_mautic.html#using-the-production-package\">production package<\/a><\/li>\n<li>Cloning from <a href=\"https:\/\/docs.mautic.org\/en\/5.x\/getting_started\/how_to_install_mautic.html#installing-from-github\">GitHub<\/a><\/li>\n<li>Install with <a href=\"https:\/\/docs.mautic.org\/en\/5.x\/getting_started\/how_to_install_mautic.html#installing-with-composer\">composer<\/a><\/li>\n<\/ul>\n<p>After downloading a desired package, upload the package zip file to your web server, and unzip it in the directory where you plan to host the Mautic instance. Your web server must have the permissions to access the unzipped files. Before installing, Mautic checks the server environment. If the environment checks are successful, click on Next Step to begin the installation process. Now, enter the database information in the screen below:<\/p>\n<div id=\"attachment_73179\" style=\"width: 886px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-73179\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-73179\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/07\/mautic-database-configuration.webp\" alt=\"Mautic Installation Screen1\" width=\"876\" height=\"953\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/07\/mautic-database-configuration.webp 604w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/mautic-database-configuration-276x300.webp 276w\" sizes=\"(max-width: 876px) 100vw, 876px\" \/><p id=\"caption-attachment-73179\" class=\"wp-caption-text\">Mautic Installation Screen1<\/p><\/div>\n<p>After following all steps, Mautic will be installed successfully on the local server.<\/p>\n<p>Now, the following steps are required to integrate Mautic with Drupal:<\/p>\n<h2>Step 1: Use Composer to download the module:<\/h2>\n<pre><code>composer require drupal\/mautic<\/code><\/pre>\n<p><strong>Step 2:<\/strong> After installing, you need to configure Mautic with Drupal (\/admin\/config\/system\/mautic)<\/p>\n<div id=\"attachment_73181\" style=\"width: 886px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-73181\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-73181\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-12.46.07\u202fPM-1024x535.png\" alt=\"Mautic Configuration\" width=\"876\" height=\"458\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-12.46.07\u202fPM-1024x535.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-12.46.07\u202fPM-300x157.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-12.46.07\u202fPM-768x401.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-12.46.07\u202fPM-1536x802.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-12.46.07\u202fPM-2048x1070.png 2048w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-12.46.07\u202fPM-624x326.png 624w\" sizes=\"(max-width: 876px) 100vw, 876px\" \/><p id=\"caption-attachment-73181\" class=\"wp-caption-text\">Mautic Configuration<\/p><\/div>\n<h2>Step 3: In Mautic, go to Components \u2192 Forms, select the form, and click on Public URL \/ Embed and copy the embed code like:<\/h2>\n<div id=\"attachment_73171\" style=\"width: 886px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-73171\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-73171\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.19.27\u202fAM-1024x720.png\" alt=\"Embed Code\" width=\"876\" height=\"616\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.19.27\u202fAM-1024x720.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.19.27\u202fAM-300x211.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.19.27\u202fAM-768x540.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.19.27\u202fAM-624x439.png 624w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.19.27\u202fAM.png 1212w\" sizes=\"(max-width: 876px) 100vw, 876px\" \/><p id=\"caption-attachment-73171\" class=\"wp-caption-text\">Embed Code<\/p><\/div>\n<pre>&lt;script type=\"text\/javascript\" src=\"https:\/\/your-mautic-instance.com\/form\/generate.js?id=12\"&gt;&lt;\/script&gt;<\/pre>\n<h2>Step 4: Paste the above code into a Drupal page or block with Full HTML enabled.<\/h2>\n<div id=\"attachment_73170\" style=\"width: 886px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-73170\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-73170\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.14.32\u202fAM-1024x697.png\" alt=\"Lead Form\" width=\"876\" height=\"596\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.14.32\u202fAM-1024x697.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.14.32\u202fAM-300x204.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.14.32\u202fAM-768x523.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.14.32\u202fAM-1536x1046.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.14.32\u202fAM-624x425.png 624w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.14.32\u202fAM.png 2036w\" sizes=\"(max-width: 876px) 100vw, 876px\" \/><p id=\"caption-attachment-73170\" class=\"wp-caption-text\">Lead Form<\/p><\/div>\n<p>Now you can track users&#8217; data on the Mautic instance.<\/p>\n<div id=\"attachment_73174\" style=\"width: 886px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-73174\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-73174\" src=\"https:\/\/www.tothenew.com\/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.52.35\u202fAM-1024x466.png\" alt=\"Users Data\" width=\"876\" height=\"398\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.52.35\u202fAM-1024x466.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.52.35\u202fAM-300x136.png 300w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.52.35\u202fAM-768x349.png 768w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.52.35\u202fAM-1536x698.png 1536w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.52.35\u202fAM-2048x931.png 2048w, \/blog\/wp-ttn-blog\/uploads\/2025\/07\/Screenshot-2025-07-11-at-10.52.35\u202fAM-624x284.png 624w\" sizes=\"(max-width: 876px) 100vw, 876px\" \/><p id=\"caption-attachment-73174\" class=\"wp-caption-text\">Users Data<\/p><\/div>\n<h2>Use Cases<\/h2>\n<p>The Drupal Lead Form data will be saved in Mautic, as shown in the screen above. You can now use this data for the following purposes:<\/p>\n<ul>\n<li>Track content engagement for scoring<\/li>\n<li>Convert anonymous visitors into leads via forms<\/li>\n<li>Personalise call-to-actions or banner messages<\/li>\n<li>Trigger email campaigns<\/li>\n<\/ul>\n<h2>Conclusion<\/h2>\n<p>Finally, you\u2019ve successfully completed the installation of Mautic and its integration with Drupal. With everything in place, you can now effectively track user activity on your Drupal site directly within Mautic\u2014enabling better insights, lead management, and personalised marketing automation.<\/p>\n<p>Let us know in case of any issues during the integration process, and please feel free to reach out via comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Mautic is an open-source marketing automation platform designed to help businesses and organizations automate various marketing tasks and streamline their marketing efforts. Marketing automation offers an exciting opportunity for greater efficiency, cost reduction, and an enhanced customer experience. The purpose of this blog is to guide you through the process of integrating Mautic with [&hellip;]<\/p>\n","protected":false},"author":1599,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":69},"categories":[3602],"tags":[4862,2128,7608],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/72952"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/1599"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=72952"}],"version-history":[{"count":24,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/72952\/revisions"}],"predecessor-version":[{"id":73371,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/72952\/revisions\/73371"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=72952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=72952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=72952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}