Skip to content

Commit c14ff62

Browse files
yarikopticrebecca-palmer
authored andcommitted
Avoid privacy breach by Google Analytics
Last-Update: Mon, 23 Oct 2017 08:55:28 +0200 Forwarded: not-needed Gbp-Pq: Name deb_disable_googleanalytics.patch
1 parent 38cc5a4 commit c14ff62

File tree

2 files changed

+4
-48
lines changed

2 files changed

+4
-48
lines changed

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

+4-40
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

-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<script type="text/javascript">
5-
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-27880019-2']); _gaq.push(['_trackPageview']);
6-
(function() {
7-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
8-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
9-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
10-
})();
11-
</script>
124
<title>pandas - Python Data Analysis Library</title>
135
<meta charset="utf-8">
146
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

0 commit comments

Comments
 (0)