Mautic segment filters with UTM and behavior data

Mautic segments can filter contacts by campaign source, page visits, email activity and point group scores. This page covers how to design those filters, what drives their performance, and what to confirm before you rely on them.

On this page

How Mautic segment filters use UTM and behavior data

Mautic segment filters can combine UTM tag data, page visits, email activity and point group scores in one segment, so a marketing or operations lead can build audiences from where contacts came from and what they did. This matters when the audience must change as behavior changes and manual tagging cannot keep up with the volume of contacts or the number of sources. Manual tags still suit one-off batches, but a filter-based segment re-derives membership from stored contact data, which fits recurring audiences such as contacts who arrived from a webinar campaign and then viewed a pricing page. Confirm the exact filter names, operators and grouping logic in the segment editor of your installed version before you write the audience definition down.

Filters do not evaluate the moment a contact visits a page or opens an email. Mautic updates filter-based segments through the segment update cron job, so membership lags real activity by the interval your schedule sets. The Mautic cron jobs documentation says the segment update, campaign update and campaign trigger jobs should be staggered, which means the segment update window is part of your timing design. A contact who clicks a UTM-tagged link may not appear in the segment until the next run, and any campaign that reads that segment acts on the lagged membership. Plan for this delay in any send that depends on same-day behavior, and confirm the schedule with the team that runs the server before you promise a turnaround to stakeholders.

Test each UTM or behavior filter before relying on it. Create a test contact, record the UTM parameters and the page visit or email action the filter should match, then check whether the contact enters the segment after the cron run completes. Check the contact timeline to confirm the activity was recorded at all, because a filter can only match data Mautic has stored. Confirm how UTM values are captured in your version and in your tracking setup, and document the filter logic so reviewers can audit the audience later. Repeat these checks after each upgrade, since filter behavior and labels can change between releases, and keep a short record of the results with the segment definition.

Which filter families to use for which question

Campaign source data answers the question of how a contact first arrived or which campaign tagged them. It usually comes from UTM parameters captured on a landing page or form submission, and from tags applied at import, through forms or by a campaign action. The data reflects the parameters that were present at the moment of capture, so it is most reliable for attribution of the first or most recent touch rather than a full journey.

  • Capture point: UTM values are stored when a tracked page or form records them, so links missing parameters leave no trace.
  • Blind spots: Cookies that are blocked or cleared, redirects that strip query strings and cross-device visits can all hide the original source.
  • Overwrite risk: A later visit with different parameters may replace earlier values, depending on how your tracking is configured.
  • Right input: Use it for audiences such as contacts from a specific event, partner or paid channel, and for onboarding sequences tied to a source.
  • Tags as backup: Tags set by forms or imports often hold the source more reliably than parameters captured on a visit.

Before relying on a source segment, confirm with your own test links how your tracking records parameters, which fields it writes to, and whether your installed version filters on them as expected.

Segment filter options and when each fits

This table compares filter-based segments with UTM-derived tags, point group thresholds and static segments for Mautic audiences. Read each row for the input data, how often membership refreshes through the segment update cron job, and the main risk. The takeaway is that filter-based segments follow behavior only as fast as cron runs, so pick the option that matches how quickly the audience must change.

OptionInput dataRefresh behaviorMain risk
Filter-based segment on contact fieldsContact fields and supported filters such as tags, dates and activity conditionsMembership is recalculated by the segment update cron job, so changes appear on the next runHeavy filter combinations can slow the update on large contact databases
Filter on UTM-derived tagsTags written from UTM parameters captured on contact records or form submissionsTags are applied when the contact is tagged, then the segment refreshes on the next cron runTags only exist for contacts whose first touch carried UTM values, and tag sprawl grows quickly
Filter on point group thresholdsPoint group scores that accumulate from configured point actionsScores change as actions fire, and the segment picks up threshold crossings on the next cron runScores drift if point actions are misconfigured or duplicated, and the threshold may be set too low
Filter on page visits or email activityTracked page hits and email events recorded against the contact timelineDepends on tracking being active and on cron recalculating the segment after events arriveVisitors who are not identified never match, and admin sessions may be excluded from tracking
Static segment for a fixed audienceContacts added by import, manual selection or a one-time exportMembership changes only when someone adds or removes contactsMembership goes stale as contacts change, so it can email people who no longer qualify
Combined filters and tag conditionsSeveral filters joined with AND or OR logic over fields, tags and activityRecalculated on each cron run, with cost rising as conditions are addedHard to audit and tune, and overlapping logic can silently exclude valid contacts
Exact filter operatorsOperators vary by Mautic version and by the filter types availableConfirm the refresh interval and operator list in the target version before designAssuming an operator exists that the installed release does not offer

