Skip to content

Commit

Permalink
feat: add google tag manager
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrTamer23 committed Feb 1, 2025
1 parent e7b1ec8 commit 79fa93c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@astrojs/tailwind": "5.1.3",
"@astrojs/vercel": "8.0.0",
"@astrojs/vue": "5.0.1",
"@digi4care/astro-google-tagmanager": "^1.4.0",
"@emailjs/browser": "^3.12.1",
"@fontsource-variable/fira-code": "^5.1.0",
"@iconify/json": "^2.2.279",
Expand Down
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

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

6 changes: 6 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ import "./../global.css";
import { ViewTransitions } from "astro:transitions";
import "@fontsource-variable/fira-code";
import { SEO } from "astro-seo";
import {
GoogleTagmanager,
GoogleTagmanagerNoscript,
} from "@digi4care/astro-google-tagmanager";
---

<!doctype html>
<html lang="en">
<head>
<GoogleTagmanager id="GTM-5MW56RQZ" />
<SEO
title="Amr Tamer"
description="I'm Amr Tamer a Frontend Software Engineer and a Computer Science Student with a sense of adventure and exploring"
Expand Down Expand Up @@ -54,6 +59,7 @@ import { SEO } from "astro-seo";
</head>

<body class="font-default text-textBase">
<GoogleTagmanagerNoscript id="GTM-5MW56RQZ" />
<nav class="relative z-50 mb-24">
<NavBar client:load />
</nav>
Expand Down

0 comments on commit 79fa93c

Please sign in to comment.