Skip to content

Conversation

jmooring
Copy link
Member

Google Analytics 4 (GA4) replaced Google Universal Analytics (UA) effective 1 July 2023.

See https://support.google.com/analytics/answer/11583528.

Changes:

  • Update tpl/tplimpl/embedded/templates/google_analytics.html
  • Remove tpl/tplimpl/embedded/templates/google_analytics_async.html
  • Remove extraneous config settings

Closes #11802
Closes #10093

@jmooring
Copy link
Member Author

cc @coliff @Challin

@jmooring jmooring force-pushed the update-google-analytics branch from ce82f5f to 5ef6d23 Compare March 23, 2024 21:34
Google Analytics 4 (GA4) replaced Google Universal Analytics (UA)
effective 1 July 2023.

See https://support.google.com/analytics/answer/11583528.

Changes:

- Update tpl/tplimpl/embedded/templates/google_analytics.html
- Remove tpl/tplimpl/embedded/templates/google_analytics_async.html
- Remove extraneous config settings

Closes gohugoio#11802
Closes gohugoio#10093
@bep bep merged commit ebfca61 into gohugoio:master Mar 26, 2024
@jmooring jmooring deleted the update-google-analytics branch March 26, 2024 14:48
@chalin
Copy link
Contributor

chalin commented Mar 26, 2024

cc @coliff @Challin

So glad to see these changes land! Is this slated for the next Hugo release?
(Btw, my GH handle has one less L than the one above: @chalin 😄 )

@jmooring
Copy link
Member Author

Yes, next release. Sorry about the handle.

0ge pushed a commit to 0ge/archie that referenced this pull request Apr 19, 2024
`google_analytics_async.html` is now removed from Hugo and the regular
template should be used.
Hugo pull-request: [#12299](gohugoio/hugo#12299)

Without this change, it is not possible to build with Hugo
v0.125.0 or later.
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Omit UA- part in GA template Google Analytics 4 config: no need for anonymize_ip parameter
4 participants