# UTM captures landing page

**URL:** <https://community.hubspot.com/t/utm-captures-landing-page/28058>\
**Category:** Reporting & Analytics\
**Tags:** professional\
**Created:** [November 16, 2020, 7:00pm UTC](https://community.hubspot.com/t/utm-captures-landing-page/28058 "2020-11-16T19:00:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mossjb](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mossjb/32/27794_2.png) [@mossjb](https://community.hubspot.com/u/mossjb)\
**Post date:** [November 16, 2020, 7:00pm UTC](https://community.hubspot.com/t/utm-captures-landing-page/28058/1 "2020-11-16T19:00:07Z")

</div>

We have multiple landing pages that we use for clients, each of which has multiple links that direct users to our app (not hosted on Hubspot).

Right now we manually update the UTM for each of these links for the specific page so we can track where they came from (eg [https://app.COMPANY.com/LINK1?utm\_source=PAGEa](https://app.COMPANY.com/LINK1?utm%5C_source=PAGEa) and [https://app.COMPANY.com/LINK1?utm\_source=PAGEb](https://app.COMPANY.com/LINK1?utm%5C_source=PAGEb)).

Is there an easy way to have the links autmatically insert the UTM code based upon the specific landing page? In the example above, automatically include PAGEa and PAGEb?

Thank you.

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [November 16, 2020, 7:25pm UTC](https://community.hubspot.com/t/utm-captures-landing-page/28058/2 "2020-11-16T19:25:56Z")

</div>

Hi @mossjb

You could create a [Custom Module](https://knowledge.hubspot.com/cos-general/create-and-edit-modules) that could be reused on your pages.

In the Custom Module you can call a [Page Variable](https://developers.hubspot.com/docs/cms/hubl/variables) in you code. In this example I’ve chosen “content\_id” although there may be something more suited to your tracking.

`https://app.COMPANY.com/LINK1?utm_source={{ content_id }}`

Does this work for you?

Mike

---

<div class="post-metadata">

**Author:** ![mossjb](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mossjb/32/27794_2.png) [@mossjb](https://community.hubspot.com/u/mossjb)\
**Post date:** [November 16, 2020, 7:27pm UTC](https://community.hubspot.com/t/utm-captures-landing-page/28058/3 "2020-11-16T19:27:48Z")

</div>

[@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) - thanks so much! Checking with the Marketing team here asap. Thank you again

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [November 16, 2020, 10:52pm UTC](https://community.hubspot.com/t/utm-captures-landing-page/28058/4 "2020-11-16T22:52:51Z")

</div>

You are welcome @mossjb,

We’ve built a few Custom Modules for our clients (we’re a Gold HubSpot Partner based in New Zealand) let me know if you want us to build something for you.

Cheers

Mike
