The default HubSpot Google Analytics integration doesn't allow for any customisation. We recommend you disable this and manually add the Google tracking script to the header of your pages.
Unfortunately the default Google Analytics integration from HubSpot doesn't allow us to access the ga() function which is vital in order to capture the Google Client ID accurately.
To solve this follow the steps below:
Step 1: Get your standard Google Analytics tracking code: (you can also use one of our samples here and swap out the tracking ID). Google Tag manager will also work.
Step 2: Disable the standard HubSpot Google Analytics integration:
Step 3: Add your Google Analytics Tracking code to the head of all your pages:
And you are done!
Now the ga() function will be available for us to extract the Google Client ID.