Setting up UTM and behavior segments in order

This sequence takes UTM and behavior data from the website to a tested Mautic segment, so each filter is proven on real contacts before a campaign depends on it.

  1. Confirm the tracking script on the website

    The web team loads the Mautic tracking script on the pages that matter, including the landing pages that carry campaign links. Open those pages in a private browser window, load each one with a test UTM string such as utm_source, utm_medium and utm_campaign, and confirm the script runs without errors in the browser console. The step is done when a test visit appears in the contact timeline of a known test contact with the expected page hits. Confirm the exact tracking setup with your own Mautic configuration, since the script and tracking options depend on your instance and site.

  2. Verify UTM values land on contacts

    Submit a test form or click a tagged link from a known test identity, then open the contact record in Mautic. Check that the UTM values are stored in the contact fields or the campaign source data your segments will filter on, and that values are spelled and cased consistently across test links. Record the exact field names and sample values in a short mapping note so the segment builder uses the same keys. The step is done when every test link produces the values you expect on the contact, and a value that is missing or mangled has been traced to its source.

  3. Build the segment logic on a test set

    Create a test set of contacts with known history: some arrived from the tagged campaign, some visited a specific page, some opened an email, and some match none of these. Build the segment filters in the segment editor, combining UTM field conditions with page visit and email activity conditions, and keep the logic as simple as the requirement allows. Save the segment as a test segment that is not used by any campaign. The step is done when the segment includes exactly the test contacts you expect and excludes the ones you expect, which you confirm by reading the contact list rather than trusting the count alone.

  4. Schedule the segment update cron job

    A filter-based segment only refreshes when the segment update cron job runs, so the server operator adds that job to the schedule and staggers it from the campaign and broadcast jobs, as the Mautic cron documentation advises. Run the segment update command manually once on the test segment to confirm it executes without errors, then confirm the schedule runs at the interval you intend. The step is done when a contact that newly matches the test filter is added to the segment after the job runs, and the server log shows the job completed.

  5. Test behavior conditions over time

    Behavior filters such as page visits and email opens depend on activity that happens after the segment is saved, so test them with new activity rather than old data. Have a test contact visit the tracked page and open a test email, wait for the scheduled segment update to run, and confirm the contact joins the segment. Then repeat with a contact that does not perform the action and confirm it stays out. The step is done when both cases behave as designed, and any delay you observe is explained by the cron interval.

  6. Compare segment counts with the contact timeline

    Pick a sample of contacts in the segment and a sample outside it, then open each contact timeline to read the events that should have qualified or disqualified them. Compare the timeline with the segment membership and note any mismatch, such as a visit that was logged under a different URL or a UTM value that changed on a later form submit. Reconcile the counts for the test segment against the sample, and record any filter that needs adjusting. The step is done when every sampled contact's membership matches its timeline evidence.

  7. Use the segment in campaigns after sign-off

    Once the test segment passes the timeline checks, the marketing operations owner creates the production segment with the same filter logic, or promotes the tested one, and records its name, filter definition and cron dependency in the team documentation. Only then is it attached as a campaign source, because campaigns read segment membership through the same cron cycle. The step is done when a campaign's contact source shows the approved segment and a sample contact in the segment has been reviewed against its timeline. Ask your Mautic partner or internal owner to confirm which segments are public and which campaign source types apply to your setup.

Keeping segment filters fast on large databases

Segment evaluation slows as the contacts table grows and as filters touch more data than they need. The practices below control how much work each filter forces Mautic to do, when that work runs, and how safely changes reach production.

Limit filters to the fields you need

Every filter condition adds a comparison that Mautic must evaluate against the contacts table or related tables such as UTM tags and page hits. Build segments on the few fields the campaign actually uses, such as a single UTM campaign tag or a recent page visit, rather than copying a broad profile filter into every segment. Before saving, review each condition and ask whether removing it changes the audience. Remove any condition that does not change the audience.

Avoid overlapping broad filters

Several segments that each scan a large share of contacts with similar conditions repeat the same work on every segment update run. Consolidate overlapping audiences into one base segment and let campaigns or downstream segments narrow it, so the same contact data is not evaluated again and again. Look for pairs of segments whose conditions differ only by one value and merge them where the business logic allows.

Stagger cron jobs

