File: 10_remove_google_analytics.diff

package info (click to toggle)
efl 1.28.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 369,520 kB
  • sloc: ansic: 1,078,016; cpp: 45,806; cs: 21,172; asm: 3,739; python: 3,733; javascript: 3,069; objc: 1,514; sh: 771; pascal: 431; xml: 349; makefile: 88
file content (27 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (3)
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
26
27
Description: Remove remote js from html docs
 The html docs load remote google analytics scripts.  Since this can leak local
 user actions, remove it.
Author: Ross Vandegrift <ross@kallisti.us>
Origin: other
Forwarded: not-needed
Last-Update: 2018-10-11

--- a/doc/head.html
+++ b/doc/head.html
@@ -4,15 +4,7 @@
 <head>
   <title>$title</title>
 
-  <!-- Global site tag (gtag.js) - Google Analytics -->
-  <script async src="https://www.googletagmanager.com/gtag/js?id=UA-110876574-1"></script>
-  <script>
-    window.dataLayer = window.dataLayer || [];
-    function gtag(){dataLayer.push(arguments);}
-    gtag('js', new Date());
-
-    gtag('config', 'UA-110876574-1');
-  </script>
+  <!-- Google Analytics js removed from Debian packages -->
 
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link rel="icon" href="favicon.png" type="image/x-icon">