Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Remove google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlovin committed Dec 18, 2020
1 parent 6a1624c commit 1e95c8b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 29 deletions.
5 changes: 1 addition & 4 deletions cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
"baseUrl": "http://localhost:3000",
"viewportWidth": 1300,
"defaultCommandTimeout": 20000,
"blacklistHosts": [
"*.google-analytics.com"
],
"env": {
"DEBUG": "src*,testing*,build*"
},
"projectId": "6a92uk"
}
}
3 changes: 0 additions & 3 deletions hyperion/renderer/html-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ export const getHeader = ({
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/img/apple-icon-114x114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/img/apple-icon-144x144-precomposed.png" />
${metaTags}
<script type="text/javascript" nonce="${nonce}">
!function(e,a,t,n,g,c,o){e.GoogleAnalyticsObject=g,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,c=a.createElement(t),o=a.getElementsByTagName(t)[0],c.defer=1,c.src="https://www.google-analytics.com/analytics.js",o.parentNode.insertBefore(c,o)}(window,document,"script",0,"ga"),ga("create","UA-92673909-1","auto"),ga("send","pageview"),ga('set', 'anonymizeIp', true)
</script>
</head>
<body>
<div id="root">`;
Expand Down
21 changes: 0 additions & 21 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,6 @@
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="%PUBLIC_URL%/img/apple-icon-72x72-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="%PUBLIC_URL%/img/apple-icon-114x114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="%PUBLIC_URL%/img/apple-icon-144x144-precomposed.png" />

<!-- Google Analytics -->
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
(i[r] =
i[r] ||
function () {
(i[r].q = i[r].q || []).push(arguments);
}),
(i[r].l = 1 * new Date());
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
a.defer = 1;
a.src = g;
m.parentNode.insertBefore(a, m);
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');

ga('create', 'UA-92673909-1', 'auto');
ga('send', 'pageview');
ga('set', 'anonymizeIp', true);
</script>
</head>

<body>
Expand Down
1 change: 0 additions & 1 deletion shared/middlewares/security.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ function securityMiddleware(
scriptSrc: [
"'self'",
"'unsafe-eval'",
'www.google-analytics.com',
'cdn.ravenjs.com',
'cdn.polyfill.io',

Expand Down

0 comments on commit 1e95c8b

Please sign in to comment.