The Drupal module for Campaign Studio enables marketers to track contact’s activity on organizational websites. Rather than using a Campaign Studio plugin to connect Campaign Studio and Drupal, you’ll use a Drupal module.
Important
EOL notice! Drupal 8 reached end-of-life on November 2, 2021. Therefore, Acquia will not be performing any testing related to Drupal 8 to ensure compatibility. Acquia recommends upgrading to Drupal 9 or later. For more information, see Frequently Asked Questions.
Download the Campaign Studio module for Drupal 9 and later.
Install and enable the module.
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: www.yoursite.com/admin/config/system/mautic
On the settings page, enter the URL of your mtc.js script provided on the Tracking Settings tab in Configurations.
All pages now have the required JavaScript added to the HTML header. You can verify this by viewing the page source from your browser.
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:
Name | Description |
---|---|
site_url | 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 . |
lift_segments | 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. |
lift_account | Adds the lift account ID to the user’s contact. This may be useful for tracking and testing purposes. |