Skip to content

Commit

Permalink
Add google analytics for v2 site
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Oct 6, 2021
1 parent 57ddcc5 commit 44545c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/_includes/layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
<meta property="og:title" content="{{ title | default(eleventyNavigation.title) }}" />
<meta property="og:description" content="{{ description | default(content | excerpt | striptags) }}" />
<meta property="og:image" content="/assets/og.png" />
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110647385-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-110647385-1');
</script>
</head>
<body{% if tags and tags.includes("Blog") %} class="blog"{% endif %}>
<header class="parcel-docs-header">
Expand Down

0 comments on commit 44545c0

Please sign in to comment.