Skip to content

Commit

Permalink
Add Gtag
Browse files Browse the repository at this point in the history
  • Loading branch information
davepeck committed Jan 23, 2024
1 parent 0d12c64 commit 0148806
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ const { title } = Astro.props;
<!doctype html>
<html lang="en" class="bg-darkest text-medium scroll-smooth">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0VY3ZD6W1R"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-0VY3ZD6W1R");
</script>

<!-- basic meta -->
<meta charset="UTF-8" />
<meta
name="description"
Expand Down

0 comments on commit 0148806

Please sign in to comment.