Skip to content

Commit 682291c

Browse files
committed
Disable matomo
1 parent cfe078b commit 682291c

File tree

5 files changed

+0
-64
lines changed

5 files changed

+0
-64
lines changed

config/prod.yaml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -173,33 +173,6 @@ redirector:
173173
host:
174174
from: status.mybinder.org
175175
to: mybinder.readthedocs.io/en/latest/status.html
176-
- type: url
177-
host:
178-
from: matomo.mybinder.org
179-
to: mybinder.org/matomo/index.php
180-
181-
matomo:
182-
enabled: true
183-
replicas: 2
184-
nodeSelector: *coreNodeSelector
185-
db:
186-
instanceName: binderhub-288415:us-central1:matomo-prod
187-
trustedHosts:
188-
- mybinder.org
189-
- gke.mybinder.org
190-
- gke2.mybinder.org
191-
ingress:
192-
hosts:
193-
- mybinder.org
194-
- gke.mybinder.org
195-
- gke2.mybinder.org
196-
resources:
197-
requests:
198-
cpu: 10m
199-
memory: 256Mi
200-
limits:
201-
cpu: 200m
202-
memory: 1Gi
203176

204177
analyticsPublisher:
205178
enabled: true

config/staging.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,6 @@ redirector:
150150
from: docs.staging.mybinder.org
151151
to: mybinder.readthedocs.io
152152

153-
matomo:
154-
enabled: true
155-
db:
156-
instanceName: binderhub-288415:us-central1:matomo-staging
157-
trustedHosts:
158-
- staging.mybinder.org
159-
- gke2.staging.mybinder.org
160-
ingress:
161-
hosts:
162-
- staging.mybinder.org
163-
- gke2.staging.mybinder.org
164-
165153
analyticsPublisher:
166154
enabled: true
167155
project: binderhub-288415

mybinder/values.yaml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -213,31 +213,6 @@ binderhub:
213213
<script defer data-domain="mybinder.org" src="https://plausible.io/js/script.file-downloads.outbound-links.js"></script>
214214
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
215215
216-
extra_footer_scripts:
217-
01-matomo: |
218-
// Only load Matomo if DNT is not set.
219-
// This respects user preferences, and gives us a full score on uBlock origin
220-
if (navigator.doNotTrack != "1" && // Most Firefox & Chrome
221-
window.doNotTrack != "1" && // IE & Safari
222-
navigator.msDoNotTrack != "1" // Old IE
223-
) {
224-
console.log("Loading Matomo tracking, since Do Not Track is off");
225-
var _paq = _paq || [];
226-
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
227-
// this is matomo's own respect-DoNotTrack
228-
// should be redundant, but good to be extra explicit
229-
_paq.push(["setDoNotTrack", true]);
230-
// disable tracking cookies
231-
_paq.push(["disableCookies"]);
232-
_paq.push(['trackPageView']);
233-
(function() {
234-
var u="//" + window.location.hostname + "/matomo/";
235-
_paq.push(['setTrackerUrl', u+'piwik.php']);
236-
_paq.push(['setSiteId', '1']);
237-
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
238-
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
239-
})();
240-
}
241216
KubernetesBuildExecutor:
242217
build_image: quay.io/jupyterhub/repo2docker:2025.08.0-83.g2456a4d
243218

secrets/config/prod.yaml

-2.6 KB
Binary file not shown.

secrets/config/staging.yaml

-2.61 KB
Binary file not shown.

0 commit comments

Comments
 (0)