Skip to content

Commit

Permalink
feat: Add Google Analytics (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
asyrafnorafandi authored Aug 31, 2024
1 parent 731eae1 commit 6816903
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import ParticlesBackground from "@/components/particles";
import { GoogleAnalytics } from "@next/third-parties/google";

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -22,6 +23,7 @@ export default function RootLayout({
</div>
</ParticlesBackground>
</body>
<GoogleAnalytics gaId="G-EJ5FCMTW57" />
</html>
);
}
22 changes: 21 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"lint": "next lint"
},
"dependencies": {
"@next/third-parties": "^14.2.7",
"@tsparticles/engine": "^3.5.0",
"@tsparticles/react": "^3.0.0",
"@tsparticles/slim": "^3.5.0",
"next": "14.2.7",
"next": "^14.2.7",
"react": "^18",
"react-dom": "^18",
"react-scroll": "^1.9.0"
Expand Down

0 comments on commit 6816903

Please sign in to comment.