Skip to content

Commit

Permalink
updated google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrussel committed Nov 20, 2022
1 parent 7adc15e commit 436dfbe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DefaultContentLanguage = "en" # Change this to change the site's language
preserveTaxonomyNames = true

[params]
google_analytics_id="G-K8C29Z7Q33"
# google_analytics_id="G-K8C29Z7Q33"
# The name to display as main title in the home page
mainpagetitle = "Ian Russel Adem"

Expand Down
10 changes: 9 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,13 @@
{{- end }}
{{/* Don't ask why it's like this. This original theme is a mess... */}}
<!-- <noscript><style>body { visibility: visible }</style></noscript> -->
{{ template "_internal/google_analytics.html" . }}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-K8C29Z7Q33"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

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

0 comments on commit 436dfbe

Please sign in to comment.