From bfc618fadad8e31e70047c222e6ea1b9bdfdcd64 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Fri, 11 Sep 2026 21:24:07 +0900 Subject: [PATCH] feat: enable GA4 tracking Set the measurement ID that replaces the Universal Analytics property shut down in 2023, which leaves tracking disabled until now. Update the README section, which still described the ID as empty. --- README.md | 6 +++--- src/config.ts | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0664824..9f7c751 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,6 @@ resolved by the SPA as before. ## Google Analytics -`GOOGLE_ANALYTICS_TRACKING_ID` in `src/config.ts` is empty, which disables -tracking. Set a GA4 measurement ID (`G-XXXXXXXXXX`) to enable it; the old -Universal Analytics property was shut down in 2023. +`GOOGLE_ANALYTICS_TRACKING_ID` in `src/config.ts` carries the GA4 measurement +ID that replaced the Universal Analytics property shut down in 2023. Emptying +it disables tracking. diff --git a/src/config.ts b/src/config.ts index de1297f..21396c1 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,8 +1,7 @@ const SITE_TITLE = 'Visiome Platform'; const SITE_SLOGAN = 'Digital archive for vision science'; -// GA4 measurement ID (G-XXXXXXXXXX); empty disables tracking. -// The former Universal Analytics property (UA-2787276-1) was shut down in 2023. -const GOOGLE_ANALYTICS_TRACKING_ID = ''; +// Replaces the Universal Analytics property (UA-2787276-1), shut down in 2023. +const GOOGLE_ANALYTICS_TRACKING_ID = 'G-94PHTGFJ7S'; const XOONIPS_ITEMTYPES = ['binder', 'model', 'data', 'stimulus', 'tool', 'presentation', 'paper', 'book', 'url']; const PICO_MODULES = ['manual_ja', 'primface'];