LoveIt icon indicating copy to clipboard operation
LoveIt copied to clipboard

[FEATURE] Google Analytics v4

Open 2ynhub opened this issue 3 years ago • 2 comments

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 avatar Sep 17 '22 09:09 2ynhub

@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!

jmflaherty avatar Sep 26 '22 20:09 jmflaherty

Thanks, didn't see that 🤦 I'll try now!

cassiofb-dev avatar Dec 06 '22 18:12 cassiofb-dev