diff --git a/package.json b/package.json
index 4993c9f..74c55fb 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
"@astrojs/rss": "^1.0.0",
"@astrojs/sitemap": "^1.0.0",
"@astrojs/tailwind": "^1.0.0",
+ "@astrolib/google-analytics": "^0.2.1",
"@astrolib/seo": "^0.2.0",
"@fontsource/inter": "^4.5.12",
"@tailwindcss/typography": "^0.5.4",
diff --git a/src/components/core/GoogleAnalytics.astro b/src/components/core/GoogleAnalytics.astro
deleted file mode 100644
index 6a17fc0..0000000
--- a/src/components/core/GoogleAnalytics.astro
+++ /dev/null
@@ -1,16 +0,0 @@
----
-const { id = 'G-XXXXXXXXXX', partytown = false } = Astro.props;
-
-const attrs = partytown ? { type: 'text/partytown' } : {};
----
-
-
-
-
diff --git a/src/components/core/MetaTags.astro b/src/components/core/MetaTags.astro
index 6354ff8..cf5ab3d 100644
--- a/src/components/core/MetaTags.astro
+++ b/src/components/core/MetaTags.astro
@@ -1,9 +1,9 @@
---
import { AstroSeo } from "@astrolib/seo"
+import { GoogleAnalytics } from "@astrolib/google-analytics"
import { getImage } from '@astrojs/image';
import { getRelativeUrlByFilePath } from '~/utils/directories';
-import GoogleAnalytics from '~/components/core/GoogleAnalytics.astro';
import defaultImageSrc from '~/assets/images/default.png';
import { SITE } from '~/config.mjs';
@@ -74,6 +74,6 @@ const image =
{SITE.googleSiteVerificationId && }
-{SITE.googleAnalyticsId && }
+{SITE.googleAnalyticsId && }