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

feat: support Hugo v0.133+ by removing deprecated Hugo variable for Google Analytics #3137

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

filvuk
Copy link
Contributor

@filvuk filvuk commented Aug 17, 2024

Purpose

site.GoogleAnalytics is deprecated since Hugo v0.120.0 and would need to be changed to site.Config.Services.GoogleAnalytics.ID, which breaks compatibility with earlier Hugo versions. Thus, omit fetching this configuration variable since it should be set via site.Params.marketing.analytics.google_analytics anyway.
On request of @gcushen via Discord discussion.

site.GoogleAnalytics is deprecated since Hugo v0.120.0 and would need to be changed to site.Config.Services.GoogleAnalytics.ID, which breaks compatibility with earlier Hugo versions. Thus, omit fetching this configuration variable since it should be set via Params anyways.
Copy link

netlify bot commented Aug 17, 2024

Deploy Preview for academic-demo canceled.

Name Link
🔨 Latest commit 7c4f570
🔍 Latest deploy log https://app.netlify.com/sites/academic-demo/deploys/66c124e069bb0b0008a4b97f

@gcushen gcushen merged commit ec9127e into HugoBlox:main Sep 1, 2024
5 checks passed
@gcushen gcushen changed the title Remove fetching of default GA ID via site config feat: support Hugo v0.133+ by removing deprecated Hugo variable for Google Analytics Sep 1, 2024
@rodrigoalcarazdelaosa
Copy link
Contributor

rodrigoalcarazdelaosa commented Sep 2, 2024

The feedback component (both Bootstrap and Tailwind) also needs to be updated, otherwise the deprecation error still shows up.

@filvuk
Copy link
Contributor Author

filvuk commented Sep 2, 2024

@rodrigoalcarazdelaosa Opened #3139 to fix this.

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

Successfully merging this pull request may close these issues.

3 participants