In Mautic, content personalisation is done with the use of a "Dynamic Content" feature. This powerful tool allows you to display different content to different visitors based on various criteria.
How Dynamic Content Works
In Mautic, Dynamic Content can be displayed to users in 2 ways:
- By directly filtering out the users to whom we want to show a message
- Via a Campaign of which the part may be displaying the particular customised message
Let's explore both methods.
Content Personalisation using Filters
Head over to Components >> Dynamic Content and add a new piece of dynamic content.
- Give it a meaningful name for you to understand when you return here some other time
- In the "Content" section enter the exact content you want to display
- Toggle the Is campaign based switch to No
- Fill in the "Requested slot name" field with an alphanumeric string
- In the Filters tab, enter the conditions which have to be met for the content to be displayed
By using Filters you can generate quick personalisations with visitor segments created on the fly.
Content Personalisation via Mautic Campaigns
For more complex campaigns with multiple steps or interactions, you'll want to personalise content for visitors based on a campaign.
To create campaign-based Dynamic Content:
- Create a Dynamic Content element with "Is campaign based" set to Yes
- Go to the Campaigns section and choose your campaign
- Click Campaign builder
- Add a Decision element and select Request dynamic content
- Configure the slot name and select the Dynamic Content piece to use
Adding Dynamic Content to Your Website
The last step is to add the slot to your website so Mautic can replace the default content.
Add these attributes to your HTML tag:
- data-slot = dwc
- data-param-slot-name = your-created-slot-name
Example:
<h1 data-slot="dwc" data-param-slot-name="by-country-welcome-france">
Hi! Check out our events
</h1>Using Contact Details for Personalisation
You can achieve more direct personalisation by using data collected on particular users.
Create a Dynamic Content element with filters set to Country not empty, then use tokens to pull data from the contact record. Start typing after a parenthesis { and Mautic will suggest available tokens.
Summary
Mautic's Dynamic Content feature makes it easy to personalize messages based on contact data. While this tutorial uses simple examples, the same methodologies apply to more complex customisations like banners, sliders, and entire page sections.
Written by
Mautomic Team
The Mautomic team brings together experienced marketing automation specialists, developers, and consultants dedicated to helping businesses succeed with Mautic.