Skip to content

Commit

Permalink
GA id will be stored in base64 format
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldsce committed Dec 10, 2021
1 parent f128dfc commit 7f46863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ GENERATE_SOURCEMAP=false
SKIP_PREFLIGHT_CHECK=true
REACT_APP_API_ENDPOINT = "https://console-stage.mobiledgex.net:443"
REACT_APP_CAPTCHA_V2_KEY = "***REMOVED***"
REACT_APP_GA_MEASUREMENT_ID = "{\"localhost\":\"G-123456789\"}"
REACT_APP_GA_MEASUREMENT_ID = eyJsb2NhbGhvc3QiOiJHLVhYWFhYWFhYWFgifQ==
REACT_APP_BUILD_VERSION="version 2.0.71"
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<!--cache disable end-->
<script>
try {
let gaId = JSON.parse("%REACT_APP_GA_MEASUREMENT_ID%")[window.location.hostname]
let gaId = JSON.parse(atob("%REACT_APP_GA_MEASUREMENT_ID%"))[window.location.hostname]
if (gaId) {
let gaScript = document.createElement("script");
gaScript.setAttribute("src", `https://www.googletagmanager.com/gtag/js?id=${gaId}`);
Expand Down

0 comments on commit 7f46863

Please sign in to comment.