I’ve managed to work out how to configure Google Search Console to track a sub-domain in the format https://knowledge.spadesmedia.com submitted a sitemap.
But I was a bit perplexed to find that aside from the HubSpot tracking tag there is no way to add in the GA or GTM container to knowledge base articles.
Not sure if this is an oversight, a bug or a feature request.
Can’t seem to find anyone else reporting it.
It would be helpful because we could then create remarketing lists in Google Ads or Facebook (or anywhere else for that matter) where people might have viewed a page or a category.
HubSpot currently doesn’t support any custom scripts on the Knowledge Base (including Google Analytics). If you would like to see this implemented in the future, I would recommend creating an idea in our ideas forum.
I wanted to share this workaround for you to use in order to add the GA to the Knowledgebase. In order for this to work you would need access to the Marketing Hub to be able to edit the specific domain the knowledgebase is hosted on.
Choose the domain here (Settings > Website > Pages > Integrations):
This dpesn’t help us, because we are using the Google Tag-Manager and want to add more than just Google Analytics to the knowledge-Base. In order to comply to the new European Cookie-Policy we need to add a script into the header that integrates a Cookie-Banner that also makes sure all of our tracking is running correctly.