Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,27 @@ export const metadata = {

export default function RootLayout({ children }) {
return (
<>
<html lang="en">

{/* <!-- Google tag (gtag.js) --> */}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TKTWYJW41C"></script>
<script>
{`
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TKTWYJW41C"></script>
<script
dangerouslySetInnerHTML={{
__html:`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-TKTWYJW41C');
`}
</script>

gtag('config', 'G-TKTWYJW41C');`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Amanya-Brian is 'G-TKTWYJW41C' this a secret?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you think if we moved it to a .env file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HassanBahati yah! it should be added to the .env file

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me work on that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this resolved?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet.
image
Look at our dashboard.

}}
/>
<body className="flex min-h-screen flex-col justify-between">
<Navbar />
<main className="">{children}</main>
<Footer />
</body>
</html>
</>
);
}