# How to send UTM Tags to Mautic Contact when Submit a Form and/or click on a e-mail Link sent via Mautic?

**URL:** <https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384>\
**Category:** Product Support\
**Created:** [March 16, 2020, 7:13am UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384 "2020-03-16T07:13:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![acremonezi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/acremonezi/32/1681_2.png) [@acremonezi](https://forum.mautic.org/u/acremonezi)\
**Post date:** [March 16, 2020, 7:13am UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384/1 "2020-03-16T07:13:21Z")

</div>

My Mautic version is: 2.15.3  
My PHP version is: 7.0.33-0+deb9u6

**How to send UTM Tags to Mautic Contact when Submit a Form and/or click on a e-mail Link sent via Mautic?**

**Example:**  
I have a **Page URL** such as following, this URL has a Mautic Form:

[https://mydomain.com/contact/?utm\_campaign=test\_utm\_campaign&utm\_content=test\_utm\_content&utm\_medium=test\_utm\_medium&utm\_source=test\_utm\_source&utm\_term=test\_utm\_term](https://mydomain.com/contact/?utm_campaign=test_utm_campaign&utm_content=test_utm_content&utm_medium=test_utm_medium&utm_source=test_utm_source&utm_term=test_utm_term)

**The issue:**  
When I submit the Form, the UTM Tags **are not recorded** into the Mautic Contact.  
The same happens when I click on a e-mail sent via Mautic with this link.

**PS:**  
I have read several related issues here but I could not find anyone who document what are the requirements to have it working. Some people talk about to enable Google Analytics cross-domain, but I believe it is not the case.

**Please, How can I make this work?**  
**Thanks in advanced.**

---

<div class="post-metadata">

**Author:** ![mayanktiwaridotcom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mayanktiwaridotcom/32/1501_2.png) [@mayanktiwaridotcom](https://forum.mautic.org/u/mayanktiwaridotcom)\
**Post date:** [March 17, 2020, 2:14pm UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384/2 "2020-03-17T14:14:44Z")

</div>

Hey,

> **[UTM Tags - Mautic](https://mautic.com/help/utm-tags/)**
>
> Adding UTM Tags to Emails in Mautic is incredibly easy!
> To get started, open up a new or existing Email under Channels. 

  

> **[Tracking Visitor Data by Smart URL](https://www.mautic.org/blog/developer/tracking-visitor-data-by-smart-url)**
>
> Have you ever wondered if you could track more than just visits via the Mautic tracking script?

  
can you try one of these, and see if it works.

---

<div class="post-metadata">

**Author:** ![baffit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/baffit/32/2806_2.png) [@baffit](https://forum.mautic.org/u/baffit)\
**Post date:** [July 22, 2020, 9:43am UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384/3 "2020-07-22T09:43:36Z")

</div>

I’m trying to make this work but no luck  
the UTM Tags - Mautic guide says the email editor will automatically add the UTMs selected to any links you add to the email - no it does not  
and the UTM even if you add it manually does not record via the form or into segments or reports (at least I cannot see obvious steps to make it work)  
There is also no UTM column to be selected on the reports visit page, thus no obvious mapping of UTM on email into Mautic  
If anybody has a guide that actually makes this work I would very much appreciate the help

---

<div class="post-metadata">

**Author:** ![baffit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/baffit/32/2806_2.png) [@baffit](https://forum.mautic.org/u/baffit)\
**Post date:** [July 22, 2020, 10:07am UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384/4 "2020-07-22T10:07:19Z")

</div>

I’ve gone through the github : Tracking Visitor Data by Smart URL  
the script there doesn’t work either in v3.0.1,  
granted the solution was aimed at V2.15.2 or later  
I’m going to install v2.16.3 and see if I can make it work in the older version

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [July 22, 2020, 10:20am UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384/5 "2020-07-22T10:20:25Z")

</div>

I think you’re might be missing a step. Have you added the action “Record UTM Tags” under the forms “Actions” Tab?

![utm](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/256d19cbfd95d76adf315c2aa4820dcd0bf316a5.png)

---

<div class="post-metadata">

**Author:** ![baffit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/baffit/32/2806_2.png) [@baffit](https://forum.mautic.org/u/baffit)\
**Post date:** [July 22, 2020, 12:13pm UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384/6 "2020-07-22T12:13:13Z")

</div>

Deleted: no, first time I’ve seen that, i’ve added that to my form, but no difference]  
(probably stuffed something else up as my page visit report is not tracking visits any more)  
it also has no utm columns, what are the utm\_source equiv in mautic  
Edit1: No, first time I’ve seen that, I’ve added that to my form:  
I can see it in the contract’s log as “UTM Tag updated”  
Is there a way to see this:

- in a report or
- write it into a contact field  
Currently can’t see how to do that  
Also can’t see how to use custom URL values  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1c52082b4b171280cb1589169d26a1e6fe3d17ee.png)  
what I need is a step by step guide that explains this implementation

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [July 23, 2020, 10:14am UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384/7 "2020-07-23T10:14:19Z")

</div>

To see utm paramters in a report, you need to create a report that has UTM codes as its Data source

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/193e777fde0efc2e2b90e0e9c64474308f4ec4bb.png)  
Utm parameters are also available for segmenting

Your best bet with custom paramters is to add javascript on the landing page

---

<div class="post-metadata">

**Author:** ![baffit](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/baffit/32/2806_2.png) [@baffit](https://forum.mautic.org/u/baffit)\
**Post date:** [July 23, 2020, 10:21pm UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384/8 "2020-07-23T22:21:31Z")

</div>

@OmerGafny thanks now I’m closer to finding what i’m looking for, funny thing is I expected to find the UTM codes on contacts but somewhere along the process a snippet of js lead me to believe mautic capture this as part of page hits but it is not there on that report, also thinking about it now, why is it not on the page hit, since the same user could visit from different sources? Is the first or last value stored in the UTM\_Source in Contracts?  
I can make UTM work for my paticular problem, but it would be nice to make the custom one work, looks like i’ve a script for that, will update if I get it working.

---

<div class="post-metadata">

**Author:** ![Omer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omer/32/661_2.png) [@Omer](https://forum.mautic.org/u/Omer)\
**Post date:** [September 7, 2020, 4:51pm UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384/9 "2020-09-07T16:51:42Z")

</div>

Please update, i also need to save utm tags to custom fields…

perhaps with GTM?

---

<div class="post-metadata">

**Author:** ![chris0928](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris0928/32/118_2.png) [@chris0928](https://forum.mautic.org/u/chris0928)\
**Post date:** [September 9, 2020, 7:35pm UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384/10 "2020-09-09T19:35:51Z")

</div>

I haven’t tried this myself, but worth a look: [https://measureschool.com/capture-utm-parameters-in-form-fields/](https://measureschool.com/capture-utm-parameters-in-form-fields/)

---

<div class="post-metadata">

**Author:** ![ishixion](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ishixion/32/405_2.png) [@ishixion](https://forum.mautic.org/u/ishixion)\
**Post date:** [April 16, 2021, 4:00am UTC](https://forum.mautic.org/t/how-to-send-utm-tags-to-mautic-contact-when-submit-a-form-and-or-click-on-a-e-mail-link-sent-via-mautic/13384/11 "2021-04-16T04:00:02Z")

</div>

hi. I am hoping the support team can help me here. I am unable to collect utm parameters. All it collects is Form id.

I have record UTMs enabled in the form Actions. I can see the referrer being collected properly as well. Any help is appreciated. Here is the screenshot of what Mautic records.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/f91dbaa60b32cefea0536ae59fbf8d104e1a5ddc.jpeg)
