Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tpl/tplimpl: Update Google Analytics template and config #12299

Merged
merged 1 commit into from
Mar 26, 2024

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
8 checks passed
@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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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