Skip to content

Commit be976b8

Browse files
📝 (app/layout.tsx): remove hardcoded Google AdSense account meta tag and move it to a separate configuration file
♻️ (components/Cookie.tsx): refactor script tag for Google AdSense to use dynamic import instead of inline script ✨ (components/Cookie.tsx): remove hardcoded Google AdSense script tag and load it dynamically using the account ID from a configuration file
1 parent 345542a commit be976b8

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

app/layout.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ type RootLayoutProps = {
103103
export default function RootLayout({ children }: RootLayoutProps) {
104104
return (
105105
<html lang="en">
106-
<meta
107-
name="google-adsense-account"
108-
content="ca-pub-4827919789464418"
109-
></meta>
110106
<body className="bg-slate-900">
111107
<ApolloProvider>
112108
<TopNav />

components/Cookie.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ const Cookie: FC = () => {
4646
});
4747
`}
4848
</Script>
49-
<Script
50-
src={`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4827919789464418`}
51-
/>
5249
</>
5350
);
5451
};

0 commit comments

Comments
 (0)