Skip to content

Commit

Permalink
SOV-3240: remove analytics (#2579)
Browse files Browse the repository at this point in the history
* feat: remove analytics scripts

* feat: remove analytics vars from netlify.toml
  • Loading branch information
soulBit authored Oct 23, 2023
1 parent b13d0c8 commit 7e2ba5c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 68 deletions.
3 changes: 0 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ REACT_APP_MAILCHIMP=https://gmail.us17.list-manage.com/subscribe/post?u=e66850f0
REACT_APP_TRANSAK_API_KEY=a2d23229-58f9-4ca5-a3d4-2c3d2b1b9a81
REACT_APP_TRANSAK_ENV=STAGING

REACT_APP_GOOGLE_ANALYTICS=UA-xxxxxxxxx-x
REACT_APP_GOOGLE_ANALYTICS_CLICKTHROUGH=UA-xxxxxxxxx-x

REACT_APP_INFURA_KEY=12b606df88b3420aad7828acd0f11902

REACT_APP_ENABLE_SOFTWARE_WALLET=false
Expand Down
3 changes: 0 additions & 3 deletions .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ REACT_APP_MAILCHIMP=https://gmail.us17.list-manage.com/subscribe/post?u=e66850f0
REACT_APP_TRANSAK_API_KEY=a2d23229-58f9-4ca5-a3d4-2c3d2b1b9a81
REACT_APP_TRANSAK_ENV=STAGING

REACT_APP_GOOGLE_ANALYTICS=GTM-KTSX2PL
REACT_APP_GOOGLE_ANALYTICS_CLICKTHROUGH=GTM-5MWCJN3

REACT_APP_INFURA_KEY=12b606df88b3420aad7828acd0f11902

REACT_APP_GRAPH_RSK=https://subgraph.test.sovryn.app/subgraphs/name/DistributedCollective/sovryn-subgraph
Expand Down
3 changes: 0 additions & 3 deletions .env.mainnet.local
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ REACT_APP_MAILCHIMP=https://gmail.us17.list-manage.com/subscribe/post?u=e66850f0
REACT_APP_TRANSAK_API_KEY=fadc5140-4d8f-4eda-ab37-5999dfedf353
REACT_APP_TRANSAK_ENV=PRODUCTION

REACT_APP_GOOGLE_ANALYTICS=GTM-KTSX2PL
REACT_APP_GOOGLE_ANALYTICS_CLICKTHROUGH=GTM-5MWCJN3

REACT_APP_INFURA_KEY=12b606df88b3420aad7828acd0f11902

REACT_APP_BYPASS_MAINTENANCE=1
Expand Down
4 changes: 0 additions & 4 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
[context.production]
[context.production.environment]
REACT_APP_NETWORK = "mainnet"
REACT_APP_GOOGLE_ANALYTICS = "GTM-KTSX2PL"
REACT_APP_GOOGLE_ANALYTICS_CLICKTHROUGH = "GTM-5MWCJN3"
REACT_APP_GRAPH_RSK = "https://subgraph.sovryn.app/subgraphs/name/DistributedCollective/sovryn-subgraph"
REACT_APP_GRAPH_BABELFISH = "https://babelfish-subgraph.sovryn.app/subgraphs/name/babelfish/rsk-graph"
REACT_APP_INFURA_KEY = "12b606df88b3420aad7828acd0f11902"
Expand All @@ -39,8 +37,6 @@
[context.branch-deploy]
[context.branch-deploy.environment]
REACT_APP_NETWORK = "mainnet"
REACT_APP_GOOGLE_ANALYTICS = "GTM-KTSX2PL"
REACT_APP_GOOGLE_ANALYTICS_CLICKTHROUGH = "GTM-5MWCJN3"
REACT_APP_GRAPH_RSK = "https://subgraph.sovryn.app/subgraphs/name/DistributedCollective/sovryn-subgraph"
REACT_APP_GRAPH_BABELFISH = "https://babelfish-subgraph.sovryn.app/subgraphs/name/babelfish/rsk-graph"
REACT_APP_INFURA_KEY = "12b606df88b3420aad7828acd0f11902"
Expand Down
55 changes: 0 additions & 55 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Crypto Margin Trading with Sovryn" />
<style type="text/css">
/* position osano on bottom left of page to ensure no overlap with Intercom widget */
.osano-cm-widget {
left: 10px !important;
}
</style>
<script src="https://cmp.osano.com/16BSnVTBY9ksVax/3abc690b-3747-4ba3-b1fb-fcaefd6ab8c1/osano.js"></script>
<!-- Google Tag Manager -->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(
window,
document,
'script',
'dataLayer',
'%REACT_APP_GOOGLE_ANALYTICS%',
);
</script>
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(
window,
document,
'script',
'dataLayer',
'%REACT_APP_GOOGLE_ANALYTICS_CLICKTHROUGH%',
);
</script>
<!-- End Google Tag Manager -->
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
Expand Down Expand Up @@ -148,16 +103,6 @@
<% } %>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript
><iframe
src="https://www.googletagmanager.com/ns.html?id=%REACT_APP_GOOGLE_ANALYTICS%"
height="0"
width="0"
style="display: none; visibility: hidden;"
></iframe
></noscript>
<!-- End Google Tag Manager (noscript) -->
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root">
<div class="sv-container">
Expand Down

0 comments on commit 7e2ba5c

Please sign in to comment.