How to use UTM tags as conditions in Mautic campaigns¶
Inside a Mautic campaign, you can branch the flow based on the UTM values recorded on a contact's profile. This is done through a "Contact field value" condition node, which has a dedicated UTM Tags section exposing all five standard UTM fields.
Depending on whether the contact's UTM data matches your condition, the campaign routes them down the "yes" or "no" path, letting you deliver different follow-up actions, emails, or wait steps based on where the contact originally came from.
Requirements¶
- The contact must have UTM data already recorded on their profile (via form submission with "Record UTM tags" or via a page visit with UTM parameters in the URL)
- Access to Mautic with permission to create or edit campaigns
- The campaign must already have a trigger (segment membership, form submission, etc.) configured before adding condition nodes
Step-by-step guide¶
- Open the campaign you want to configure by going to
Campaignsand clicking the campaign name, then opening the campaign builder. - Add a condition node by clicking the
+on your campaign flow and selectingCondition→Contact field value. - In the condition editor, scroll down to the UTM tags section. You will see all five UTM fields listed:
SourceMediumCampaignContentTerm
- Select the field you want to evaluate and enter the value to match (e.g. set
Mediumtoemail, orCampaigntospring_sale_2026). - Connect the condition node's Yes and No paths to the appropriate next steps in the campaign flow.
- Save the campaign and activate it.
How do I know if I executed this process correctly?¶
- Contacts with matching UTM values are correctly routed to the "Yes" path
Warning
The UTM condition evaluates the values currently recorded on the contact's profile at the moment the campaign processes them. If UTM data hasn't been captured yet when the contact enters the campaign (e.g. they entered before submitting the form that records UTM tags), the condition will evaluate against empty values and route them to "No". Order matters.