From 4ded6858717a26c54b04c0ba4686065c7f177ce7 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sun, 20 Feb 2022 14:18:58 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20GA=20v4=20detail=20to=20an?= =?UTF-8?q?alytics=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exampleSite/content/docs/partials.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exampleSite/content/docs/partials.md b/exampleSite/content/docs/partials.md index 8c8c69c8..466b1fa5 100644 --- a/exampleSite/content/docs/partials.md +++ b/exampleSite/content/docs/partials.md @@ -27,10 +27,15 @@ To enable Fathom Analytics support, simply provide your Fathom site code in the Google Analytics support is provided through the internal Hugo partial. Simply provide the `googleAnalytics` key in the `config/_default/config.toml` file and the script will be added automatically. +Both version 3 (analytics.js) and version 4 (gtag.js) are supported, based on the configuration value provided: + ```toml # config/_default/config.toml +# version 3 googleAnalytics = "UA-PROPERTY_ID" +# version 4 +googleAnalytics = "G-MEASUREMENT_ID" ``` ### Custom analytics providers