mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-25 16:32:19 +00:00
update analytics code to use gtag.js
This commit is contained in:
parent
9ebb0d9843
commit
9308694267
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||||
|
|
9
layouts/partials/hooks/head-end.html
Normal file
9
layouts/partials/hooks/head-end.html
Normal 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>
|
Loading…
Reference in a new issue