<?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 Ads Offline Conversion Tracking: Get GCLID &amp;amp; FB Lead ID in Ads</title>
    <link>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/397922#M960</link>
    <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when thinking about sending offline conversion data back to Google Ads and Facebook Ads from Hubspot (so MQL / SQL etc. values via events - great feature by the way!), I came accross this post:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.hubspot.com/ads/create-and-sync-crm-lifecycle-events-with-your-google-ads-or-facebook-ad-accounts" target="_blank"&gt;https://knowledge.hubspot.com/ads/create-and-sync-crm-lifecycle-events-with-your-google-ads-or-facebook-ad-accounts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the bottom part it says that GCLID and FB Lead ID are send back to the ad tools. This, of course, implies that they are necessary within Hubspot, too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone know how Hubspot captures them? Is it done automatically or do I need to implement it manually in the form tracking (hidden form fields)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone can help?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 12:50:15 GMT</pubDate>
    <dc:creator>sb_1</dc:creator>
    <dc:date>2021-01-08T12:50:15Z</dc:date>
    <item>
      <title>Ads Offline Conversion Tracking: Get GCLID &amp; FB Lead ID</title>
      <link>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/397922#M960</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when thinking about sending offline conversion data back to Google Ads and Facebook Ads from Hubspot (so MQL / SQL etc. values via events - great feature by the way!), I came accross this post:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.hubspot.com/ads/create-and-sync-crm-lifecycle-events-with-your-google-ads-or-facebook-ad-accounts" target="_blank"&gt;https://knowledge.hubspot.com/ads/create-and-sync-crm-lifecycle-events-with-your-google-ads-or-facebook-ad-accounts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the bottom part it says that GCLID and FB Lead ID are send back to the ad tools. This, of course, implies that they are necessary within Hubspot, too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone know how Hubspot captures them? Is it done automatically or do I need to implement it manually in the form tracking (hidden form fields)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe someone can help?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 12:50:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/397922#M960</guid>
      <dc:creator>sb_1</dc:creator>
      <dc:date>2021-01-08T12:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ads Offline Conversion Tracking: Get GCLID &amp; FB Lead ID</title>
      <link>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/397977#M961</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/157608"&gt;@sb_1&lt;/a&gt;&amp;nbsp;! Glad you're liking the offline conversions feature. For Google you will need to make sure auto tagging is turned off, which ensures that Google will automatically add the GCLID to the URL as well as having HS Ads auto tracking turned off. This way when contacts click and convert on your ad that will get stored on the contact record under the "google click id" property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Facebook, the offline conversions feature only works with lead ad conversions, so if you are running lead ads any time a new lead comes through it will automatically have a lead id on the contact record.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Jason&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 15:27:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/397977#M961</guid>
      <dc:creator>jfrade</dc:creator>
      <dc:date>2021-01-08T15:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ads Offline Conversion Tracking: Get GCLID &amp; FB Lead ID</title>
      <link>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/398265#M964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/71177"&gt;@jfrade&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks very much - really helps und solves our issue! There would be one additional question &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Is it planned to also enable sending offline conversions to LinkedIn lead gen ads?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;sb&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2021 18:16:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/398265#M964</guid>
      <dc:creator>sb_1</dc:creator>
      <dc:date>2021-01-10T18:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ads Offline Conversion Tracking: Get GCLID &amp; FB Lead ID</title>
      <link>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/398460#M965</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/157608"&gt;@sb_1&lt;/a&gt;&amp;nbsp;not at this time, we only have offline conversions for Facebook and Google.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 14:36:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/398460#M965</guid>
      <dc:creator>jfrade</dc:creator>
      <dc:date>2021-01-11T14:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ads Offline Conversion Tracking: Get GCLID &amp; FB Lead ID</title>
      <link>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/510232#M1336</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/71177"&gt;@jfrade&lt;/a&gt;&amp;nbsp;what would be the best way to take advantage of hubspot lifecycle stage changes in Facebook if I'm not runing a Lead Ads campaign but rather a standard form submit conversion on a landing page. I'm asking because I noticed we don't sync any lifecycle stage events back with facebook, only with google, and it appears this is due to not running any lead ads campaigns (poor quaility for us). Would it be best to make an audience based around an MQL segmented contact list for example?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 23:17:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/510232#M1336</guid>
      <dc:creator>MadLeads</dc:creator>
      <dc:date>2021-10-13T23:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ads Offline Conversion Tracking: Get GCLID &amp; FB Lead ID</title>
      <link>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/528756#M1396</link>
      <description>&lt;P&gt;Was this a typo? Pretty sure auto-tagging needs to be turned ON for Google to append GCLIDs to the URL?&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;"For Google you will need to make sure auto tagging is turned off, which ensures that Google will automatically add the GCLID to the URL"&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 01:32:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/528756#M1396</guid>
      <dc:creator>MCPDX</dc:creator>
      <dc:date>2021-11-19T01:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ads Offline Conversion Tracking: Get GCLID &amp; FB Lead ID</title>
      <link>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/764136#M1904</link>
      <description>&lt;P&gt;I figured out how to store and capture the GCLID using the code below in Tagmanager for contacts in Hubspot. However, I still need code to do the same thing for the MSCLKID (Microsoft Click ID for Microsoft Ads). If you know how to fix this problem, please paste the code for tagmanager in the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need help with storing the GCLID, paste the code below into tagmanager using all pages as the trigger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function getParam(p) {&lt;BR /&gt;var match = RegExp('[?&amp;amp;]' + p + '=([^&amp;amp;]*)').exec(window.location.search);&lt;BR /&gt;return match &amp;amp;&amp;amp; decodeURIComponent(match[1].replace(/\+/g, ' '));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function getExpiryRecord(value) {&lt;BR /&gt;var expiryPeriod = 90 * 24 * 60 * 60 * 1000; // 90 day expiry in milliseconds&lt;/P&gt;&lt;P&gt;var expiryDate = new Date().getTime() + expiryPeriod;&lt;BR /&gt;return {&lt;BR /&gt;value: value,&lt;BR /&gt;expiryDate: expiryDate&lt;BR /&gt;};&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function addGclid() {&lt;BR /&gt;var gclidParam = getParam('gclid');&lt;BR /&gt;var gclidFormFields = ['gclid_field', 'foobar']; // all possible gclid form field ids here&lt;BR /&gt;var gclidRecord = null;&lt;BR /&gt;var currGclidFormField;&lt;/P&gt;&lt;P&gt;var gclsrcParam = getParam('gclsrc');&lt;BR /&gt;var isGclsrcValid = !gclsrcParam || gclsrcParam.indexOf('aw') !== -1;&lt;/P&gt;&lt;P&gt;gclidFormFields.forEach(function (field) {&lt;BR /&gt;if (document.getElementById(field)) {&lt;BR /&gt;currGclidFormField = document.getElementById(field);&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;if (gclidParam &amp;amp;&amp;amp; isGclsrcValid) {&lt;BR /&gt;gclidRecord = getExpiryRecord(gclidParam);&lt;BR /&gt;localStorage.setItem('gclid', JSON.stringify(gclidRecord));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;var gclid = gclidRecord || JSON.parse(localStorage.getItem('gclid'));&lt;BR /&gt;var isGclidValid = gclid &amp;amp;&amp;amp; new Date().getTime() &amp;lt; gclid.expiryDate;&lt;/P&gt;&lt;P&gt;if (currGclidFormField &amp;amp;&amp;amp; isGclidValid) {&lt;BR /&gt;currGclidFormField.value = gclid.value;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;window.addEventListener('load', addGclid);&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will also have to create a property in Hubspot called gclid and change it to hidden on your forms.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 05:42:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/764136#M1904</guid>
      <dc:creator>Danielle1</dc:creator>
      <dc:date>2023-03-04T05:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ads Offline Conversion Tracking: Get GCLID &amp; FB Lead ID</title>
      <link>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/769739#M1918</link>
      <description>&lt;P&gt;Hi Jason, which is the Contact property where the Facebook Lead ID is stored?&lt;/P&gt;&lt;P&gt;Thanks so much&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 14:17:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/769739#M1918</guid>
      <dc:creator>ASavoi</dc:creator>
      <dc:date>2023-03-16T14:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ads Offline Conversion Tracking: Get GCLID &amp; FB Lead ID</title>
      <link>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/1257385#M4465</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HubSpot does capture the GCLID and Facebook Click ID automatically, but only under certain conditions that often don't work reliably in practice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The built-in tracking only captures these click IDs if the visitor completes a HubSpot form on the exact same page they initially landed on from the ad. If they browse around your site before converting (which most visitors do), the click IDs get lost from the URL and aren't captured.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It also only works if you're using HubSpot Forms. If you're using a different form tool (Gravity Forms, Typeform, Jotform, etc) and then sending leads into HubSpot from those tools, it won't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a few ways to solve this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could write custom JavaScript to capture the GCLID and FBCLID when visitors first land, store them in cookies, and then populate hidden fields on your HubSpot forms. This requires ongoing maintenance as browsers update and your site evolves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, there are tools like Attributer that handle this automatically. They capture the click IDs the moment someone lands on your site, store them reliably, and write them into hidden fields on your forms when they're submitted (works with 50+ form tools including HubSpot forms). This means the data flows into HubSpot every time, and then gets sent back to Google Ads and Facebook when you trigger those offline conversion events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: AI helped me draft this response as I'm not a great writer, though I've reviewed and refined it based on my experience before posting.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 04:39:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Ads/Ads-Offline-Conversion-Tracking-Get-GCLID-amp-FB-Lead-ID/m-p/1257385#M4465</guid>
      <dc:creator>azisbak</dc:creator>
      <dc:date>2026-03-10T04:39:56Z</dc:date>
    </item>
  </channel>
</rss>

