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 doesn't work on latest version #1386
Comments
Closing as duplicate - search to see other issues on this. You can read more in the release notes too: https://sourcethemes.com/academic/updates/v4.6.0/ Essentially it sounds like you haven't set the Hugo environment - see Hugo docs/forums for more. |
I don't think it's a duplicate. The environment is the first thing I checked. The problem persists even if I build with |
You can set |
I thought I could share in case it could point to some solution. I am quite a beginner myself, but I had same issue. In my understanding, the problem narrowed down to not being able to get past |
@labuve see my response above on setting HUGO_ENV (see Hugo docs on how to set it). Also, there appears to be a bug with |
I updated to the latest version from a one-year old version, and Google Analytics stopped working. This can be easily reproduced:
google_analytics = "UA-123456789-1"
in params.tomlhugo
(basic install of latest version 0.58.3), site created in public foldergrep 123456789 public -r
returns no resultsI don't think this is an issue with running in production. I'm not using netlify at all, I'm just running the command
hugo
(nothugo server
) locally.The text was updated successfully, but these errors were encountered: