nanxstats / hugo-renga

A Bootstrap-based minimalist theme for Hugo/blogdown.
https://nanx.me/hugo-renga/
MIT License
23 stars 3 forks source link

Migrate from UA to GA4 #12

Closed AntoineSoetewey closed 2 years ago

AntoineSoetewey commented 2 years ago

Dear Nan,

Universal Analytics will no longer process new data in standard properties beginning July 1, 2023.

Therefore, I created a GA4 tag and inserted it in my config.toml (as you can see here). However, it doesn't seem to work since there is no data on my GA dashboard.

Is there anything else I need to do to switch from UA to GA4?

Thanks in advance for your help!

AntoineSoetewey commented 2 years ago

Never mind, I fixed it!

Based on this tutorial from Hugo, I edited this line in the baseof.html file.

nanxstats commented 2 years ago

Nice! Thanks for the note.