Skip to content

Commit

Permalink
fix: Fix value of GOOGLE_TAG_ID in templated deploy-config.js. (#2463)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanason authored Jan 17, 2024
1 parent 9dabb47 commit b774fe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js"></script>
<script>
if (window.APP_CONFIG.GOOGLE_TAG_ID) {
if (window.APP_CONFIG && window.APP_CONFIG.GOOGLE_TAG_ID) {
window.dataLayer = window.dataLayer || [];

function gtag() {
Expand Down
2 changes: 1 addition & 1 deletion terraform/modules/gost_website/tpl/deploy-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ window.apiURLForGOST = window.APP_CONFIG.apiURLForGOST; // Legacy
window.APP_CONFIG.DD_RUM_ENABLED = ${dd_rum_enabled};
window.APP_CONFIG.DD_RUM_CONFIG = ${dd_rum_config};

window.APP_CONFIG.GOOGLE_TAG_ID = ${google_tag_id};
window.APP_CONFIG.GOOGLE_TAG_ID = '${google_tag_id}';

window.APP_CONFIG.featureFlags = ${feature_flags};

Expand Down

0 comments on commit b774fe1

Please sign in to comment.