Adding sitewide Google Analytics or Google Tag Manager to Knowledge Base
SOLVE
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.
Anyone worked it out?
Jim BanksSetup, media buying and support for ecommerce merchants using Shopify who want to leverage the HubSpot Growth Stack. HubSpot Gold Partner
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):
and then toggle the "Integrate with Google Analytics" for the domain the knowledgebase is hosted on.
You can ignore the blue banner with the alert, this does not apply in this case.
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):
and then toggle the "Integrate with Google Analytics" for the domain the knowledgebase is hosted on.
You can ignore the blue banner with the alert, this does not apply in this case.
Adding sitewide Google Analytics or Google Tag Manager to Knowledge Base
SOLVE
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.
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.