diff --git a/components/Head.js b/components/Head.js index b353336ad2da..65c8869950b9 100644 --- a/components/Head.js +++ b/components/Head.js @@ -30,7 +30,7 @@ export default function HeadComponent({ title = title ? `${title} | ${permTitle}` : permTitle; //enable google analytics - if (typeof window !== 'undefined') { + if (typeof window !== 'undefined' && window.location.hostname === 'asyncapi.com') { TagManager.initialize({gtmId: 'GTM-T58BTVQ'}) ReactGA.initialize('UA-109278936-1') ReactGA.pageview(window.location.pathname + window.location.search)