Describe the bug
I have updated my website following the information in this thread (#341), but when I log in in Google Analytics, I get this message: "Data collection isn't active for your website. If you installed tags more than 48 hours ago, make sure they are set up correctly."
I'm not super familiar with Google Analytics, so I'm not sure if I did something wrong or if I'm missing anything. I'm including below the steps I have followed.
To Reproduce
Steps to reproduce the behavior:
I created a GA property with the format G-XXXX
I added the property to my config.toml file to replace my previous UA-XXXX code
I modified layouts/partials/head/metadata.html to include the following at the top: {{ template "_internal/google_analytics.html" . }}
I deleted this line ({{ template "_internal/google_analytics_async.html" . }}) from layouts/partials/footer/scripts.html
I added this line ({{ partial "head/metadata.html" . }}) to layouts/404.html
Expected behavior
After running the hugo command in the terminal, new code was generated in some of the files in public which mention the new property, so I assumed that everything was working fine. However, my Google Analytics account is still not receiving data.
Describe the bug I have updated my website following the information in this thread (#341), but when I log in in Google Analytics, I get this message: "Data collection isn't active for your website. If you installed tags more than 48 hours ago, make sure they are set up correctly."
I'm not super familiar with Google Analytics, so I'm not sure if I did something wrong or if I'm missing anything. I'm including below the steps I have followed.
To Reproduce Steps to reproduce the behavior:
config.toml
file to replace my previous UA-XXXX codelayouts/partials/head/metadata.html
to include the following at the top:{{ template "_internal/google_analytics.html" . }}
{{ template "_internal/google_analytics_async.html" . }}
) fromlayouts/partials/footer/scripts.html
{{ partial "head/metadata.html" . }}
) tolayouts/404.html
Expected behavior After running the
hugo
command in the terminal, new code was generated in some of the files inpublic
which mention the new property, so I assumed that everything was working fine. However, my Google Analytics account is still not receiving data.Screenshots You can find all my code in this repository: https://github.com/irhuru/irhuru.github.io