You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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:
Since upgrading to Hugo 0.132.0, I get the following error:
That's because I treat warnings as errors in my build process.
I've found the following places that tries to access
.Site.GoogleAnalytics
:hextra/layouts/partials/google-analytics.html
Line 4 in e83c11f
hextra/layouts/partials/head.html
Line 34 in e83c11f
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!
The text was updated successfully, but these errors were encountered: