<?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: CTA long url in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/517815#M25810</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;, thanks for mentioning!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/194791"&gt;@HJack&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first question is, why don't you want to have long urls inside your CTA?&lt;/P&gt;
&lt;P&gt;The CTA from HubSpot needs to have these parameters to track events.&lt;/P&gt;
&lt;P&gt;I don't think you can disable it, since it won't have the effect of tracking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't want the long url, you can make your custom CTA's within by building a custom module.&lt;/P&gt;
&lt;P&gt;For tracking you can use multiple ways to track this like:&lt;/P&gt;
&lt;P&gt;- Adding UTM tags to every link&lt;/P&gt;
&lt;P&gt;- Setup GTM and specify the CTA's&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my opinion, you sould build custom CTA's witin your modules. You don't need to track every CTA on every section that will link to internal pages unless it's a landingpage. HubSpot CTA's will add javascript that will slow down your page that can effect website performance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Oct 2021 06:37:20 GMT</pubDate>
    <dc:creator>Indra</dc:creator>
    <dc:date>2021-10-29T06:37:20Z</dc:date>
    <item>
      <title>CTA long url</title>
      <link>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/516856#M25769</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The CTA links appear to be a long text with tracking parameters and I don't want it.&amp;nbsp;Is there a way to track not through CTA buttons - but through the JS code? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:59:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/516856#M25769</guid>
      <dc:creator>HJack</dc:creator>
      <dc:date>2021-10-27T17:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: CTA long url</title>
      <link>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/517408#M25789</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78983"&gt;@Indra&lt;/a&gt; ,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/110527"&gt;@daveroma&lt;/a&gt; : any thoughts here?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 15:02:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/517408#M25789</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-10-28T15:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: CTA long url</title>
      <link>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/517815#M25810</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;, thanks for mentioning!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/194791"&gt;@HJack&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first question is, why don't you want to have long urls inside your CTA?&lt;/P&gt;
&lt;P&gt;The CTA from HubSpot needs to have these parameters to track events.&lt;/P&gt;
&lt;P&gt;I don't think you can disable it, since it won't have the effect of tracking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't want the long url, you can make your custom CTA's within by building a custom module.&lt;/P&gt;
&lt;P&gt;For tracking you can use multiple ways to track this like:&lt;/P&gt;
&lt;P&gt;- Adding UTM tags to every link&lt;/P&gt;
&lt;P&gt;- Setup GTM and specify the CTA's&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my opinion, you sould build custom CTA's witin your modules. You don't need to track every CTA on every section that will link to internal pages unless it's a landingpage. HubSpot CTA's will add javascript that will slow down your page that can effect website performance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 06:37:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/517815#M25810</guid>
      <dc:creator>Indra</dc:creator>
      <dc:date>2021-10-29T06:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: CTA long url</title>
      <link>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/519071#M25880</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78983"&gt;@Indra&lt;/a&gt;&amp;nbsp;, thanks for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I specify the CTA by setting up the GTM?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 16:19:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/519071#M25880</guid>
      <dc:creator>HJack</dc:creator>
      <dc:date>2021-11-01T16:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: CTA long url</title>
      <link>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/520098#M25905</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/194791"&gt;@HJack&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't fully explain how to setup the GTM, but on there are plenty tutorials on &lt;A href="https://www.youtube.com/results?search_query=gtm+button+click+tracking" target="_blank" rel="noopener"&gt;YouTube&lt;/A&gt; how yopu can setup these &lt;A href="https://www.youtube.com/results?search_query=gtm+button+click+tracking" target="_blank" rel="noopener"&gt;button click tracking for Google Tag Manager&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't know the basics of Google Tag Manager, I suggest to first check simple tutorials on &lt;A href="https://www.youtube.com/results?search_query=gtm" target="_blank" rel="noopener"&gt;YouTube&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Hope this will help.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 08:34:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/520098#M25905</guid>
      <dc:creator>Indra</dc:creator>
      <dc:date>2021-11-03T08:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: CTA long url</title>
      <link>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/943700#M38344</link>
      <description>&lt;P&gt;Hi Jack , Apply this in main JS file.&lt;BR /&gt;via using this JS you can shorten the url (Replace the CTA class if different i belive you don't need to change anything)&lt;BR /&gt;&lt;SPAN&gt;// Get all links with class 'cta_button' var linkscta = document.querySelectorAll('a.cta_button'); // Loop through all links and add a click event listener for (var i = 0; i &amp;lt; linkscta.length; i++) { linkscta[i].addEventListener('click', function(event) { // Prevent the default link behavior event.preventDefault(); // Get the link's href var href = this.getAttribute('href'); // Remove any HubSpot tracking parameters from the href href = href.replace(/\?__hstc=.+&amp;amp;?/, '?'); href = href.replace(/&amp;amp;__hssc=.+&amp;amp;?/, '&amp;amp;'); href = href.replace(/&amp;amp;__hstc=.+$/, ''); href = href.replace(/([&amp;amp;?])hsCtaTracking=([^&amp;amp;%]*(%7C[^&amp;amp;]*)?)/, '$1'); // href = href.replace(/[?&amp;amp;]utm_(source|medium|campaign|term|content)=[^&amp;amp;#]+/gi, ''); // href = href.replace(/[?&amp;amp;]fbclid=[^&amp;amp;#]+/gi, ''); // href = href.replace(/[?&amp;amp;]utm_(source|medium|campaign|term|content)=twitter[^&amp;amp;#]+/gi, ''); // href = href.replace(/[?&amp;amp;]utm_(source|medium|campaign|content)=linkedin[^&amp;amp;#]+/gi, ''); // Navigate to the new URL window.location.href = href; }); }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 11:47:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/CTA-long-url/m-p/943700#M38344</guid>
      <dc:creator>Jatin-k-rajput</dc:creator>
      <dc:date>2024-03-14T11:47:45Z</dc:date>
    </item>
  </channel>
</rss>

