File: 03-remove-google-analytics.patch

package info (click to toggle)
gitmagic 20160304-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,280 kB
  • ctags: 20
  • sloc: makefile: 98; sh: 38
file content (25 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Remove google analytics in generated html
  This patch solve lintian "privacy-breach-google-adsense" issue.
Author: Sebastien Badia <seb@sebian.fr>
Last-Update: 2013-12-22

--- a/custom-html.xsl
+++ b/custom-html.xsl
@@ -15,16 +15,7 @@
 <xsl:param name="html.stylesheet" select="'default.css'"/>
 
 <xsl:template name="user.footer.navigation">
-<script type="text/javascript" src="find_selflink.js"></script>
-<script type="text/javascript">
-var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
-document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-</script>
-<script type="text/javascript">
-var pageTracker = _gat._getTracker("UA-1901330-2");
-pageTracker._initData();
-pageTracker._trackPageview();
-</script>
+<!--<script type="text/javascript" src="find_selflink.js"></script>-->
 </xsl:template>
 
 </xsl:stylesheet>