File: 10_remove_google_analytics.diff

package info (click to toggle)
efl 1.21.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 261,264 kB
  • sloc: ansic: 1,026,744; cpp: 43,352; cs: 14,773; sh: 5,539; makefile: 3,347; objc: 1,518; pascal: 431; python: 322; xml: 182; sed: 16
file content (27 lines) | stat: -rw-r--r-- 874 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
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: no
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">