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

Warning about unsupported asynchronous Google Analytics #493

Closed
McPringle opened this issue Feb 20, 2024 · 0 comments · Fixed by #498
Closed

Warning about unsupported asynchronous Google Analytics #493

McPringle opened this issue Feb 20, 2024 · 0 comments · Fixed by #498
Assignees
Labels
bug Something isn't working

Comments

@McPringle
Copy link

McPringle commented Feb 20, 2024

Describe the bug
When Hugo v0.123.0-3c8a4713908e48e6523f058ca126710397aa4ed5+extended renders my website using Anatole theme v1.13.0 I get the following warning:

WARN  _internal/google_analytics_async.html is no longer supported by Google and will be removed in a future version of Hugo

To Reproduce
Steps to reproduce the behavior:

  1. Create a new hugo project:
    hugo new site mytest
  2. Enter newly created project:
    cd mytest
  3. Make hugo project a module:
    hugo mod init mytest
  4. Add Anatole theme as a module:
    hugo mod get github.com/lxndrblz/anatole
  5. Add the following lines at the end of hugo.toml:
[module]
  [[module.imports]]
    path = "github.com/lxndrblz/anatole"
    disable = false
  1. Create a new post:
    hugo new post/mytest.md
  2. Start Hugo server:
    hugo server
  3. A warning is shown on the console:
    WARN _internal/google_analytics_async.html is no longer supported by Google and will be removed in a future version of Hugo

Expected behavior
Hugo should start the server using the Anatole theme with default settings without warnings.

Desktop (please complete the following information):

  • OS: all
  • Browser: all
  • Version of the Theme: v1.13.0
  • Version of Hugo: v0.123.0-3c8a4713908e48e6523f058ca126710397aa4ed5+extended

Smartphone (please complete the following information):

  • not applicable

Additional context

  • not applicable
@McPringle McPringle added the bug Something isn't working label Feb 20, 2024
@lxndrblz lxndrblz linked a pull request Apr 6, 2024 that will close this issue
12 tasks
@lxndrblz lxndrblz closed this as completed Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants