diff --git a/content/en/templates/internal.md b/content/en/templates/internal.md index ace21f548..15f90b102 100644 --- a/content/en/templates/internal.md +++ b/content/en/templates/internal.md @@ -45,20 +45,13 @@ googleAnalytics = "G-MEASUREMENT_ID" ### Use the Google Analytics Template -You can then include the Google Analytics internal template: +You can then include the Google Analytics internal template in the `` section of your template: -``` -{{ template "_internal/google_analytics.html" . }} -``` - - -``` -{{ template "_internal/google_analytics_async.html" . }} -``` - -When using Google Analytics v4 use `_internal/google_analytics.html`. - -A `.Site.GoogleAnalytics` variable is also exposed from the config. +```go-html-template +{{ if hugo.IsProduction }} + {{ template "_internal/google_analytics.html" . }} +{{ end }} + ``` ## Disqus