mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
hugolib: Deprecate .Site.GoogleAnalytics
Use .Site.Config.Services.GoogleAnalytics.ID instead.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
d4016dd5cd
commit
a692278bc6
@@ -32,7 +32,8 @@ Provide your tracking ID in your configuration file:
|
||||
|
||||
**Google Analytics 4 (gtag.js)**
|
||||
{{< code-toggle file="hugo" >}}
|
||||
googleAnalytics = "G-MEASUREMENT_ID"
|
||||
[services.googleAnalytics]
|
||||
ID = "G-MEASUREMENT_ID"
|
||||
{{</ code-toggle >}}
|
||||
|
||||
### Use the Google Analytics template
|
||||
|
Reference in New Issue
Block a user