Skip to content

Commit

Permalink
fix: Free organice from the shakles of Google Analytics
Browse files Browse the repository at this point in the history
  'I am a servant of the Secret Fire, wielder of the flame of Anor.
  You cannot pass. The dark fire will not avail you, flame of Udûn. Go
  back to the Shadow! You cannot pass.'
  [Gandalf, Lotr]
  • Loading branch information
munen committed Sep 6, 2019
1 parent 47f562e commit 2e7b31c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 47 deletions.
20 changes: 1 addition & 19 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,13 @@
<a href="https://github.com/200ok-ch/organice">https://github.com/200ok-ch/organice</a>
</div>
</noscript>
<div id="root"></div>
<script
async
defer
src="https://apis.google.com/js/api.js"
onload="this.onload=function() {}; window.handleGoogleDriveClientLoad && window.handleGoogleDriveClientLoad()"
onreadystatechange="if (this.readyState === 'complete') this.onload()"
></script>
<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.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m);
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');

ga('create', 'UA-60858136-4', 'auto');
ga('send', 'pageview');
</script>
<div id="root"></div>
</body>
</html>
6 changes: 1 addition & 5 deletions src/components/PrivacyPolicy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const PrivacyPolicy = () => {
return (
<div className="privacy-policy-container">
<h1>Privacy Policy</h1>
<p>Last updated: September 2nd, 2019</p>
<p>Last updated: September 6nd, 2019</p>

<p>
<a href="https://200ok.ch/">200ok llc</a> operates the https://organice.200ok.ch website and
Expand Down Expand Up @@ -72,10 +72,6 @@ const PrivacyPolicy = () => {
<li>To assist us in analyzing how our Service is used.</li>
</ul>

<p>
In addition, we may use third party services such as Google Analytics that collect, monitor
and analyze this data.
</p>
<p>
We want to inform our Service users that these third parties have access to your Personal
Information. The reason is to perform the tasks assigned to them on our behalf. However,
Expand Down
21 changes: 0 additions & 21 deletions src/middleware/google_analytics_logging.js

This file was deleted.

3 changes: 1 addition & 2 deletions src/store.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import googleAnalyticsLogger from './middleware/google_analytics_logging';
import liveSync from './middleware/live_sync';
import syncOnBecomingVisible from './middleware/sync_on_becoming_visible';
import rootReducer from './reducers';
Expand All @@ -11,5 +10,5 @@ export default initialState =>
createStore(
rootReducer,
initialState,
composeEnhancers(applyMiddleware(thunk, googleAnalyticsLogger, liveSync, syncOnBecomingVisible))
composeEnhancers(applyMiddleware(thunk, liveSync, syncOnBecomingVisible))
);

0 comments on commit 2e7b31c

Please sign in to comment.