You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new folder layouts in the root directory. Copy the contents of /themes/coder-portfolio/layouts/partials/header.html into /layouts/header.html.
I've been trying to get google analytics to work but with no success. Here are the steps I have taken that should have apparently done the job:
Add google tag id in config.toml: googleAnalytics = "UA-12345-2"
Create a folder in themes/hugo-coder-portfolio/layout/partials named google
Create a file in the folder created in step two called analytics.html and paste my google tracking code there
Add this snippet to themes/hugo-coder-portfolio/layout/partials/header.html:
hugo serve -D
According to a few blog posts (https://gohugo.io/templates/internal/#use-the-google-analytics-template and https://www.soberkoder.com/google-analytics-hugo/ and https://bash-prompt.net/guides/custom-html-jugo/) this should have worked but did not.
Is there something that I am doing wrong?
The text was updated successfully, but these errors were encountered: