punktDe / mautic

MIT License
4 stars 2 forks source link
marketing marketing-automation mautic neoscms

Neos Mautic Plugin

This Plugin enables the usage of Marketing Automation Tool Mautic together with Neos CMS. Its key features are:

Installation

composer require punktde/mautic 

Configuration

Configure Mautic

Configure Plugin

Add the following configuration to your site's Settings.yaml

PunktDe:
  Mautic:
    mauticServer:
      url: https://mymautic.com
    mauticUser:
      username: mautic-api
      password: 

Enable Tracking

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.

Pass Information from Form to Mautic

Form in yaml format

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.

Form in FormBuilder Format

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.

Dynamic Content

You can show a different content dimension to users belonging to different Mautic segments.

Social Media Tracking

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.