# RE: Storing a custom URL parameter value

**URL:** <https://community.hubspot.com/t/re-storing-a-custom-url-parameter-value/76924>\
**Category:** Reporting & Analytics\
**Tags:** developer, how-to\
**Created:** [March 10, 2023, 11:12am UTC](https://community.hubspot.com/t/re-storing-a-custom-url-parameter-value/76924 "2023-03-10T11:12:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LAryan](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@LAryan](https://community.hubspot.com/u/LAryan)\
**Post date:** [March 10, 2023, 11:12am UTC](https://community.hubspot.com/t/re-storing-a-custom-url-parameter-value/76924/1 "2023-03-10T11:12:22Z")

</div>

Hi there,

I have created a custom parameter called urltype and I want to store the value in a custom property called urltype. How can I extract the value of the parameter from the URL and store it in the custom property?

Regards,

Lokesh

---

<div class="post-metadata">

**Author:** ![Jake\_Lett](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jake_lett/32/45178_2.png) [@Jake\_Lett](https://community.hubspot.com/u/Jake_Lett)\
**Post date:** [March 10, 2023, 11:33am UTC](https://community.hubspot.com/t/re-storing-a-custom-url-parameter-value/76924/2 "2023-03-10T11:33:59Z")

</div>

Hi Lokesh,

Give [this post a look](https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/How-to-pass-UTM-parameters-to-HubSpot-form/td-p/491554) - You basically create a field with the same name as the url property and then set that as a hidden field on your forms. If that parameter is present when the form is submitted, it will be collected by the form submission event.

I use this for UTM and google ad parameters, which is very helpful in knowing what is actually driving new leads. For example, out of the 100 form submissions we received the best leads searched “best x software for manufacturing” in Google search ads.

---

<div class="post-metadata">

**Author:** ![LAryan](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@LAryan](https://community.hubspot.com/u/LAryan)\
**Post date:** [March 10, 2023, 11:51am UTC](https://community.hubspot.com/t/re-storing-a-custom-url-parameter-value/76924/3 "2023-03-10T11:51:31Z")

</div>

Thanks. But what if I am not using Hubspot forms?
