Skip to content

Commit 8aabf46

Browse files
Debian Science Teamrebecca-palmer
authored andcommitted
Avoid privacy breach by analytics
Author: Yaroslav Halchenko <[email protected]>, Andreas Tille <[email protected]>, Rebecca N. Palmer <[email protected]> Forwarded: not-needed Gbp-Pq: Name deb_disable_analytics.patch
1 parent a9422d8 commit 8aabf46

File tree

3 files changed

+4
-45
lines changed

3 files changed

+4
-45
lines changed

doc/source/conf.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,6 @@
243243
"footer_start": ["pandas_footer", "sphinx-version"],
244244
"github_url": "https://github.com/pandas-dev/pandas",
245245
"twitter_url": "https://twitter.com/pandas_dev",
246-
"analytics": {
247-
"plausible_analytics_domain": "pandas.pydata.org",
248-
"plausible_analytics_url": "https://views.scientific-python.org/js/script.js",
249-
},
250246
"logo": {"image_dark": "https://pandas.pydata.org/static/img/pandas_white.svg"},
251247
"navbar_align": "left",
252248
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],

pandas/tests/io/data/html/spam.html

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -27,45 +27,9 @@
2727

2828
<link rel="stylesheet" href="/ndb/static/css/main.css" />
2929

30-
<script type="text/JavaScript">
31-
var _gaq = _gaq || [];
32-
// NAL
33-
_gaq.push(['_setAccount', 'UA-28627214-1']);
34-
_gaq.push(['_setDomainName', 'nal.usda.gov']);
35-
_gaq.push(['_setAllowLinker', true]);
36-
_gaq.push(['_trackPageview']);
37-
//
38-
// _gaq.push(['_setAccount', 'UA-3876418-1']);
39-
// _gaq.push(['_trackPageview']);
40-
// for NDB
41-
_gaq.push(['_setAccount', 'UA-36442725-1']);
42-
_gaq.push(['_trackPageview']);
43-
// USDA servers
44-
_gaq.push(['_setAccount', 'UA-466807-3']);
45-
_gaq.push(['_setDomainName', 'usda.gov']);
46-
_gaq.push(['_setAllowLinker', true]);
47-
_gaq.push(['_trackPageview']);
48-
//
49-
_gaq.push(['a._setAccount', 'UA-27627304-18']);
50-
_gaq.push(['a._setDomainName', 'usda.gov']);
51-
_gaq.push(['a._setAllowLinker', true]);
52-
_gaq.push(['a._trackPageview']);
53-
//
54-
_gaq.push(['b._setAccount', 'UA-27627304-1']);
55-
_gaq.push(['b._setDomainName', 'usda.gov']);
56-
_gaq.push(['b._setAllowLinker', true]);
57-
_gaq.push(['b._trackPageview']);
58-
59-
(function() {
60-
var ga = document.createElement('script'); ga.type =
61-
'text/javascript'; ga.async = true;
62-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
63-
'http://www') + '.google-analytics.com/ga.js';
64-
var s = document.getElementsByTagName('script')[0];
65-
s.parentNode.insertBefore(ga, s);
66-
})();
67-
</script>
68-
30+
<!-- google analytics snippet was completely removed by Debian maintainers.
31+
See http://lintian.debian.org/tags/privacy-breach-google-adsense.html
32+
for more information -->
6933

7034

7135
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
@@ -794,4 +758,4 @@ <h1>Nutrient data for 07908, Luncheon meat, pork with ham, minced, canned, inclu
794758
&nbsp;&nbsp;Software v.1.2.2
795759
</div>
796760
</body>
797-
</html>
761+
</html>

web/pandas/_templates/layout.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script defer data-domain="pandas.pydata.org" src="https://views.scientific-python.org/js/script.js"></script>
54
<title>pandas - Python Data Analysis Library</title>
65
<meta charset="utf-8">
76
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

0 commit comments

Comments
 (0)