Mautic relies on cron jobs for segment updates, campaign updates and campaign triggers, and the project docs advise staggering them. Running several heavy jobs at the same minute means they compete for database connections and locks on the same tables. Confirm the schedule with your operations team, set distinct start minutes for each job, and check the logs to see whether any run overlaps the next one.

Mautic cron jobs docs

Review segment counts after large imports

A bulk import can add or change many contacts in one pass, which shifts the size of every filter-based segment at once. Check the counts of your most important segments before and after each large import, and compare them with the expected change from the source file. An unexpected jump often points to a bad UTM mapping or a duplicated tag, which also makes later evaluations slower. Record the counts so you can spot drift in later runs.

Archive or unpublish unused segments

Segments that no campaign, form or report uses still run in the background if they are published and filter-based. Over time, a long list of forgotten audiences adds evaluation work with no business value. Inventory segments against active campaigns each quarter, unpublish the ones with no current use, and keep a short record of why each one was retired so it can be rebuilt if needed.

Test changes on a copy of production data

A filter that is quick on a small test instance can be slow on a production table with far more contacts and tag rows. Restore a recent backup to a separate environment, run the new segment and time the update, then compare the result with the production count. Ask your team to confirm the copy matches production in database engine, version and table size before drawing conclusions. Use the timing as a go or no-go signal before publishing the segment.

Where UTM and behavior filters mislead teams

UTM and behavior filters are only as accurate as the data someone typed or tracked, so the first risk is naming drift. A UTM source value such as Newsletter in one campaign and newsletter_q3 in another splits one audience into two segments, and neither segment looks wrong on its own. Behavior data has a similar gap: a page visit or email open is recorded only when the contact was identified, the tracking script ran and the event was captured. Contacts who read on a different device, block scripts or never click will not appear in a visit-based segment, so a segment built on engagement describes the people you could observe, not everyone interested. Before building filters, decide which UTM fields your team will rely on and which behavior events are reliable enough to act on.

Assign the UTM naming convention to one named owner and audit source values on a fixed schedule. That owner should publish the allowed values for utm_source, utm_medium and utm_campaign, decide who may add new values, and reject links that bypass the list. A periodic audit means exporting the distinct values present on contacts and comparing them against that list, then merging or retiring strays before they reach a segment. Ask the owner to document the audit cadence and sign-off in writing, since the cost of this work is internal time that recurs for as long as campaigns run.

Segment membership reflects the last cron run, not the contact's live state. Mautic relies on cron jobs to update segments, so a contact who unsubscribes, opens a campaign link or loses a tag may remain in a segment until the next scheduled update. Confirm with your own environment how often the segment update job runs and how long a full rebuild takes on your contact volume, then set campaign expectations around that lag. Any send that depends on a filter should be checked against the contact timeline before launch, not assumed to be current.

Security and data handling for behavior-based segments

Behavior-based segments combine who a contact is with what they clicked, opened and visited, so they concentrate personal data and decisions about marketing. The cards below cover who can see and change those segments, what profiling by browsing behavior means for contacts, which consent settings control collection, and how segment changes should be recorded.

Role access to segments and contacts

Mautic users are managed with basic authentication, and the authentication docs describe SAML single sign-on as the other option, with no LDAP path. Decide which roles can build or edit filters, export contact lists and view full contact timelines, because a filter on UTM or page data can expose a sensitive list in a few clicks. Confirm each role's permissions in your own instance before granting broad access.

Authentication docs

Profiling by browsing behavior

A segment built from page visits or campaign source data is a profile of interests, and it can reveal topics such as health, finance or employment. Before creating one, record the purpose, the lawful basis your legal team has agreed, and whether the segment will drive decisions about individuals. Avoid filters on sensitive page paths unless that use has been reviewed.

Consent settings that limit collection

Tracking and consent settings decide which visits, UTM values and email events are stored against a contact, so a filter can only be as complete as the data collected. Review tracking, do-not-contact and preference settings with your privacy team before building behavior segments. For the detail on how these settings support GDPR obligations, see the Mautic compliance page.

Retention of behavior data

Page visit and email activity records accumulate on contacts for as long as they are kept, and old behavior can keep contacts in segments that no longer reflect their interest. Ask your team which retention period applies to tracking data and confirm how Mautic cleanup and purge jobs are scheduled in your environment. Document the answer so segment owners know which history is available.

Audit trail for segment changes

Changing a filter can add or remove thousands of contacts from campaigns that send email, so each edit should be traceable to a person and a reason. Confirm what your Mautic version records about segment edits and who made them, and keep a change log in your own system if the built-in record is not enough. Review changes to filters that feed live campaigns before they are saved.

