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 16, 2023
1 parent 6029a90 commit ce70016
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="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">
Expand Down

0 comments on commit ce70016

Please sign in to comment.