Skip to content

Commit 65db1a7

Browse files
feat: add Google Tag Manager integration to index.html (#115)
1 parent 713de02 commit 65db1a7

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,20 @@
2121
a.appendChild(r);
2222
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
2323
</script>
24+
<!-- Google Tag Manager -->
25+
<script>
26+
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
27+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
28+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
29+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
30+
})(window,document,'script','dataLayer','GTM-P7KSD4T');
31+
</script>
32+
<!-- End Google Tag Manager -->
2433
</head>
2534
<body>
35+
<noscript>
36+
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P7KSD4T" height="0" width="0" style="display:none;visibility:hidden"></iframe>
37+
</noscript>
2638
<div id="root"></div>
2739
<script type="module" src="/src/main.tsx"></script>
2840
</body>

src/layouts/MainLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function MainLayout() {
1414
return (
1515
<div className="flex">
1616
<NavBar />
17-
<div className="m:px-10 mx-auto w-full max-w-[1260px] px-6">
17+
<div className="mx-auto w-full max-w-[1260px] px-6 md:px-10">
1818
<TopNavBar />
1919
<div className="mt-10 mb-24 max-w-[1260px]">
2020
{!isConnected ? <ConnectWallet /> : <Outlet />}

0 commit comments

Comments
 (0)