Skip to content
Documentation

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

  1. Open the campaign you want to configure by going to Campaigns and clicking the campaign name, then opening the campaign builder.
  2. Add a condition node by clicking the + on your campaign flow and selecting ConditionContact field value.
  3. In the condition editor, scroll down to the UTM tags section. You will see all five UTM fields listed:
    • Source
    • Medium
    • Campaign
    • Content
    • Term
  4. Select the field you want to evaluate and enter the value to match (e.g. set Medium to email, or Campaign to spring_sale_2026).
  5. Connect the condition node's Yes and No paths to the appropriate next steps in the campaign flow.
  6. 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.