From f9b19e3adcd66a7859a8ed397beb0893c541adef Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 8 May 2025 21:40:50 +0200 Subject: Fix GA --- README.md | 2 -- src/config.ts | 1 + src/pages/index.astro | 14 +++++++++++++- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 src/config.ts diff --git a/README.md b/README.md index 44c0957..d820fa3 100644 --- a/README.md +++ b/README.md @@ -16,5 +16,3 @@ $ npm run dev ## Deployment Deployment is automated from `master` branch via Vercel. - - \ No newline at end of file diff --git a/src/config.ts b/src/config.ts new file mode 100644 index 0000000..22ac32e --- /dev/null +++ b/src/config.ts @@ -0,0 +1 @@ +export const GOOGLE_ANALYTICS_ID = "G-31LHNP2G97"; diff --git a/src/pages/index.astro b/src/pages/index.astro index c750c0a..6df6391 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,6 +2,7 @@ import Cidr from "../components/Cidr"; import "../styles/global.css"; +import { GOOGLE_ANALYTICS_ID } from "../config"; const metadata = { title: "Interactive visual CIDR and IP range calculator", @@ -15,8 +16,19 @@ const metadata = { - {metadata.title} + +