diff options
author | Vimux <Vimux@users.noreply.github.com> | 2021-04-12 16:37:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 16:37:08 +0300 |
commit | e238e330365ed6080ce83a6b1e2e4aa147b86c2c (patch) | |
tree | bd8a709e681440cb8422f1068731bbe9faa584fa | |
parent | f10eb9fbdf06a1e591834b608af13c2d6d21ad18 (diff) | |
parent | 47885bd3ec625fe66bfb2df07d2db0aedd24e692 (diff) |
Merge pull request #263 from olomix/google_analytics_4
Add support for Google Analytics v4
-rw-r--r-- | layouts/_default/baseof.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 79bf8bb..f4d4b6d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -37,7 +37,11 @@ <link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}"> {{- if not .Site.IsServer }} + {{- if hasPrefix .Site.GoogleAnalytics "G-" }} + {{ template "_internal/google_analytics.html" . }} + {{- else }} {{ template "_internal/google_analytics_async.html" . }} + {{- end }} {{- end }} </head> <body class="body"> |