LoveIt
LoveIt copied to clipboard
[FEATURE] Google Analytics v4
Feature: Google Analytics v4
In the config file, Google Analytics is supported by UA-PROPERTY_ID.[^1]
# google analytics code [UA-XXXXXXXX-X]
googleAnalytics = ""
However, this function will be going away on July 1, 2023.[^2] So, I request Google Analytics v4.[^3] [^1]: https://gohugo.io/templates/internal/#configure-google-analytics [^2]: https://support.google.com/analytics/answer/11583528 [^3]: https://support.google.com/analytics/answer/10089681
@2ynhub , GA v4 is working fine for me.
Do not use the googleAnalytics key at the top level of your config file. It will be ignored.
Use the configuration shown in theme-documentation-basics and add your G-MEASUREMENT_ID.
This config is used in the analytics plugin to enable GA v4 in your site.
Cheers!
Thanks, didn't see that 🤦 I'll try now!