update analytics code to use gtag.js

This commit is contained in:
John Bowdre 2021-12-17 21:09:41 -06:00
parent 9ebb0d9843
commit 9308694267
2 changed files with 10 additions and 1 deletions

View file

@ -7,7 +7,7 @@ introDescription = "Wrangler of imaginary computers."
# showShare = false # Uncomment to not show share buttons on each post. Also available in each post's front matter. # showShare = false # Uncomment to not show share buttons on each post. Also available in each post's front matter.
# Google analytics Id # Google analytics Id
ga_analytics = "UA-183355934-1" # ga_analytics = "UA-183355934-1"
# limit the number of taxonomies links shown on the sidebar of each page by default. # limit the number of taxonomies links shown on the sidebar of each page by default.
numberOfTagsShown = 10 # Applies for all other default & custom taxonomies. e.g categories, brands see https://gohugo.io/content-management/taxonomies#what-is-a-taxonomy numberOfTagsShown = 10 # Applies for all other default & custom taxonomies. e.g categories, brands see https://gohugo.io/content-management/taxonomies#what-is-a-taxonomy

View file

@ -0,0 +1,9 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9D6ZPFJ69V"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-9D6ZPFJ69V');
</script>