Skip to content
New issue

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

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

Already on GitHub? # to your account

ERROR deprecated: .Site.GoogleAnalytics was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.133.0. Use .Site.Config.Services.GoogleAnalytics.ID instead. #433

Closed
ShaharNaveh opened this issue Aug 13, 2024 · 2 comments · Fixed by #438

Comments

@ShaharNaveh
Copy link
Contributor

Since upgrading to Hugo 0.132.0, I get the following error:

ERROR deprecated: .Site.GoogleAnalytics was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.133.0. Use .Site.Config.Services.GoogleAnalytics.ID instead.

That's because I treat warnings as errors in my build process.


I've found the following places that tries to access .Site.GoogleAnalytics:

The fix should be fairly simple; just removing the places where .Site.GoogleAnalytics is accessed.

I'll be more than glad to open a PR if that would get accepted, lmk what you think.


Thanks for the awesome theme!

@pcelka
Copy link

pcelka commented Aug 13, 2024

Same Error, your fix helped me !

@eskopp
Copy link
Contributor

eskopp commented Aug 14, 2024

The issue is resolved with pull request #435.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants