Skip to content

Commit 880adf7

Browse files
Fix GTM Script (#5)
1 parent e320162 commit 880adf7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/blog-starter-kit/themes/enterprise/components/integrations.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ export function Integrations() {
6060
`;
6161

6262
const googleTagManager = `
63-
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
64-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
65-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
66-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
67-
})(window,document,'script','dataLayer','GTM-MNN47J3');</script>`;
63+
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
64+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
65+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
66+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
67+
})(window,document,'script','dataLayer','GTM-MNN47J3');`;
6868

6969
useEffect(() => {
7070
// @ts-ignore

0 commit comments

Comments
 (0)