Skip to content

Commit

Permalink
Move GA tags to configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
skodapetr committed Apr 6, 2024
1 parent 7663403 commit 33c5672
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker-compose-prankweb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion frontend/build/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,6 @@ function gtag() {
gtag(\\"js\\", new Date());
gtag(\\"config\\", \\"${ga}\\", {\\"anonymize_ip\\": true});
</script>
'`.replaceAll("\n", " "); // Result must be one liner else get compilation error.
'`.replaceAll("\n", " ");
// Result must be a one-liner else we get compilation error.
}

0 comments on commit 33c5672

Please sign in to comment.