How to set up UTM tags in Dynamic Web Content blocks¶
When you add UTM fields to a Dynamic Web Content (DWC) block in Mautic, you're not filtering which contacts see the block — you're tagging the outbound links inside it. Every trackable link in the DWC content will automatically have your UTM parameters appended to it when the block renders on the page.
This means you can track in Google Analytics (or any other analytics tool) exactly how many people clicked links coming from that specific DWC block, without manually editing each URL in your content.
Requirements¶
- Access to the Mautic instance with permission to edit Dynamic Web Content
- A DWC block that contains at least one outbound link
- A Google Analytics (or equivalent) setup on the destination website to receive UTM-tagged traffic
Step-by-step guide¶
- Open the Dynamic Web Content block you want to configure by going to
Components→Dynamic Contentand clicking the block name. - Locate the UTM fields in the block settings — these are separate from the content body and the segment/filter conditions.
- Fill in the UTM fields you want to apply to links inside this block:
Campaign— the campaign name (e.g.spring_sale_2026)Medium— the channel type (e.g.website)Source— where the block is placed (e.g.dwc)Contentis optional — use it if you need finer-grained tracking
- Save the DWC block.
- Embed the block on the website.
- Test by visiting the page as an anonymous visitor, hovering over or clicking a link inside the DWC block, and confirming the destination URL now includes your UTM parameters, example:
https://yoursite.com/landing?utm_campaign=spring_sale_2026&utm_medium=website&utm_source=dwc
Warning
If a link in your DWC content already has UTM parameters hardcoded in it, Mautic may append a second set, resulting in a messy or broken URL. Keep links in DWC content clean (no manual UTM params) and let the block-level fields do the tagging.
How do I know if I executed this correctly?¶
- Links inside the DWC block include UTM parameters when rendered on the page
- Clicking a link and checking the destination URL in the browser address bar shows the correct parameters
- Traffic from that block appears as a distinct source/medium combination in Google Analytics
Note
Use a consistent naming across blocks. If one block uses source=dwc and another uses source=dynamic-web-content, your analytics data will be split across two rows and harder to compare.