Skip to content

Commit f27864e

Browse files
authored
✨ feat: add Google Analytics component for enhanced tracking and performance
1 parent 44e567d commit f27864e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/layouts/BaseLayout.astro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import FooterNav from "@components/FooterNav.astro";
3+
import GoogleAnalytics from "@components/GoogleAnalytics.astro";
34
import HeaderNav from "@components/HeaderNav.astro";
45
import "../styles/global.css";
56
@@ -35,6 +36,10 @@ const currentPath = Astro.url.pathname;
3536
<html lang="en" class="scroll-smooth">
3637
<head>
3738
<meta charset="UTF-8" />
39+
40+
<!-- Google Analytics -->
41+
<GoogleAnalytics id="G-LKVQYYL9XZ" />
42+
3843
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0" />
3944
<meta name="description" content={description} />
4045
<meta name="author" content="Avaab Razzaq" />

0 commit comments

Comments
 (0)