Skip to content

Commit

Permalink
Remove google_analytics_async.html include
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Vimux committed Nov 7, 2023
1 parent 3e1cb24 commit c4c4154
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@
<link rel="manifest" href="{{ "manifest.json" | relURL }}">
{{- end }}
{{- 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 kind-{{ .Kind }}">
Expand Down

0 comments on commit c4c4154

Please sign in to comment.