<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can I insert a custom parameter variable in the URL field that changes depending on the page? in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Can-I-insert-a-custom-parameter-variable-in-the-URL-field-that/m-p/1207846#M44234</link>
    <description>&lt;P&gt;I'm not sure I'm understanding exactly what information you're wanting to place in the URL, but I will confirm its possible to use HubL in CTA URLs to add dynamic information to them. For example to grab the URL of the current page you would add {{ content.absolute_url }} to the URL or {{ &lt;SPAN&gt;content.slug }} for the page slug&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;Like so:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-03 095305.png" style="width: 320px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/157393i81C32BC2D90E2ECD/image-dimensions/320x323?v=v2" width="320" height="323" role="button" title="Screenshot 2025-10-03 095305.png" alt="Screenshot 2025-10-03 095305.png" /&gt;&lt;/span&gt;&lt;BR /&gt;You can see a list of default HubL variables available in HubSpot's documentation here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/reference/hubl/variables" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/cms/reference/hubl/variables&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Oct 2025 15:00:46 GMT</pubDate>
    <dc:creator>alyssamwilie</dc:creator>
    <dc:date>2025-10-03T15:00:46Z</dc:date>
    <item>
      <title>Can I insert a custom parameter variable in the URL field that changes depending on the page?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-I-insert-a-custom-parameter-variable-in-the-URL-field-that/m-p/1207240#M44224</link>
      <description>&lt;P class=""&gt;I'm creating a CTA button using HubSpot's CTA feature with "Embed" format.&lt;/P&gt;&lt;P class=""&gt;I create a button like "Download Here" using HubSpot's CTA feature. I want to set the URL in the CTA button's URL field as follows:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;A href="https://example.com/download?myCTA?from=/mycolumn/XXX" target="_blank" rel="noopener"&gt;https://example.com/download?myCTA?from=/mycolumn/XXX&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;The "XXX" part above should contain the slug of the source column page. In other words, I think I need some mechanism to make it a variable. The source page is a URL of an article within HubSpot's blog type.&lt;/P&gt;&lt;P class=""&gt;Specifically: I think I need to either extract and reflect the trailing digits from the URL of the page where the CTA is embedded, or replace the XXX part with some kind of variable.&lt;/P&gt;&lt;P class=""&gt;First of all, I'd like to know if the above can be achieved given HubSpot CTA's specifications. By placing the CTA button, I want to track "which page the user came from" in GA4.&lt;/P&gt;&lt;P class=""&gt;Can I insert a custom parameter variable in the URL field that changes depending on the page?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 06:25:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-I-insert-a-custom-parameter-variable-in-the-URL-field-that/m-p/1207240#M44224</guid>
      <dc:creator>TMisuna</dc:creator>
      <dc:date>2025-10-02T06:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I insert a custom parameter variable in the URL field that changes depending on the page?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-I-insert-a-custom-parameter-variable-in-the-URL-field-that/m-p/1207362#M44228</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/749449"&gt;@TMisuna&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for posting to the Community!&lt;BR /&gt;&lt;BR /&gt;I understand that you want to know if HubSpot’s CTA feature allows you to dynamically insert a page-specific variable, such as the article slug, into the CTA button’s URL field so you can track which page a user came from in GA4.&lt;BR /&gt;&lt;BR /&gt;I'd like to tag in some of our Top Contributor to see if they have any ideas on this -- Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73173"&gt;@franksteiner79&lt;/a&gt; &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/54059"&gt;@GeorgeBThomas&lt;/a&gt; and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148101"&gt;@ChristinaKay&lt;/a&gt; I hope you all are having a wonderful week! Do any of you have any suggestions for &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/749449"&gt;@TMisuna&lt;/a&gt;&lt;/SPAN&gt;?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;Cassie, Community Manager&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 13:01:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-I-insert-a-custom-parameter-variable-in-the-URL-field-that/m-p/1207362#M44228</guid>
      <dc:creator>chighsmith</dc:creator>
      <dc:date>2025-10-02T13:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I insert a custom parameter variable in the URL field that changes depending on the page?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-I-insert-a-custom-parameter-variable-in-the-URL-field-that/m-p/1207846#M44234</link>
      <description>&lt;P&gt;I'm not sure I'm understanding exactly what information you're wanting to place in the URL, but I will confirm its possible to use HubL in CTA URLs to add dynamic information to them. For example to grab the URL of the current page you would add {{ content.absolute_url }} to the URL or {{ &lt;SPAN&gt;content.slug }} for the page slug&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;Like so:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-10-03 095305.png" style="width: 320px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/157393i81C32BC2D90E2ECD/image-dimensions/320x323?v=v2" width="320" height="323" role="button" title="Screenshot 2025-10-03 095305.png" alt="Screenshot 2025-10-03 095305.png" /&gt;&lt;/span&gt;&lt;BR /&gt;You can see a list of default HubL variables available in HubSpot's documentation here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/cms/reference/hubl/variables" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/cms/reference/hubl/variables&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 15:00:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-I-insert-a-custom-parameter-variable-in-the-URL-field-that/m-p/1207846#M44234</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2025-10-03T15:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can I insert a custom parameter variable in the URL field that changes depending on the page?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-I-insert-a-custom-parameter-variable-in-the-URL-field-that/m-p/1208547#M44251</link>
      <description>&lt;P&gt;Thank you for your thoughtful response.&lt;BR /&gt;I didn’t know that variables could be used in the URL field.&lt;BR /&gt;That seems to solve the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 10:18:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-I-insert-a-custom-parameter-variable-in-the-URL-field-that/m-p/1208547#M44251</guid>
      <dc:creator>TMisuna</dc:creator>
      <dc:date>2025-10-06T10:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can I insert a custom parameter variable in the URL field that changes depending on the page?</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-I-insert-a-custom-parameter-variable-in-the-URL-field-that/m-p/1208559#M44252</link>
      <description>&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;It looks like I’ll be able to solve it.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 10:33:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-I-insert-a-custom-parameter-variable-in-the-URL-field-that/m-p/1208559#M44252</guid>
      <dc:creator>TMisuna</dc:creator>
      <dc:date>2025-10-06T10:33:09Z</dc:date>
    </item>
  </channel>
</rss>

