Skip to content

Commit

Permalink
chore: remove tracking scripts, now managed through gtm
Browse files Browse the repository at this point in the history
  • Loading branch information
chambaz committed Nov 2, 2024
1 parent 2f93090 commit 4ba9da5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 42 deletions.
14 changes: 0 additions & 14 deletions apps/marginfi-landing-page/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Script from "next/script";
import { SpeedInsights } from "@vercel/speed-insights/next";
import { GoogleAnalytics, GoogleTagManager } from "@next/third-parties/google";
import { Header } from "~/components/header";
Expand Down Expand Up @@ -27,19 +26,6 @@ export default function RootLayout({
<>
<GoogleAnalytics gaId="G-TS0DF3DM7G" />
<GoogleTagManager gtmId="GTM-53CZ2GG8" />
<Script
id="hotjar-script"
dangerouslySetInnerHTML={{
__html: `(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:5178229,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`,
}}
/>
<SpeedInsights />
</>
)}
Expand Down
14 changes: 0 additions & 14 deletions apps/marginfi-v2-trading/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";

import App, { AppContext, AppInitialProps, AppProps } from "next/app";
import Script from "next/script";
import { useRouter } from "next/router";
import { SpeedInsights } from "@vercel/speed-insights/next";

Expand Down Expand Up @@ -102,19 +101,6 @@ export default function MrgnApp({ Component, pageProps, path, bank }: AppProps &
<>
<GoogleAnalytics gaId="G-T5B2WRLKL9" />
<GoogleTagManager gtmId="GTM-WFBC4RZ7" />
<Script
id="hotjar-script"
dangerouslySetInnerHTML={{
__html: `(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:5178229,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`,
}}
/>
<SpeedInsights />
</>
)}
Expand Down
14 changes: 0 additions & 14 deletions apps/marginfi-v2-ui/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import App, { AppContext, AppInitialProps, AppProps } from "next/app";
import Script from "next/script";
import { SpeedInsights } from "@vercel/speed-insights/next";
import { GoogleAnalytics, GoogleTagManager } from "@next/third-parties/google";
import dynamic from "next/dynamic";
Expand Down Expand Up @@ -172,19 +171,6 @@ export default function MrgnApp({ Component, pageProps, path }: AppProps & MrgnA
<>
<GoogleAnalytics gaId="G-0ZTQRWVG02" />
<GoogleTagManager gtmId="GTM-KJJ3CR6Q" />
<Script
id="hotjar-script"
dangerouslySetInnerHTML={{
__html: `(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:5178229,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`,
}}
/>
<SpeedInsights />
</>
)}
Expand Down

0 comments on commit 4ba9da5

Please sign in to comment.