From 8b10dc1edc117e81d4cff1521923d30921b9c982 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Mon, 26 Sep 2022 14:29:19 +0900 Subject: [PATCH] Changes new GA4 in Google Analytics --- docs/_config.yml | 2 +- docs/_includes/google-analytics.html | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/docs/_config.yml b/docs/_config.yml index af3e9058e..097cc773b 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -22,7 +22,7 @@ baseurl: "/open5gs" # the subpath of your site, e.g. /blog url: "https://open5gs.org" # the base hostname & protocol for your site, e.g. http://example.com author: "Sukchan Lee" github_username: open5gs -google_analytics: UA-139225646-2 +google_analytics: G-12MQZTB3JH # Build settings markdown: kramdown diff --git a/docs/_includes/google-analytics.html b/docs/_includes/google-analytics.html index 9dffa1418..2f833bca0 100644 --- a/docs/_includes/google-analytics.html +++ b/docs/_includes/google-analytics.html @@ -1,10 +1,12 @@ - + + function gtag() { + dataLayer.push(arguments); + } + gtag('js', new Date()); + gtag('config', '{{ site.google_analytics }}'); + +{% endif %}