Skip to content

Commit

Permalink
add google tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Feb 1, 2024
1 parent 6162764 commit 681cb30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions themes/aurora/layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
{{ partial "head.html" . }}
</head>
{{ partial "gtg.html" . }}
<body>
{{ partial "header.html" . }}
<main>
Expand Down
8 changes: 8 additions & 0 deletions themes/aurora/layouts/partials/gtg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-74PP2Q060B"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-74PP2Q060B');
</script>

0 comments on commit 681cb30

Please sign in to comment.