Skip to content

Commit 12aef5f

Browse files
authored
Merge pull request #2739 from programminghistorian/issue-2551
Google Analytics 4 tag to header
2 parents 18b88ac + 27c7ee8 commit 12aef5f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_includes/analytics.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,13 @@
1313
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
1414
})();
1515
</script>
16+
17+
<!-- Google tag (gtag.js) -->
18+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-EWDPQ3Y674"></script>
19+
<script>
20+
window.dataLayer = window.dataLayer || [];
21+
function gtag(){dataLayer.push(arguments);}
22+
gtag('js', new Date());
23+
24+
gtag('config', 'G-EWDPQ3Y674');
25+
</script>

0 commit comments

Comments
 (0)