Skip to content

Commit

Permalink
chore: Update Google Analytics tracking code in Layout.astro
Browse files Browse the repository at this point in the history
  • Loading branch information
RND332 committed Jun 14, 2024
1 parent d96f99e commit f9a5dee
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,6 @@ const pages: Array<Page> = [
<!doctype html>
<html lang="en" class="sd:text-xs md:text-base lg:text-xl xl:text-3xl">
<head>
<script
is:inline
src="https://www.googletagmanager.com/gtag/js?id=G-VSD6GSYPH2"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-VSD6GSYPH2");
</script>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
Expand All @@ -42,6 +29,15 @@ const pages: Array<Page> = [
<title>RND</title>
<ViewTransitions />
</head>
<!-- Google tag (gtag.js) -->
<script is:inline async src="https://www.googletagmanager.com/gtag/js?id=G-VSD6GSYPH2"></script>
<script is:inline type="module">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-VSD6GSYPH2');
</script>
<body class="w-96">
<main class="flex flex-col items-center min-w-full p-10">
<div class="w-full text-white">
Expand Down

0 comments on commit f9a5dee

Please sign in to comment.