From f3d580797b724a5d17a9c01acddb5ec80363d1a0 Mon Sep 17 00:00:00 2001 From: Paul Bui-Quang Date: Tue, 9 Jul 2024 14:15:33 +0200 Subject: [PATCH] feat: add clarity tracking code --- docker-entrypoint.sh | 2 ++ index.html | 11 +++++++++++ src/components/Routes/PrivateRoute.tsx | 9 +++++++++ 3 files changed, 22 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 16d6ed40e..5a73bc452 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -85,6 +85,8 @@ sed -i "s@{VITE_ODD_QUESTIONNAIRE}@$VITE_ODD_QUESTIONNAIRE@g" /app/build/assets/ sed -i "s@{VITE_JTOOL_USERS}@$VITE_JTOOL_USERS@g" /app/build/assets/*.js sed -i "s@{VITE_ODD_MAP}@$VITE_ODD_MAP@g" /app/build/assets/*.js +sed -i "s@{VITE_CLARITY_APP_ID}@$VITE_CLARITY_APP_ID@g" /app/build/index.html + # Restart nginx to apply changes service nginx restart diff --git a/index.html b/index.html index 8e93ab284..ad2f70e79 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,17 @@ +