Skip to content

Commit deb5891

Browse files
authored
Merge pull request #856 from subquery/chore/replace-google-tag-manager
chore: replace tag manager
2 parents 7052848 + 72ba47a commit deb5891

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

index.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,16 @@
8181
<link rel="preconnect" href="https://fonts.googleapis.com">
8282
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
8383

84+
<!-- Google Tag Manager -->
8485
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
85-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
86-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
87-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
88-
})(window,document,'script','dataLayer','GTM-PF5M4WSK');</script>
86+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
87+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
88+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
89+
})(window,document,'script','dataLayer','GTM-PF5M4WSK');</script>
90+
<!-- End Google Tag Manager -->
8991
</head>
9092
<body>
93+
9194
<noscript>You need to enable JavaScript to run this app.</noscript>
9295
<div id="root"></div>
9396
<script type="module" src="/src/index.tsx"></script>
@@ -101,5 +104,9 @@
101104
To begin the development, run `npm start` or `yarn start`.
102105
To create a production bundle, use `npm run build` or `yarn build`.
103106
-->
107+
<!-- Google Tag Manager (noscript) -->
108+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PF5M4WSK"
109+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
110+
<!-- End Google Tag Manager (noscript) -->
104111
</body>
105112
</html>

0 commit comments

Comments
 (0)