File: 03-remove-google-analytics.patch

package info (click to toggle)
gitmagic 20140125-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,176 kB
  • ctags: 20
  • sloc: makefile: 92; sh: 38
file content (23 lines) | stat: -rw-r--r-- 856 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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

--- gitmagic-20131213.orig/custom-html.xsl
+++ gitmagic-20131213/custom-html.xsl
@@ -16,15 +16,6 @@
 
 <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>
 </xsl:template>
 
 </xsl:stylesheet>