Skip to content

Commit c2107b2

Browse files
author
Kayla Wilkins
committed
adding ga tag to html head
1 parent 6b5b39b commit c2107b2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

themes/dlc/layouts/partials/0_utilities/htmlHead.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@
4646

4747
{{ .Hugo.Generator }}
4848

49+
<!-- Google Analytics -->
50+
<script>
51+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
52+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
53+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
54+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
55+
56+
ga('create', 'UA-177150-22', 'auto');
57+
ga('send', 'pageview');
58+
</script>
59+
<!-- End Google Analytics -->
60+
4961
{{ partial "0_utilities/fonts.html" . }}
5062
<link href='{{ "assets/css/main.css" | relURL }}' rel="stylesheet">
5163
{{ if .Site.Params.dev.enable}}

0 commit comments

Comments
 (0)