Deprecation of .Site.GoogleAnalytics in v0.120.0

I overrode the internal Google Analytics template with my own. Do I need to change site.GoogleAnalytics in my templates to .Site.Config.Services.GoogleAnalytics.ID?

https://gohugo.io/templates/internal/#google-analytics

site configuration

[services]
  [services.googleAnalytics]
    ID = 'G-MEASUREMENT_ID'

To create your own template, access the configured ID with {{ site.Config.Services.GoogleAnalytics.ID }} .

Does this need to be removed? Configure Hugo | Hugo

Done. Thanks.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.