From d96f99e8dc2f7b3189fb4daf863b95ed2ab5fa35 Mon Sep 17 00:00:00 2001 From: Talgat The Random <36820511+RND332@users.noreply.github.com> Date: Fri, 14 Jun 2024 12:29:45 +0300 Subject: [PATCH] chore: Add Google Analytics tracking code to Layout.astro --- src/layouts/Layout.astro | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 45d4f6f..95af738 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -15,6 +15,19 @@ const pages: Array = [ + + @@ -42,7 +55,8 @@ const pages: Array = [ { pages.map((page, index) => { // case for index page - const currentPageId = currentPage == undefined ? "who" : currentPage; + const currentPageId = + currentPage == undefined ? "who" : currentPage; const isCurrentPage = currentPageId === page.id; let styles = "px-2 ";