How to track everything: Google Ads Gclid and Google Analytics CID for HuSpot Meeting via Chat etc.
SOLVE
Hi. I'm not a complete newbee to Google Ads GA & GTM, but I am new to Hubspot. So I've just digged into the subject above and structured my inquiry for you hopefully to advice more:
1. Track Google Ads Glcid - it goes with native Hubspot integration. Any alternatives to track more than two Google Ads accounts per one Hubspot account?
How to track everything: Google Ads Gclid and Google Analytics CID for HuSpot Meeting via Chat etc.
SOLVE
So we helped ourselves 🙂 If it's about to track offline sales and/or offline conversions in GA, the CID field is by far not a single one you need to track to bypass GA filter as well as to send a proper GEO of a user, not a server. We use our own developement - GTM tag to track all the needed dats and inject them as a hidden Non HubSpot form fields, that can still be tracked by HubSpot. The rest is done by a connector (Zapier dosn't do this preperly).
How to track everything: Google Ads Gclid and Google Analytics CID for HuSpot Meeting via Chat etc.
SOLVE
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.
If you need help with store the GCLID, paste the code below into tagmanager using all pages as the trigger.
<script>
function getParam(p) { var match = RegExp('[?&]' + p + '=([^&]*)').exec(window.location.search); return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); }
function getExpiryRecord(value) { var expiryPeriod = 90 * 24 * 60 * 60 * 1000; // 90 day expiry in milliseconds
var expiryDate = new Date().getTime() + expiryPeriod; return { value: value, expiryDate: expiryDate }; }
function addGclid() { var gclidParam = getParam('gclid'); var gclidFormFields = ['gclid_field', 'foobar']; // all possible gclid form field ids here var gclidRecord = null; var currGclidFormField;
var gclsrcParam = getParam('gclsrc'); var isGclsrcValid = !gclsrcParam || gclsrcParam.indexOf('aw') !== -1;
How to track everything: Google Ads Gclid and Google Analytics CID for HuSpot Meeting via Chat etc.
SOLVE
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.
If you need help with store the GCLID, paste the code below into tagmanager using all pages as the trigger.
<script>
function getParam(p) { var match = RegExp('[?&]' + p + '=([^&]*)').exec(window.location.search); return match && decodeURIComponent(match[1].replace(/\+/g, ' ')); }
function getExpiryRecord(value) { var expiryPeriod = 90 * 24 * 60 * 60 * 1000; // 90 day expiry in milliseconds
var expiryDate = new Date().getTime() + expiryPeriod; return { value: value, expiryDate: expiryDate }; }
function addGclid() { var gclidParam = getParam('gclid'); var gclidFormFields = ['gclid_field', 'foobar']; // all possible gclid form field ids here var gclidRecord = null; var currGclidFormField;
var gclsrcParam = getParam('gclsrc'); var isGclsrcValid = !gclsrcParam || gclsrcParam.indexOf('aw') !== -1;
How to track everything: Google Ads Gclid and Google Analytics CID for HuSpot Meeting via Chat etc.
SOLVE
So we helped ourselves 🙂 If it's about to track offline sales and/or offline conversions in GA, the CID field is by far not a single one you need to track to bypass GA filter as well as to send a proper GEO of a user, not a server. We use our own developement - GTM tag to track all the needed dats and inject them as a hidden Non HubSpot form fields, that can still be tracked by HubSpot. The rest is done by a connector (Zapier dosn't do this preperly).
2- Based on the discussion so far, there are some suggestions on the functions they can use to track the user's page views, there is no article or guide on this so far, you might want to check out if the other community thread linked by Isaac is relevant to what you want to do here.
3-If I am not wrong then you want to track the conversions on meeting links, based on the conversations done in your live chats? If so, then
you could create a report to show the sales activities and contacts, then filter the sales activities by "meetings" and show the "meeting source"
It could possibly show you different meeting source based on where the contact got the meeting link from