diff --git a/.env b/.env index 8103b72162..b46bd7d99d 100644 --- a/.env +++ b/.env @@ -1,5 +1,6 @@ # These API keys are intentionally public. Please do not report them - thank you for your concern. REACT_APP_AMPLITUDE_PROXY_URL="https://api.uniswap.org/v1/amplitude-proxy" +REACT_APP_STATSIG_PROXY_URL="https://api.uniswap.org/v1/statsig-proxy" REACT_APP_AWS_API_REGION="us-east-2" REACT_APP_AWS_API_ENDPOINT="https://beta.api.uniswap.org/v1/graphql" REACT_APP_TEMP_API_URL="https://temp.api.uniswap.org/v1" @@ -10,4 +11,3 @@ REACT_APP_INFURA_KEY="4bf032f2d38a4ed6bb975b80d6340847" REACT_APP_MOONPAY_API="https://api.moonpay.com" REACT_APP_MOONPAY_LINK="https://us-central1-uniswap-mobile.cloudfunctions.net/signMoonpayLinkStaging?platform=web" REACT_APP_MOONPAY_PUBLISHABLE_KEY="pk_test_DycfESRid31UaSxhI5yWKe1r5E5kKSz" -REACT_APP_STATSIG_API_KEY="client-1rY92WZGidd2hgW4x1lsZ7afqm1Qfr3sJfH3A5b8eJa" diff --git a/.env.production b/.env.production index 40431723c2..6e1b8f8cda 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,5 @@ REACT_APP_AMPLITUDE_PROXY_URL="https://api.uniswap.org/v1/amplitude-proxy" +REACT_APP_STATSIG_PROXY_URL="https://api.uniswap.org/v1/statsig-proxy" REACT_APP_AWS_API_ENDPOINT="https://api.uniswap.org/v1/graphql" REACT_APP_FORTMATIC_KEY="pk_live_F937DF033A1666BF" REACT_APP_GOOGLE_ANALYTICS_ID="G-KDP9B6W4H8" @@ -9,4 +10,3 @@ REACT_APP_MOONPAY_PUBLISHABLE_KEY="pk_live_uQG4BJC4w3cxnqpcSqAfohdBFDTsY6E" REACT_APP_FIREBASE_KEY="AIzaSyBcZWwTcTJHj_R6ipZcrJkXdq05PuX0Rs0" THE_GRAPH_SCHEMA_ENDPOINT="https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3" REACT_APP_SENTRY_ENABLED=false -REACT_APP_STATSIG_API_KEY="client-1rY92WZGidd2hgW4x1lsZ7afqm1Qfr3sJfH3A5b8eJa" diff --git a/src/pages/App.tsx b/src/pages/App.tsx index 6124296b9c..e9ff756d03 100644 --- a/src/pages/App.tsx +++ b/src/pages/App.tsx @@ -58,11 +58,13 @@ const Profile = lazy(() => import('nft/pages/profile/profile')) const Asset = lazy(() => import('nft/pages/asset/Asset')) // Placeholder API key. Actual API key used in the proxy server -const ANALYTICS_DUMMY_KEY = '00000000000000000000000000000000' -const ANALYTICS_PROXY_URL = process.env.REACT_APP_AMPLITUDE_PROXY_URL +const AMPLITUDE_DUMMY_KEY = '00000000000000000000000000000000' +const AMPLITUDE_PROXY_URL = process.env.REACT_APP_AMPLITUDE_PROXY_URL +const STATSIG_DUMMY_KEY = 'client-0000000000000000000000000000000000000000000' +const STATSIG_PROXY_URL = process.env.REACT_APP_STATSIG_PROXY_URL const COMMIT_HASH = process.env.REACT_APP_GIT_COMMIT_HASH -initializeAnalytics(ANALYTICS_DUMMY_KEY, OriginApplication.INTERFACE, { - proxyUrl: ANALYTICS_PROXY_URL, +initializeAnalytics(AMPLITUDE_DUMMY_KEY, OriginApplication.INTERFACE, { + proxyUrl: AMPLITUDE_PROXY_URL, defaultEventName: SharedEventName.PAGE_VIEWED, commitHash: COMMIT_HASH, isProductionEnv: isProductionEnv(), @@ -210,10 +212,11 @@ export default function App() {