# Unable to pass UTM values to a webhook

**URL:** <https://forum.mautic.org/t/unable-to-pass-utm-values-to-a-webhook/29067>\
**Category:** Product Support\
**Created:** [August 25, 2023, 3:02pm UTC](https://forum.mautic.org/t/unable-to-pass-utm-values-to-a-webhook/29067 "2023-08-25T15:02:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![erthal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/erthal/32/6285_2.png) [@erthal](https://forum.mautic.org/u/erthal)\
**Post date:** [August 25, 2023, 3:02pm UTC](https://forum.mautic.org/t/unable-to-pass-utm-values-to-a-webhook/29067/1 "2023-08-25T15:02:34Z")

</div>

**My software**  
My Mautic version is: 4.4.8  
My PHP version is: 8.0.28  
My Database type and version is: 10.4.28-MariaDB-1:10.4.28+maria~ubu1804

**My problem**  
I am building a campaign that is triggered by a form. How to retrieve the UTM values (utm\_campaign, utm\_content, utm\_medium, utm\_source) and sent them to a webhook?

I´ve trried to use variables like {utm\_campaign} but looks like they do not exist!

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [August 25, 2023, 5:48pm UTC](https://forum.mautic.org/t/unable-to-pass-utm-values-to-a-webhook/29067/2 "2023-08-25T17:48:26Z")

</div>

hope this will help you:

> **[Record UTM tags in a Form](https://docs.mautic.org/en/components/forms/utm-tags-form)**
>
> . Form Action. UTM (Urchin Tracking Monitor) tags are usually used for tracking with Google Analytics. For this purpose, links are extended by UTM parameters. If a contact clicks on a link with such a UTM parameter, this click is recorded in Google...

---

<div class="post-metadata">

**Author:** ![erthal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/erthal/32/6285_2.png) [@erthal](https://forum.mautic.org/u/erthal)\
**Post date:** [August 25, 2023, 6:39pm UTC](https://forum.mautic.org/t/unable-to-pass-utm-values-to-a-webhook/29067/3 "2023-08-25T18:39:48Z")

</div>

Hey @leoschuler thanks for the help.

we´ve already used “record UTM tag” action but I still can´t access the UTM values…  
Diffferent from the article, in my case it only shows the formid:  
 ![MicrosoftTeams-image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/ec79a750135f574ab8abe27b99cced42354c6ad3.png)

And I have utm values in the url!!!

Any thoughts?

---

<div class="post-metadata">

**Author:** ![leoschuler](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/leoschuler/32/4798_2.png) [@leoschuler](https://forum.mautic.org/u/leoschuler)\
**Post date:** [August 28, 2023, 12:31pm UTC](https://forum.mautic.org/t/unable-to-pass-utm-values-to-a-webhook/29067/4 "2023-08-28T12:31:37Z")

</div>

how are you embedding the form in your page? if you using the `via iframe` option the form will have a different url from the page, which might be causing the issue. my recomendation is to use the `via javascript` option and make sure the mautic tracking code is also installed in the page.

---

<div class="post-metadata">

**Author:** ![erthal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/erthal/32/6285_2.png) [@erthal](https://forum.mautic.org/u/erthal)\
**Post date:** [August 31, 2023, 7:28pm UTC](https://forum.mautic.org/t/unable-to-pass-utm-values-to-a-webhook/29067/5 "2023-08-31T19:28:00Z")

</div>

You are right. Thank you for the assistance!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [September 2, 2023, 7:28am UTC](https://forum.mautic.org/t/unable-to-pass-utm-values-to-a-webhook/29067/6 "2023-09-02T07:28:57Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
