Campaign Studio

Installing the Campaign Studio Drupal module

With the Drupal module for Campaign Studio, marketers can track contact’s activity on organizational websites. To connect Campaign Studio and Drupal you use a Drupal module rather than a Campaign Studio plugin.

Current Drupal version

  1. Download the Campaign Studio module for the current Drupal version.

  2. Install and enable the module.

  3. Configure the module by visiting Configuration > System > Mautic or by adding /admin/config/system/mautic to the URL of your Drupal site’s admin page.

    For example:

  4. On the settings page, enter the URL of your mtc.js script provided on the Tracking Settings tab in Configuration.

    All pages now have the required JavaScript added to the HTML header. You can verify this by viewing the page source from your browser.

Acquia Personalization integration

This module can automatically send the user’s Personalization data into Mautic if you create the custom fields for the data to be added to your contacts.

The following machine names are the alias for the custom field. You can use any label of your choice. Add any or all of these fields to get access to the data as part of the Mautic contact:




Adds the current site URL to the contact. It is very useful for creating links and return URLs that are dynamic with a user token instead of hardcoded. For example, https://{contactfield=site_url}/formreturn/thank-you.


Adds the user’s segments as a comma separated list to the contact. This is updated on each page load, so it reflects the last time when the user hit the site. It is very handy for creating Mautic segments, so you can initiate actions and campaigns based on Lift’s decision engine. For example, new_customer,order_in_past_week,from_instagram.


Adds the lift account ID to the user’s contact. This may be useful for tracking and testing purposes.