How Mautic dynamic web content personalizes pages for known and unknown visitors
Dynamic web content lets a marketing team show different hero text or offers to different visitors on a site they already run. In Mautic, you define a dynamic content slot, write a variant for each audience, and add a default. Any page that loads the Mautic tracking script can then display the right variant in that slot, without a rebuild of the site. The variant is chosen by one of two rules: filters based on contact fields and behavior, or membership in a campaign. Visitors who match no rule, or who have not been identified as a contact, receive the default content. Because the slot is an HTML container tied to the tracking script rather than to a particular CMS, the same setup works on a static site, a custom application or a platform the team does not control.
Teams usually need this when the site runs on a platform with no personalization features, when marketing wants to change offers without involving developers, or when the same audience rules should drive emails, forms and web content together. A CMS-native personalization tool is often the better choice when the content model, A/B testing and page-level experiments all live inside one CMS and marketing does not need the segments it already maintains in Mautic. The decision is about where the audience data lives and who edits the content. Confirm which option fits by checking whether your segments already exist in Mautic and whether the content team can work in the Mautic interface.
Targeting quality depends on two inputs. First, most filters need a known contact, so a visitor who has never submitted a form, clicked a tracked email or been identified through another route sees only the default. Second, the variant can only be selected if the tracking script loads on the page and records the visit, so a missing or misconfigured script will silently serve defaults everywhere. Before launch, test the slot on each page template with a known contact, an anonymous browser and a blocked-script browser, and confirm that the default renders in the last two cases. Review your consent settings too, since the contact fields you target on must be ones your privacy notice and preference settings cover.
Which dynamic content option fits which targeting need
This table compares filter-based content, campaign-based content and default content by what decides the match, the contact data each needs and where each fits. Read it before you choose targeting rules for a slot. Exact filter names differ by version, so confirm them in your installation before you build rules. The main takeaway: anonymous visitors see only default content until they are identified.
| Option | What drives the match | What data it requires | When it fits |
|---|---|---|---|
| Filter-based content | Contact field values and segment membership of the identified visitor | A known contact record with the fields the filter checks populated | Targeting by attributes you already hold, such as segment membership or a field captured on a form |
| Campaign-based content | Current campaign membership of the identified contact | A contact in the campaign, with campaign update and trigger cron jobs running | Showing content that matches a stage of a nurture sequence the visitor is already in |
| Default content | No filter or campaign rule matches, including for anonymous visitors | Only the default content itself | A fallback on every slot so unknown visitors see a sensible message |
| Anonymous visitors | No contact record exists, so only default content can apply | Identification through forms, email clicks or identify-by-IP, which carries the risk noted in the identification topic | Planning which slots need a default that works without any profile data |
| Membership update timing | Segment and campaign changes take effect only after the relevant cron job runs | Staggered cron schedules confirmed in your environment | Setting expectations for when a newly qualified visitor will see targeted content |
How to set up dynamic web content on your site
This sequence connects tracking, targeting data, content variants and page markup so each visitor sees the variant they match or the default. Each step ends with a check that a test contact or page shows the expected result. Run it on staging before any production page changes.
Confirm the tracking script loads everywhere
The site team confirms that the Mautic tracking script loads on every page that will contain a slot, including templates a CMS or theme reuses. Dynamic content depends on the visitor's tracked identity, so a page without the script shows only defaults. Open each template in a browser, check the network panel for the tracking script request, and confirm that your own page view appears on the Mautic visitor record. The step is done when every target template passes that check.
Define contact fields and segments for targeting
The marketing operations lead lists the attributes that should change the page, such as industry, country, customer status or product interest. Each attribute maps to an existing contact field or a new one, and each audience becomes a segment with filters on those fields. Mautic updates segment membership through scheduled cron jobs, so a contact who just changed a field will not match a new segment until the next run. Confirm the segment cron job runs on schedule, then add a test contact to each segment and check that it appears in the member list.
Create the content variants and default
The content owner creates one dynamic content item per variant in the web content section and attaches each to the segment or campaign condition it serves. Write a default version for visitors who match no variant, and treat it as a required item so no visitor sees an empty slot. Preview each variant against a test contact with the matching field values and confirm the expected version renders. Record which variant each segment should produce so the mapping can be reviewed later.
Insert the slot markup into the template
The web developer adds the slot markup that Mautic generates for each content item to the template where the slot appears. Keep the default content inside the slot element so it displays before the script runs and for visitors whose browsers block JavaScript. Use one slot name per placement and record the names in a shared list so content managers do not reuse them. Confirm the exact attributes against the documentation for your Mautic version, deploy to staging and check the rendered page source for the slot element and default text.
Test as known contacts
The tester opens the staging page in a browser session identified as each test contact, using the tracking approach your team has set up for identification. For every test contact, confirm that the expected variant appears and that the contact's record shows the segment memberships that drove the match. If a contact sees the wrong variant, check the filter logic and segment membership before editing the markup. The step is done when each test contact in each segment sees the variant on the expected list.
Test as anonymous and unmatched visitors
The tester opens the page in a private browser window with no tracking history, then tests with a contact that matches no variant. Anonymous visitors and unmatched contacts should see the default, unless a variant's conditions apply to anonymous records, which you should confirm for your version. If every request returns the same variant, check whether a page cache or CDN serves one copy to all visitors, and confirm the caching rules for slot pages with the team that owns the cache. The step is done when both cases show the default and caching is confirmed.
What data you need before targeting works
Dynamic web content only shows what Mautic can match to a visitor, and that match depends on five things working together: a known contact, the fields a rule reads, segments refreshed by cron, campaign membership, and consent. Each one narrows what you can target, so check them in this order before you build any content slot.
Identified contacts from forms and clicks
Dynamic content rules act on a contact record, so an anonymous visitor only gets the default content until Mautic knows who they are. Visitors become known when they submit a form or click a tracked link in an email. Check which of your forms and email templates identify the visitor, and decide what share of your traffic will ever be identified. Pages that most visitors reach anonymously need a sensible default, not a targeted message.
Fields used in filters
Every rule that compares a visitor to a value, such as industry, country or product interest, reads a contact field. If the field is empty, not mapped in your form or never imported, the rule never matches and the visitor sees the default. Build a field list for each planned rule, confirm the field is populated on the forms that collect it, and remove fields you will not use so the form stays short.
Segment membership and cron timing
Segment filters are evaluated by Mautic's cron jobs rather than live on each page view, so a contact who qualifies now may not be in the segment yet. Mautic's documentation says the segment and campaign cron jobs should be staggered. Ask how often the segment update runs on your instance, and design rules so a few minutes or hours of delay is acceptable for the message involved.
Mautic cron jobs docsCampaign membership
Content can also be chosen by whether a contact is in a campaign or has reached a campaign step. That membership depends on the campaign trigger running, which relies on the same cron setup as segments. A contact who was never added to the campaign, or who left it, will not see that content. Confirm which campaign each slot depends on, who enters it, and what happens when they complete it.
Consent status for tracked data
Targeting on tracked behavior is only as usable as the consent behind it. If a contact has opted out of tracking or marketing, the data you would use to choose content may be restricted or excluded from your rules. Confirm with your privacy team which tracking and preference settings apply to each market, and test a contact who has opted out to see what they receive.
Questions teams ask before personalizing with Mautic
What drives the cost of personalizing a website with Mautic dynamic content?
The main drivers are the number of variants, the data model behind them, how much your templates have to change, and how much testing the result needs. Each extra audience segment multiplies the content to write, check and maintain, while a clean contact model with the fields you target keeps the rules simple. Costs split between one-time work (designing the model, building slots, writing variants and testing) and recurring work (reviewing content, updating rules and checking after Mautic upgrades). Ask any partner for a quote that lists each variant, each data field, each template change and the test cases, so you can compare scopes directly.
How long does a dynamic web content project take?
Duration depends on the same factors as cost: how many pages carry slots, how many audiences you define, whether the contact fields exist, and how many templates or CMS themes need changes. A narrow project with one or two slots on a single site is much shorter than a multi-site programme with campaign-based content and a new data model. Mautic's own cron jobs must run for segment and campaign updates, so timing also depends on your server schedule and how quickly new contacts reach the segments you target. Ask for a timeline that is tied to a written scope and to a named testing phase.
What does our web and marketing team need to provide?
Marketing needs to define the audiences, the messages for each one and the fallback content for unknown visitors. Web or platform engineers need to confirm where the HTML slots go, how each site's templates load the Mautic tracking script and whether any CMS plugin is involved. Both teams should agree which contact fields and segments are reliable enough to target. Expect review time from both sides before launch, because a wrong field name or an unplanned template change is the most common reason a variant never shows.
Can our in-house team build dynamic content without a partner?
Yes, if your team already runs Mautic in a supported way, understands segments and campaigns, and can edit the templates that hold the slots. The work is mostly configuration and content, so a capable marketing operations engineer with web access can handle a small scope. A partner adds value when the data model needs design, several sites or CMS platforms must be covered, or the work must be tested and documented for a compliance review. Whichever path you take, the decision should rest on the written scope and the skills you have today.
How do anonymous visitors affect dynamic content results?
Anonymous visitors cannot match a filter until Mautic identifies them, so they will normally see the default content. This is expected behavior, and your defaults should be written as a complete, useful message rather than a placeholder. Visitors become known when they submit a form, click a tracked email link or are identified by other means, and the content they see changes from that point. Identifying visitors by IP carries a risk for companies that share one address, so check how your identification settings affect the audience before you plan results. Measure results only on the known contacts you can actually target.
Which contact data do we need before targeting visitors?
You need contact fields that hold the attributes you target, such as industry, role, region or product interest, and those fields must be filled reliably. Segment filters and campaign conditions read those fields, so a field that is empty for most contacts will make a variant rarely show. Decide which data comes from forms, which from imports and which from integrations, and document the source of each field. Avoid targeting on sensitive attributes you have not justified under your consent and data protection rules, and review that choice with your compliance team.
What can go wrong with dynamic content on a live site?
The usual problems are slots that do not render because the tracking script is missing or blocked, filters that match no contacts, variants that overlap so the wrong one shows, and defaults that are empty for unknown visitors. Caching layers can also serve one visitor's content to another if the page is cached without accounting for the dynamic slot. Test each variant as an anonymous visitor and as a known contact in each segment, on every site and template involved. Confirm with your Mautic version and your CMS how caching and the script behave, because these details vary by setup.
Does the Mautic release cycle affect dynamic content maintenance?
Yes. Mautic publishes monthly patch releases, minor releases every three months and major releases every two years, and each release line receives support for a limited period. Dynamic content depends on the tracking script, the segment engine and the campaign features, so a major upgrade may require you to retest slots and rules. Check the current support dates on the Mautic releases page before you choose a release line, and plan the retest as part of your recurring maintenance budget.
Security and privacy risks in personalized pages
Dynamic web content changes what a visitor sees based on data about them, so the same page can expose different information to different people. The cards below cover the risks that follow from that: personal data in rendered HTML, consent before identification, who can edit targeting content, and changes that reach production pages without review.
Personal data in rendered HTML
Dynamic content slots are filled from contact fields, so a token such as a first name or company can end up in page source that any visitor can read. Check that tokens render only fields the page needs, that no hidden fields or notes are referenced, and that personalized output is not cached for other visitors. Test the rendered HTML of a known contact in a private browser window.
Consent before identification
Filter-based content depends on what Mautic already knows about a visitor, and that knowledge may come from a form, an email click or an IP lookup. Confirm that tracking and identification follow the consent settings your team has agreed for the site before any personalized slot reveals stored data. Document which filters rely on identified contacts.
Admin access to dynamic content
Anyone who can edit a dynamic content item can change what a segment sees, including messages that expose offers or account details. Limit the Mautic user role that edits dynamic content, review changes by a second person, and confirm that user accounts use strong authentication. Basic authentication is the default, so check whether a SAML identity provider is connected for staff access.
Mautic authentication docsUnreviewed script changes on production pages
Dynamic slots depend on the tracking script loading correctly on every page that uses them, so a change to the script or a template can silently stop personalization or leak content. Keep the tracking code and slot markup under version control, test changes on a staging copy of the site, and roll back quickly if a page renders blank or shows the wrong default.
Wrong content for unknown visitors
A visitor with no matching data receives the default content, and a poorly chosen default can show an offer, a company name or a private message to the wrong person. Define a neutral default for every slot, confirm that the default contains no personal data, and check how the page looks in a browser that blocks scripts or sends no cookies.
Retained visitor data behind targeting
Every identified visitor adds records that drive targeting, so the database grows with each anonymous visit kept for personalization. Ask your team to set a retention approach for anonymous records and personal fields used in filters, and confirm how deletion requests remove the data that dynamic content relies on. Review these settings with your privacy officer before launch.
How a page request resolves to a dynamic content variant
The flow starts when a visitor requests a page that carries the Mautic tracking script. The script reports the visit, and Mautic matches the visitor to a known contact or keeps the visit anonymous. Mautic then evaluates each dynamic content slot's filters and campaign membership and picks the first matching variant, falling back to the default when nothing matches. The cron-driven segment and campaign updates feed the contact data that these checks rely on, so check that those jobs run on schedule.
Page request flow through tracking, contact matching, and variant selection with the cron side input.
How DeployOpen scopes and delivers Mautic personalization
DeployOpen plans dynamic web content around the pages, visitor data and consent rules your organization already has, then builds it inside a self-hosted Mautic instance in infrastructure you control. Each engagement starts with a written scope, so the content slots, targeting rules and defaults are agreed before any page is changed.
How we scope
- We inventory the pages and templates where dynamic content slots would appear and record which site owns each one.
- We map which contact fields, segments and campaign memberships each personalized block needs, and which data is missing today.
- We agree the default content for unknown visitors and the fallback rules before any targeting logic is written.
How we build
- We configure dynamic web content slots and filter-based rules in your Mautic instance, using the segments your team has already agreed.
- We add campaign-based content where a visitor's campaign membership should change what they see, and test each rule against sample contacts.
- We connect the tracking script to each target site and check that slots render correctly for logged-in, anonymous and unknown visitors.
How we hand over
- We deliver a written record of each slot, its targeting rule, its default content and the owner who approves changes.
- We run a handover session with marketing and web teams covering how to edit content and how to test a new rule safely.
- We document the data each rule depends on so your privacy and compliance team can review what personalization uses.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial fixed-scope delivery.
- We can retest personalization rules after Mautic upgrades or template changes on your websites, as agreed in the written scope.
- Support scope, response expectations and retest cadence are agreed in writing, so you know what a retainer covers before signing.

