Build error on v0.125.2 Calling internal template "_internal/google_analytics_async.html"

Upgraded to the latest version of hugo, 0.125.2, and now several of my sites are failing to build with errors that end in the following…

no such template "_internal/google_analytics_async.html"

Was this deprecated?

Any help is appreciated. Thanks!

Yes, this was deprecated. We’ve been emitting a deprecation notice for a while…

Which theme?

Use this instead:

{{ template "_internal/google_analytics.html" . }}

That fixed it. Thanks.

It was several themes. I needed to pull their changes and update a few of mine. The server updates hugo automatically and I haven’t done a manual build or server preview in a while to see the warnings. My mistake.

Thanks again.

1 Like

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