Install
Works with Drupal: ^10.3 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
84 KB
MD5: c66dc8bcc06d0c720f239f2bbf62f81a
SHA-1: a86ffcfe0cca306db6732caa2ffd6fddba879eaa
SHA-256: 119dd18fa89b88fe1f6a17242370f50474dd4de137920c0a8368bfeeac9772a6
Download zip
139.24 KB
MD5: d3ccef8aa3c217d4b131714e62ef1714
SHA-1: 5a539bc216936832500c6b427dd53e722cf1a720
SHA-256: 47a6dfd26732bb5c5db093fcd648c4a29daf00a4927e88f39126ad8a67b850be
Release notes
A contacts service and a form submitter for code that talks to Mautic, a setting that keeps copies of a site from changing the live Mautic, and a fix to user synchronization. This release requires PHP 8.2; a site on PHP 8.1 stays on 1.3.x, which remains supported.
New features
- #3619056: Send changes to Mautic, a setting that is on by default. Switched off, the site keeps reading from Mautic and changes nothing there: the API wrapper refuses every request other than GET, for this module and for any code using
advanced_mautic_integration.api, user synchronization stops, and the status report warns. A QA or local copy of a site turns it off in itssettings.php:$config['advanced_mautic_integration.settings']['api']['write_enabled'] = FALSE; - #3619057: the
advanced_mautic_integration.contactsservice finds a contact by its exact email address, creates or updates it with fields and tags, and adds it to campaigns and segments. Every failure throwsMauticApiException, including a field alias Mautic does not have. - #3619059: the
advanced_mautic_integration.form_submitterservice submits what a Drupal form collects to a Mautic form, from the server, as the visitor's browser would: with their IP address, user agent, language, privacy signals, page and Mautic cookies. Mautic records the submission and runs the form's actions and campaigns. - #3619050: the README explains how to move from Mautic Integration, the menu path in it is fixed, and the project has a logo.
Bug fixes
- #3619058: user synchronization updates only the user's own contact: the one with exactly their email address, or, for users editing their own account, the contact of the tracking cookie when it has their address. A failed search no longer creates a contact, and a change Mautic refuses is logged.
- #3619054: the module requires version 4 of the Mautic API library. On PHP 8.1, Composer installed version 3.1, which fails with psr/log 3 on every API call.
Updating
- Run
drush updb: a post update turns Send changes to Mautic on, as writing always was. A site that keeps its configuration inconfig/syncshould export it afterwards. UserSynchronizer::getLeadByParameter(),getLeadIdForUser()andpush()now throwMauticApiExceptionwhen Mautic cannot be reached or refuses a request. The module's own user hooks catch and log it.
Credits
Thanks to ultimike for asking how to move from Mautic Integration.