Skip to content

Commit

Permalink
setup Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
zzq0826 committed Aug 10, 2023
1 parent 63066bf commit fbcab9a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/Header/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,17 @@ const section = frontmatter?.section ?? ""
src="https://www.googletagmanager.com/ns.html?id=GTM-N6DQ47T"
height="0"
width="0"
style="display:none;visibility:hidden"></iframe> --><!-- End Google Tag Manager (noscript) -->
style="display:none;visibility:hidden"></iframe> --><!-- End Google Tag Manager (noscript) --><!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-56SBDN1LL2"></script>
<script>
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag("js", new Date())

gtag("config", "G-56SBDN1LL2")
</script>
<header>
<SkipToContent />
<nav class="nav-wrapper" title="Top Navigation">
Expand Down

0 comments on commit fbcab9a

Please sign in to comment.