Segment ownership and review

Each segment that drives email or CRM pushes needs a named owner who can explain its filter logic, its data sources and its consumers. Schedule periodic reviews to retire unused segments and confirm that filters still match the stated purpose. Unowned segments tend to keep sending mail long after their original reason has passed.

Questions teams ask before building segment filters

How much effort does building Mautic segment filters take?

Effort depends mostly on how many filter conditions the segments need and how clean the source data is. A segment built on one or two UTM tags and a single page visit is a short task. Segments that combine UTM source, page visits, email activity and point group scores need more design time, more test contacts and more review rounds. Ask any partner for a written scope that lists the segments, the filter fields each one uses, the data quality checks and the validation steps, then compare quotes against that list rather than against a headcount guess.

Can an in-house marketing operations person build these segments alone?

Often yes for simple filters, if that person has admin access to Mautic and understands how contacts, tags and campaign source data are stored. Filters that depend on point group scores, multiple date windows or nested logic usually need someone comfortable checking the database load and testing edge cases. The practical question is whether a single person can build, test and maintain the segments after launch, since segment rules tend to change as campaigns change. Identify who will own the filters after handover before deciding who builds them.

What does the work require from our team before a build starts?

The build needs three things from your side: a written UTM convention that defines source, medium, campaign and content values, administrative access to the Mautic instance, and access to the server where cron jobs run. Without a stable UTM naming scheme, segments end up matching inconsistent values such as variants of the same campaign name. Ask your engineers to confirm that the cron schedule for segment updates runs at the intervals your campaigns assume, and that the server staff can change scheduled jobs when the build needs it.

How long does validation take, and what makes it longer?

Validation time depends on how many segments you test, how many test contacts you can create with realistic behavior, and how long your cron jobs take to refresh membership. Segment membership in Mautic updates through cron jobs rather than instantly, so each test round waits for the next run. Teams usually lengthen validation when UTM values are inconsistent, when point group scores are calculated by several actions, or when segments feed live campaigns. Ask for the validation steps in writing, including how each segment's membership will be compared against expected results.

What changes when the contact database is large?

Large databases make filters slower to evaluate, and segment updates take longer to finish during each cron run. Filters that join many tables, such as page hits or email stats over long date ranges, cost the most. Good practice is to narrow date windows, avoid unbounded history filters where a recent window will do, and check that the server has enough database and PHP capacity for the cron schedule you choose. Ask whether the database indexes and cron staggering have been reviewed against your actual contact volume, since the Mautic cron documentation recommends staggering these jobs.

Which Mautic cron jobs affect segment results?

The segment update job refreshes filter-based segment membership, and campaign jobs act on those results. If the segment cron runs less often than your campaigns expect, contacts may join or leave segments late. Confirm the schedule with the people who run the server, and check that the jobs are staggered so they do not compete for the database at the same time. Mautic's cron documentation describes this dependency, so use it as the reference when you write the runbook.

How do we know a segment filter is returning the right contacts?

Compare the segment membership with a list you expect before any campaign uses it. Create a small set of test contacts with known UTM values, page visits and scores, then check that each one appears or stays out as the rules require. Review the contact timeline for a sample of members to confirm that the behavior that drove membership is recorded. This check is quick for a few segments and grows with the number of conditions, so include it in the scope and the schedule.

How UTM and behavior data reach a segment

The flow starts with a visitor landing on a tracked page with UTM parameters in the URL. The tracking script identifies the visitor and writes the UTM values, page visits and email activity to the contact record, where point actions add to scores. The segment filter is only re-evaluated when the segment update cron job runs, so new data can wait for the next run before a contact enters a segment. Check the cron schedule first when a contact appears late.

Visit data flows to the contact record and reaches campaigns only after the segment cron runs.

Official Mautic sources for segment behavior

Where is the official Mautic documentation on cron jobs for segment updates?

The official cron jobs documentation explains which scheduled commands keep segments and campaigns current. Mautic depends on cron jobs for segment updates, campaign updates and campaign triggers, and the docs say these jobs should be staggered so they do not all run at once. The page also covers the broadcasts command used for segment emails and the messenger consumer needed when emails are queued. Read the Mautic cron jobs documentation before you set schedules for a segment built on UTM or behavior data, because a filter only updates when its cron job runs. Confirm the schedule for your exact Mautic version, since the docs page you open may describe a different release line.

Where can I check which Mautic version is supported before building segments?

