Skip to content

Commit

Permalink
fix ad unit script not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicarrojado committed May 28, 2023
1 parent 7eeded1 commit a80843c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions pages/_app.page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Layout from '@/components/layout';
import SeoTags from '@/components/seoTags';
import TagManager from '@/components/tagManager';
import AdUnitScript from '@/components/adUnitScript';
import '@/styles/globals.css';
import type { AppProps } from 'next/app';

Expand All @@ -9,6 +10,7 @@ export default function App({ Component, pageProps }: AppProps) {
<>
<SeoTags />
<TagManager />
<AdUnitScript />
<Layout>
<Component {...pageProps} />
</Layout>
Expand Down
5 changes: 1 addition & 4 deletions pages/_document.page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { Html, Head, Main, NextScript } from 'next/document';
import AdUnitScript from '@/components/adUnitScript';

export default function Document() {
return (
<Html lang="en">
<Head>
<AdUnitScript />
</Head>
<Head />
<body>
<Main />
<NextScript />
Expand Down

0 comments on commit a80843c

Please sign in to comment.