This Plugin enables the usage of Marketing Automation Tool Mautic together with Neos CMS. Its key features are:
composer require punktde/mautic
valid domains
.Add the following configuration to your site's Settings.yaml
PunktDe:
Mautic:
mauticServer:
url: https://mymautic.com
mauticUser:
username: mautic-api
password:
Place Mautic tracking template at the bottom of your <body>
:
mautic = PunktDe.Mautic:MauticTracking
Add this code to every page's fusion file you want to be tracked. If you want to track all pages, add this
piece to the Root.fusion
or AbstractPage.fusion
of your page.
To pass information from yaml forms to Mautic, you need to define which form elements should be taken into account. Add the following property to those fields:
mauticIdentifier: 'firstname'
Due to a bug in Mautic API, mauticIdentifier
must be small case.
You also need to add the following finisher:
identifier: 'PunktDe.Mautic:UpdateUser'
An example form looks like this:
type: 'Neos.Form:Form'
identifier: 'form-identifier'
label: 'Blog comment'
renderingOptions:
submitButtonLabel: 'Send'
renderables:
-
type: 'Neos.Form:Page'
identifier: 'blog-comment'
renderables:
-
type: 'Neos.Form:SingleLineText'
identifier: 'name'
label: 'Name'
properties:
mauticIdentifier: 'firstname'
defaultValue: ''
finishers:
-
identifier: 'PunktDe.Mautic:UpdateUser'
The value of mauticIdentifier
must be a defined user field (so called custom field) in Mautic. You can search, edit or create new
custom fields to fit your needs.
Forms created by FormBuilder require the editor to enter the Mautic identifier in the Neos backend. This can be achieved by selecting the form element and setting up the value in the settings bar on the right side of your UI.
Due to a bug in Mautic API, mauticIdentifier
must be small case.
You must also register the Mautic finisher for this form.
You can show a different content dimension to users belonging to different Mautic segments.
Define segments in your settings.yaml
. Use the same name for your Neos dimensions as well as your mautic segments.
Neos: ContentRepository: contentDimensions: mautic: label: 'Mautic Segment' icon: 'icon-globe' default: defaultUser defaultPreset: defaultUser presets: all: null defaultUser: label: 'Default User' values:
You can combine multiple dimensions (e.g. language) without problem.
Visit the backend, change the dimension and edit content. Publish it.
It is possible to track users coming from different sources using UTM-Tags. Just add any UTM Tag to your link before you post it on social media:
https://punkt.de/blog/post?utm-source=AnySourceName
When a user has UTM-Tags and submit a form, this information will also saved in Mautic.