From 33c567285a702897ff734209e5277e628225b831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0koda?= Date: Sat, 6 Apr 2024 17:13:59 +0200 Subject: [PATCH] Move GA tags to configuration --- docker-compose-prankweb.yml | 4 ++-- frontend/build/webpack.common.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose-prankweb.yml b/docker-compose-prankweb.yml index 24d0b223..13986734 100644 --- a/docker-compose-prankweb.yml +++ b/docker-compose-prankweb.yml @@ -5,7 +5,7 @@ services: context: ./ dockerfile: ./gateway/Dockerfile args: - GOOGLE_ANALYTICS: "UA-136777636-1" + GOOGLE_ANALYTICS: ${FRONTEND_GOOGLE_ANALYTICS} WEB_SERVICE_USER: ${WEB_SERVICE_USER} WEB_SERVICE_PASSWORD: ${WEB_SERVICE_PASSWORD} depends_on: @@ -96,7 +96,7 @@ services: context: ./ dockerfile: ./monitor/Dockerfile environment: - GOOGLE_ANALYTICS: "UA-136777636-2" + GOOGLE_ANALYTICS: ${MONITOR_GOOGLE_ANALYTICS} restart: unless-stopped prometheus: build: diff --git a/frontend/build/webpack.common.js b/frontend/build/webpack.common.js index b60c786d..1fa34650 100644 --- a/frontend/build/webpack.common.js +++ b/frontend/build/webpack.common.js @@ -128,5 +128,6 @@ function gtag() { gtag(\\"js\\", new Date()); gtag(\\"config\\", \\"${ga}\\", {\\"anonymize_ip\\": true}); -'`.replaceAll("\n", " "); // Result must be one liner else get compilation error. +'`.replaceAll("\n", " "); + // Result must be a one-liner else we get compilation error. } \ No newline at end of file