I got a UA code from Google Analytics,and put it in config.toml .But i don't know which html file is public,and don't know where to insert template files as follows:
{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
when i put "{{ template "_internal/google_analytics_async.html" . }}" in /layouts/partials/footer.html Google Analytics can detect access in local debugging ,but once I deploy to Netlify, Google Analytics can't detect it。
Expected behavior
Where should I put this template file?
"_internal/google_analytics_async.html"
in baseof.html?
Screenshots
Build Environment
OS: [Windows 10 ]
Theme version [v0.2.11 dd77465]
Hugo version [hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66]
Describe the bug
I got a UA code from Google Analytics,and put it in config.toml .But i don't know which html file is public,and don't know where to insert template files as follows:
when i put "{{ template "_internal/google_analytics_async.html" . }}" in /layouts/partials/footer.html Google Analytics can detect access in local debugging ,but once I deploy to Netlify, Google Analytics can't detect it。
Expected behavior
Where should I put this template file?
Screenshots
Build Environment
Preview Environment
Additional Information
blog in github :https://github.com/jamdodot/jamdodot.top
Finally thanks!