Add abbility to use Google Tag Manager for analytics (#514)

* Add ability to embed custom code to <head>

* add myself to CONTRIBUTORS.md

* implement dedicated template for Google Tag Manager

* move google tag manager to bottom of the body tag
This commit is contained in:
Viktar Patotski
2021-02-10 20:34:44 +01:00
committed by GitHub
parent c4afd5f51a
commit 963dc43f0f
4 changed files with 18 additions and 0 deletions

View File

@@ -147,6 +147,10 @@
{{ if and .Site.Params.matomo .Site.Params.matomo.serverURL }}
{{- partial "analytics/matomo" . -}}
{{ end }}
{{ if and .Site.Params.googleTagManager .Site.Params.googleTagManager.id }}
{{- partial "analytics/googletagmanager" . -}}
{{ end }}
</body>
</html>