Skip to content

Commit

Permalink
Merge pull request #2739 from programminghistorian/issue-2551
Browse files Browse the repository at this point in the history
Google Analytics 4 tag to header
  • Loading branch information
anisa-hawes committed Nov 10, 2022
2 parents 18b88ac + 27c7ee8 commit 12aef5f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _includes/analytics.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-EWDPQ3Y674"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-EWDPQ3Y674');
</script>

0 comments on commit 12aef5f

Please sign in to comment.