The Mautic releases page lists the release cadence and the support window for each line. Mautic's stated pattern is monthly patch releases, minor releases every three months and major releases every two years. Mautic 7.2 (Absolunto) has active and security support until 30 September 2026, and Mautic 7.3 is planned as the long-term support release with security support through 31 December 2027. Mautic 6.0 (Tabit) receives security support until 30 September 2026, and Mautic 5.2 (Capella) until 30 June 2026. Check the Mautic releases page before you commit to a version, because segment filter fields and cron behavior can change between release lines.

Which Mautic release should a team pick for a segment build that must stay supported?

Pick the release line whose support window covers the planned life of the segment work. Support end dates differ by line, so a build that starts now may outlive a release that is close to its end of security support. Mautic 7.3 is planned as the long-term support release with security support through 31 December 2027, which is the longest window in the supplied release facts. Mautic 4.4 has paid Extended Long Term Support through 31 December 2026, which is a separate commercial arrangement and not a general default. Ask your team to map each segment, campaign and integration against the release calendar, and confirm the choice against the Mautic releases page before you lock the version.

Does Mautic publish requirements that affect how segment queries run on large databases?

The requirements page sets the baseline for the database and PHP stack that segment queries run on. Mautic 7.0 requires PHP 8.2, 8.3, 8.4 or 8.5, and MySQL 5.7 or higher with InnoDB, or MariaDB 10.2 or higher. Mautic also states that it should not be installed on shared hosting and recommends a VPS or dedicated server. Segment filters on large contact tables depend on the database engine, memory and indexing your server provides, so size the host before you add heavy filters. Review the Mautic requirements page and confirm the current minimums for your chosen release.

Which Mautic documentation explains how segment filters are updated and what triggers the update?

The cron jobs documentation is the primary source for how segment membership is recalculated. It states that segment updates run through a scheduled job, so a contact that gains a UTM value or a page visit joins the segment only after the next run. The same page describes campaign triggers and the broadcasts command used for segment emails. Plan your segment refresh interval around the business need, and test by adding a known test contact and checking when it appears. Confirm the exact command names and frequency in the Mautic cron jobs documentation for the release you run.

Can I check Mautic's official source code and license before I rely on behavior filters?

Yes. The Mautic GitHub repository holds the source code and is licensed under GPL-3.0. Reading the repository helps engineers confirm how a filter is implemented, such as which tables a page visit or email activity filter reads, before they write custom segment logic. The project is maintained by a worldwide community of contributors, and MAUTIC is a trademark of the Mautic project of the Open Source Collective. Review the Mautic GitHub repository for the code path and open issues related to the filter you plan to use, and check the issue history before you rely on a filter behavior in production.

Where should I start if I need to confirm Mautic's official installation and version facts?

Start with the official Mautic website, which hosts the free self-hosted download and the release information. Mautic has no paid edition of the software itself, and mautic.org also promotes separately managed Mautic and Mautic hosting services, so separate what you download from what a vendor sells. The install documentation covers the web installer, the command-line installer, and Composer with the recommended project template since version 4.0. Use the Mautic website as your entry point, then follow the installation guide for your release before you configure segment or cron settings.

How DeployOpen scopes and delivers Mautic segmentation

DeployOpen treats Mautic segment filters as part of the contact model, not as a last-minute query. We scope the UTM, page visit, email activity and point group conditions against your data and campaigns, then build and test them in a Mautic instance hosted in infrastructure you control, with documentation your marketing and operations teams can keep using.

How we scope

  • Inventory the UTM parameters, landing pages and campaign source values your team actually uses today.
  • List each segment, the business question it answers and the campaigns that will consume it.
  • Agree in writing which filters are in scope, which data sources feed them and what the fixed scope excludes.

How we build

  • Configure segment filters on UTM tags, page visits, email activity and point group scores, with test contacts for each rule.
  • Confirm that segment update cron jobs run on a staggered schedule and that rebuild times are checked against your contact volume.
  • Review filter logic on large contact tables for query cost and adjust indexes or filter order where the platform allows.

How we hand over

  • Deliver a segment register that records each filter's logic, owner, source fields and the campaigns that depend on it.
  • Document how to add a filter, test it against sample contacts and retire it without breaking active campaigns.
  • Walk through the build with your marketing operations and platform staff, with a retest of the agreed filters before sign-off.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the fixed-scope engagement ends.
  • Retainers can cover filter changes, cron monitoring and checks after each Mautic release on a supported line.
  • Ask any partner to confirm response expectations and service terms in the written quote before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.