lxndrblz/anatole

Warning about unsupported asynchronous Google Analytics

Closed this issue · 0 comments

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