Skip to content

Commit

Permalink
add : analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimnazry24 committed Oct 2, 2024
1 parent e7815a7 commit 452e2bb
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 12 deletions.
26 changes: 14 additions & 12 deletions app/layout.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Inter } from "next/font/google";
import { Analytics } from "@vercel/analytics";
import Footer from "./components/Footer";
import Header from "./components/Header";
import FooterNew from "./components/footer-new";
Expand Down Expand Up @@ -33,17 +34,18 @@ export const metadata = {

export default function RootLayout({ children }) {
return (
<html lang="en">
<body
className={`${inter.className} overflow-x-hidden relative max-w-[100vw]`}
>
<Alert />

<Header />
{children}
{/* <Footer /> */}
<FooterNew />
</body>
</html>
<Analytics>
<html lang="en">
<body
className={`${inter.className} overflow-x-hidden relative max-w-[100vw]`}
>
<Alert />
<Header />
{children}
{/* <Footer /> */}
<FooterNew />
</body>
</html>
</Analytics>
);
}
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@contentful/rich-text-types": "^16.3.4",
"@material-tailwind/react": "^2.1.10",
"@radix-ui/react-dialog": "^1.1.2",
"@vercel/analytics": "^1.3.1",
"buttercms": "^2.0.0",
"contentful": "^10.6.22",
"next": "14.1.0",
Expand Down

0 comments on commit 452e2bb

Please sign in to comment.