Skip to content

Commit ce70016

Browse files
committed
Remove google_analytics_async.html include
The internal Hugo template `google_analytics_async.html` no longer works because Google has removed the version of Google Analytics it uses. The regular internal template (google_analytics.html) already handles Google Analytics 4 asynchronously.
1 parent 6029a90 commit ce70016

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

‎layouts/_default/baseof.html

-4
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@
3737

3838
<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}">
3939
{{- if not .Site.IsServer }}
40-
{{- if hasPrefix .Site.GoogleAnalytics "G-" }}
4140
{{ template "_internal/google_analytics.html" . }}
42-
{{- else }}
43-
{{ template "_internal/google_analytics_async.html" . }}
44-
{{- end }}
4541
{{- end }}
4642
</head>
4743
<body class="body">

0 commit comments

Comments
 (0)