Skip to content

Commit

Permalink
debt: Remove matomo (#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
Betree authored Jan 14, 2025
1 parent a2a3c2d commit 7cac114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
13 changes: 1 addition & 12 deletions app/components/Users/UserSettings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import EditUserForm from './EditUserForm'
@withLoggedInUser
export default class UserSettings extends React.PureComponent {
render() {
const { t, addModal, locale, logout } = this.props
const { t, addModal, logout } = this.props
return this.props.isLoading ? (
<LoadingFrame />
) : (
Expand All @@ -37,17 +37,6 @@ export default class UserSettings extends React.PureComponent {
<br />
<hr />
<br />
<div className="has-text-centered">
<h3 className="title is-3">{t('browsingAnalyzer')}</h3>
<iframe
title="Matomo opt-out"
style={{ border: 0, height: 175, width: 600 }}
src={`https://stats.captainfact.io/index.php?module=CoreAdminHome&action=optOut&language=${locale}&fontFamily=Ubuntu`}
/>
</div>
<br />
<hr />
<br />
<div className="has-text-centered">
<h3 className="title is-3">{t('dangerZone')}</h3>
<Button
Expand Down
19 changes: 1 addition & 18 deletions app/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<!-- prettier-ignore -->
<head lang="en">
Expand All @@ -25,23 +25,6 @@
</script>
<!-- End runtime env variables -->

<!-- Matomo -->
<script type="text/javascript">
if (document.domain === 'captainfact.io') {
var _paq = window._paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.captainfact.io/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
}
</script>
<!-- End Matomo Code -->

<!-- Preloading frame base style (without animation) -->
<style>
#preloading-frame {
Expand Down

0 comments on commit 7cac114

Please sign in to comment.