Repository: gohugoio/hugo (language: go)

Issue:
Deprecate the async Google Analytics internal template
The GA [regular template](https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/google_analytics.html) handles GA4 asynchronously, making the [async template](https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/google_analytics_async.html) irrelevant after July 1, 2023.

> On July 1, 2023, standard Universal Analytics properties will no longer process data ([see announcement](https://support.google.com/analytics/answer/10089681?sjid=13630743966888028312-NA)).

Seems like we should start warning users soon-ish.

See <https://github.com/gohugoio/hugo/issues/8549#issuecomment-1510435834>.



Discussion / hints:

Fix patch:
diff --git a/tpl/tplimpl/embedded/templates/google_analytics_async.html b/tpl/tplimpl/embedded/templates/google_analytics_async.html
index 499cb6fe377..b7bf36faa9d 100644
--- a/tpl/tplimpl/embedded/templates/google_analytics_async.html
+++ b/tpl/tplimpl/embedded/templates/google_analytics_async.html
@@ -1,3 +1,4 @@
+{{ warnf "_internal/google_analytics_async.html is no longer supported by Google and will be removed in a future version of Hugo" }}
 {{- $pc := .Site.Config.Privacy.GoogleAnalytics -}}
 {{- if not $pc.Disable -}}
 {{ with .Site.GoogleAnalytics }}


Test patch: