Problem with Google Analytics #3204
Unanswered
juliuskoschnick
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear community,
I've succesfully compiled my website with hugo and wowchemy until I ran an update and now I'm stuck with a problem that apparently stems from Google Analytics. I've changed the Google Analytics settings to any imaginable version in params.yaml - like setting it to '' or null. Now, the following is the error message. Am I correct in looking in params.yaml for a solution?
Thanks so much for any help!
PS C:\Users\juliu\OneDrive\Dokumente\University\LSE\PhD\Website\Github\julius-koschnick> hugo server
Watching for changes in C:\Users\juliu\OneDrive\Dokumente\University\LSE\PhD\Website\Github\julius-koschnick{assets,content,data,static}
Watching for config changes in C:\Users\juliu\OneDrive\Dokumente\University\LSE\PhD\Website\Github\julius-koschnick\config_default, C:\Users\juliu\OneDrive\Dokumente\University\LSE\PhD\Website\Github\julius-koschnick\go.mod
Start building sites …
hugo v0.145.0-666444f0a52132f9fec9f71cf25b441cc6a4f355+extended windows/amd64 BuildDate=2025-02-26T15:41:25Z VendorInfo=gohugoio
WARN In
params.yaml
, you requestedtheme_night: default
but there is not adark
style indata/themes/default.toml
. Falling back to default dark style.ERROR render of "/404" failed: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\[email protected]\layouts_default\baseof.html:7:3": execute of template failed: template: 404.html:7:3: executing "404.html" at <partial "site_head" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\[email protected]\layouts\partials\site_head.html:198:5": execute of template failed: template: partials/site_head.html:198:5: executing "partials/site_head.html" at <partial "wowchemy_seo" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\wowchemy_seo.html:3:3": execute of template failed: template: partials/wowchemy_seo.html:3:3: executing "partials/wowchemy_seo.html" at <partial "analytics/main" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\analytics\main.html:1:3": execute of template failed: template: partials/analytics/main.html:1:3: executing "partials/analytics/main.html" at <partial "analytics/google_analytics" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\analytics\google_analytics.html:1:69": execute of template failed: template: partials/analytics/google_analytics.html:1:69: executing "partials/analytics/google_analytics.html" at : can't evaluate field GoogleAnalytics in type interface {}
ERROR render of "C:/Users/juliu/OneDrive/Dokumente/University/LSE/PhD/Website/Github/julius-koschnick/content/_index.md" failed: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\[email protected]\layouts_default\baseof.html:7:3": execute of template failed: template: index.html:7:3: executing "index.html" at <partial "site_head" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\[email protected]\layouts\partials\site_head.html:198:5": execute of template failed: template: partials/site_head.html:198:5: executing "partials/site_head.html" at <partial "wowchemy_seo" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\wowchemy_seo.html:3:3": execute of template failed: template: partials/wowchemy_seo.html:3:3: executing "partials/wowchemy_seo.html" at <partial "analytics/main" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\analytics\main.html:1:3": execute of template failed: template: partials/analytics/main.html:1:3: executing "partials/analytics/main.html" at <partial "analytics/google_analytics" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\analytics\google_analytics.html:1:69": execute of template failed: template: partials/analytics/google_analytics.html:1:69: executing "partials/analytics/google_analytics.html" at : can't evaluate field GoogleAnalytics in type interface {}
ERROR render of "/project" failed: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\[email protected]\layouts_default\baseof.html:7:3": execute of template failed: template: _default/list.html:7:3: executing "_default/list.html" at <partial "site_head" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\[email protected]\layouts\partials\site_head.html:198:5": execute of template failed: template: partials/site_head.html:198:5: executing "partials/site_head.html" at <partial "wowchemy_seo" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\wowchemy_seo.html:3:3": execute of template failed: template: partials/wowchemy_seo.html:3:3: executing "partials/wowchemy_seo.html" at <partial "analytics/main" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\analytics\main.html:1:3": execute of template failed: template: partials/analytics/main.html:1:3: executing "partials/analytics/main.html" at <partial "analytics/google_analytics" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\analytics\google_analytics.html:1:69": execute of template failed: template: partials/analytics/google_analytics.html:1:69: executing "partials/analytics/google_analytics.html" at : can't evaluate field GoogleAnalytics in type interface {}
ERROR render of "C:/Users/juliu/OneDrive/Dokumente/University/LSE/PhD/Website/Github/julius-koschnick/content/project/example copy/index.md" failed: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\[email protected]\layouts_default\baseof.html:7:3": execute of template failed: template: project/single.html:7:3: executing "project/single.html" at <partial "site_head" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\[email protected]\layouts\partials\site_head.html:198:5": execute of template failed: template: partials/site_head.html:198:5: executing "partials/site_head.html" at <partial "wowchemy_seo" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\wowchemy_seo.html:3:3": execute of template failed: template: partials/wowchemy_seo.html:3:3: executing "partials/wowchemy_seo.html" at <partial "analytics/main" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\analytics\main.html:1:3": execute of template failed: template: partials/analytics/main.html:1:3: executing "partials/analytics/main.html" at <partial "analytics/google_analytics" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\analytics\google_analytics.html:1:69": execute of template failed: template: partials/analytics/google_analytics.html:1:69: executing "partials/analytics/google_analytics.html" at : can't evaluate field GoogleAnalytics in type interface {}
Built in 815 ms
Error: error building site: render: failed to render pages: render of "C:/Users/juliu/OneDrive/Dokumente/University/LSE/PhD/Website/Github/julius-koschnick/content/event/_index.md" failed: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\[email protected]\layouts_default\baseof.html:7:3": execute of template failed: template: section/event.html:7:3: executing "section/event.html" at <partial "site_head" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\[email protected]\layouts\partials\site_head.html:198:5": execute of template failed: template: partials/site_head.html:198:5: executing "partials/site_head.html" at <partial "wowchemy_seo" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\wowchemy_seo.html:3:3": execute of template failed: template: partials/wowchemy_seo.html:3:3: executing "partials/wowchemy_seo.html" at <partial "analytics/main" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\analytics\main.html:1:3": execute of template failed: template: partials/analytics/main.html:1:3: executing "partials/analytics/main.html" at <partial "analytics/google_analytics" .>: error calling partial: "C:\Users\juliu\AppData\Local\hugo_cache\modules\filecache\modules\pkg\mod\github.com\wowchemy\wowchemy-hugo-themes\modules\[email protected]\layouts\partials\analytics\google_analytics.html:1:69": execute of template failed: template: partials/analytics/google_analytics.html:1:69: executing "partials/analytics/google_analytics.html" at : can't evaluate field GoogleAnalytics in type interface {}
Also this is the relevant section of the params.yaml file
marketing:
seo:
site_type: Person
local_business_type: ''
org_name: ''
description: 'Academic website of Julius Koschnick'
twitter: 'juliuskoschnick'
analytics:
google: null
baidu: null
verification:
google: 'XXXXXXXX...'
baidu: ''
Beta Was this translation helpful? Give feedback.
All reactions