We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e16335a commit b38f867Copy full SHA for b38f867
layouts/partials/head.html
@@ -21,15 +21,7 @@
21
<link href="{{ .RelPermalink }}" rel="feed" type="{{ .MediaType.Type }}" title="{{ $.Site.Title }}" />
22
{{ end }}
23
24
- {{ if .Site.Config.Services.GoogleAnalytics.ID }}
25
- <script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.Config.Services.GoogleAnalytics.ID }}"></script>
26
- <script>
27
- window.dataLayer = window.dataLayer || [];
28
- function gtag(){dataLayer.push(arguments)};
29
- gtag('js', new Date());
30
- gtag('config', '{{ .Site.Config.Services.GoogleAnalytics.ID }}');
31
- </script>
32
- {{ end }}
+ {{ template "_internal/google_analytics.html" . }}
33
34
{{ if or .Page.Params.math .Site.Params.math }}
35
<!-- adds MathJax support -->
0 commit comments