Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
chore: remove GTM script
Browse files Browse the repository at this point in the history
  • Loading branch information
TuukkaIkius committed Jun 18, 2024
1 parent 03c03f7 commit 7246c84
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,27 +117,6 @@ const Analytics = () => {
</Script>
<Script src="https://js.qualified.com/qualified.js?token=GWPbwWJLtjykim4W" />
{/* End script for adding Qualified */}
{NEXT_PUBLIC_GTM_ID && (
<>
{/* Google Tag Manager */}
<Script id="script_gtm">
{`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','${NEXT_PUBLIC_GTM_ID}');`}
</Script>

{/* End Google Tag Manager */}
{/* Google Tag Manager (noscript) */}
<noscript
dangerouslySetInnerHTML={{
__html: `<iframe src="https://www.googletagmanager.com/ns.html?id=${NEXT_PUBLIC_GTM_ID}" height="0" width="0" style="display:none;visibility:hidden"></iframe>`,
}}
/>
{/* End Google Tag Manager (noscript) */}
</>
)}
{NEXT_PUBLIC_GTAG_ID && (
<>
{/* GTAG */}
Expand All @@ -154,12 +133,6 @@ const Analytics = () => {
});`}
</Script>
{/* End GTag */}
<noscript
dangerouslySetInnerHTML={{
__html: `<iframe src="https://www.googletagmanager.com/ns.html?id=${NEXT_PUBLIC_GTM_ID}" height="0" width="0" style="display:none;visibility:hidden"></iframe>`,
}}
/>
{/* End Google Tag Manager (noscript) */}
</>
)}
</>
Expand Down

0 comments on commit 7246c84

Please sign in to comment.