From b617b1f0ba7b2083ab360dbf66da933cf7782e3d Mon Sep 17 00:00:00 2001 From: fyordsvat <168930816+fyordsvat@users.noreply.github.com> Date: Wed, 14 Aug 2024 23:10:29 +0300 Subject: [PATCH] Update README.md (#505) Co-authored-by: yaardie <168930816+yaardie@users.noreply.github.com> --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d6fd30ab..3c77a4f9 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,15 @@ If you need to put a Disclaimer on your website (e.g. "My views are my own and n ### Google Analytics -To add Google Analytics, simply sign up to [Google Analytics](https://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `googleAnalytics` parameter in `hugo.toml`. +Sign up to [Google Analytics](https://www.google.com/analytics/) to obtain your Google Tracking ID. + +To use this feature add your Google Analytics ID to the hugo.toml file like this: + +``` +[services] + [services.googleAnalytics] + id = '' +``` Note that the Google Analytics tracking code will only be inserted into the page when the site isn't served on Hugo's built-in server, to prevent tracking from local testing environments.