Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

google analytics error on build. #1331

Open
brittainmark opened this issue Nov 22, 2024 · 6 comments
Open

google analytics error on build. #1331

brittainmark opened this issue Nov 22, 2024 · 6 comments

Comments

@brittainmark
Copy link
Contributor

brittainmark commented Nov 22, 2024

This is probably my set-up, but I cannot find the issue.
Using Hugo 0.139 on Windows 11.

Getting error when issuing hugo server command

ERROR render of "section" failed: "D:\Mark\git\documentation\layouts\dev\baseof.html:4:7": execute of template failed: template: dev/list.html:4:7: executing "dev/list.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:52:16: no such template "_internal/google_analytics_async.html"
ERROR render of "page" failed: "D:\Mark\git\documentation\layouts\dev\baseof.html:4:7": execute of template failed: template: dev/single.html:4:7: executing "dev/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:52:16: no such template "_internal/google_analytics_async.html"
Built in 27439 ms
ERROR render of "section" failed: "D:\Mark\git\documentation\layouts\dev\baseof.html:4:7": execute of template failed: template: dev/list.html:4:7: executing "dev/list.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:52:16: no such template "_internal/google_analytics_async.html"
ERROR render of "page" failed: "D:\Mark\git\documentation\layouts\dev\baseof.html:4:7": execute of template failed: template: dev/single.html:4:7: executing "dev/single.html" at <partial "head.html" .>: error calling partial: execute of template failed: html/template:partials/head.html:52:16: no such template "_internal/google_analytics_async.html"

Have searched and suggest I need to use "internal/google_analytics.htm" but don't know where to change it.

@scottcwilson
Copy link
Contributor

I am using hugo v0.103 - can you revert to an older version?

@drbyte
Copy link
Member

drbyte commented Nov 23, 2024

I've commented-out the old pre-GA-4 GA services ID in the config file, since we're not tracking it in GA4 anyway.
Does that help with the issue?

@scottcwilson
Copy link
Contributor

Ugh I am getting this issue on a new Mac. Did you get beyond it? Seems you can't just brew install an old build of Hugo.

@drbyte
Copy link
Member

drbyte commented Dec 6, 2024

Is it related to us using an "old" version of Docsy?
ie: is the hugo build pulling a mixture of old (our base) and new (docsy's github) to generate the build, and running into unexpected differences?

eg: in the go.mod and go.sum files there's mention of docsy 0.4.0 and on their github I see 0.11.0

@scottcwilson
Copy link
Contributor

I have the required fixes staged, I'll just make sure they don't break anything.

@scottcwilson
Copy link
Contributor

Update your fork and this issue should be fixed.

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

No branches or pull requests

3 participants