Skip to content

Commit 7cac114

Browse files
authored
debt: Remove matomo (#1349)
1 parent a2a3c2d commit 7cac114

File tree

2 files changed

+2
-30
lines changed

2 files changed

+2
-30
lines changed

app/components/Users/UserSettings.jsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import EditUserForm from './EditUserForm'
1717
@withLoggedInUser
1818
export default class UserSettings extends React.PureComponent {
1919
render() {
20-
const { t, addModal, locale, logout } = this.props
20+
const { t, addModal, logout } = this.props
2121
return this.props.isLoading ? (
2222
<LoadingFrame />
2323
) : (
@@ -37,17 +37,6 @@ export default class UserSettings extends React.PureComponent {
3737
<br />
3838
<hr />
3939
<br />
40-
<div className="has-text-centered">
41-
<h3 className="title is-3">{t('browsingAnalyzer')}</h3>
42-
<iframe
43-
title="Matomo opt-out"
44-
style={{ border: 0, height: 175, width: 600 }}
45-
src={`https://stats.captainfact.io/index.php?module=CoreAdminHome&action=optOut&language=${locale}&fontFamily=Ubuntu`}
46-
/>
47-
</div>
48-
<br />
49-
<hr />
50-
<br />
5140
<div className="has-text-centered">
5241
<h3 className="title is-3">{t('dangerZone')}</h3>
5342
<Button

app/index.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<!-- prettier-ignore -->
44
<head lang="en">
@@ -25,23 +25,6 @@
2525
</script>
2626
<!-- End runtime env variables -->
2727

28-
<!-- Matomo -->
29-
<script type="text/javascript">
30-
if (document.domain === 'captainfact.io') {
31-
var _paq = window._paq = window._paq || [];
32-
_paq.push(['trackPageView']);
33-
_paq.push(['enableLinkTracking']);
34-
(function() {
35-
var u="//stats.captainfact.io/";
36-
_paq.push(['setTrackerUrl', u+'matomo.php']);
37-
_paq.push(['setSiteId', '1']);
38-
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
39-
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
40-
})();
41-
}
42-
</script>
43-
<!-- End Matomo Code -->
44-
4528
<!-- Preloading frame base style (without animation) -->
4629
<style>
4730
#preloading-frame {

0 commit comments

Comments
 (0)