From ef7c05f3e3dc095f3abbe572ff366cf1df965441 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 21 Feb 2019 20:41:12 +0100 Subject: Refreshing remove-googleanalytics.patch for new upstream version. Signed-off-by: Daniel Baumann --- .../debian/0009-remove-googleanalytics.patch | 91 +++++++++++++++++++++- 1 file changed, 90 insertions(+), 1 deletion(-) diff --git a/debian/patches/debian/0009-remove-googleanalytics.patch b/debian/patches/debian/0009-remove-googleanalytics.patch index aa6f0e9ed..aa95aaa92 100644 --- a/debian/patches/debian/0009-remove-googleanalytics.patch +++ b/debian/patches/debian/0009-remove-googleanalytics.patch @@ -4,8 +4,97 @@ Subject: Remove googleanalytics diff -Naurp netdata.orig/docs/generator/custom/themes/material/partials/footer.html netdata/docs/generator/custom/themes/material/partials/footer.html --- netdata.orig/docs/generator/custom/themes/material/partials/footer.html +++ netdata/docs/generator/custom/themes/material/partials/footer.html -@@ -51,4 +51,3 @@ +@@ -51,7 +51,6 @@ - + + +diff -Naurp netdata.orig/web/gui/demosites.html netdata/web/gui/demosites.html +--- netdata.orig/web/gui/demosites.html ++++ netdata/web/gui/demosites.html +@@ -1417,14 +1417,6 @@ p { + }(c))) + } + +- function o() { +- !function (t, e, a, n, o, i) { +- t.GoogleAnalyticsObject = n, t[n] || (t[n] = function () { +- (t[n].q = t[n].q || []).push(arguments) +- }), t[n].l = +new Date, o = e.createElement(a), i = e.getElementsByTagName(a)[0], o.src = "//www.google-analytics.com/analytics.js", i.parentNode.insertBefore(o, i) +- }(t, r, "script", "ga"), ga("create", "UA-64295674-3", "auto"), ga("send", "pageview", "/site"+window.location.pathname), t.document.addEventListener("click", n) +- } +- + function i() { + !function (t, e, a) { + var n, o = t.getElementsByTagName(e)[0]; +diff -Naurp netdata.orig/web/gui/infographic.html netdata/web/gui/infographic.html +--- netdata.orig/web/gui/infographic.html ++++ netdata/web/gui/infographic.html +@@ -126,14 +126,6 @@ + }(c))) + } + +- function o() { +- !function (t, e, a, n, o, i) { +- t.GoogleAnalyticsObject = n, t[n] || (t[n] = function () { +- (t[n].q = t[n].q || []).push(arguments) +- }), t[n].l = +new Date, o = e.createElement(a), i = e.getElementsByTagName(a)[0], o.src = "//www.google-analytics.com/analytics.js", i.parentNode.insertBefore(o, i) +- }(t, r, "script", "ga"), ga("create", "UA-64295674-3", "auto"), ga("send", "pageview"), t.document.addEventListener("click", n) +- } +- + function i() { + !function (t, e, a) { + var n, o = t.getElementsByTagName(e)[0]; +diff -Naurp netdata.orig/web/gui/main.js netdata/web/gui/main.js +--- netdata.orig/web/gui/main.js ++++ netdata/web/gui/main.js +@@ -4354,25 +4354,6 @@ function finalizePage() { + $('#welcomeModal').modal(); + }, 1000); + } +- +- // google analytics when this is used for the home page of the demo sites +- // this does not run on user's installations +- setTimeout(function () { +- (function (i, s, o, g, r, a, m) { +- i['GoogleAnalyticsObject'] = r; +- i[r] = i[r] || function () { +- (i[r].q = i[r].q || []).push(arguments) +- }, i[r].l = 1 * new Date(); +- a = s.createElement(o), +- m = s.getElementsByTagName(o)[0]; +- a.async = 1; +- a.src = g; +- m.parentNode.insertBefore(a, m) +- })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); +- +- ga('create', 'UA-64295674-3', 'auto'); +- ga('send', 'pageview', '/demosite/' + window.location.host); +- }, 2000); + } else { + notifyForUpdate(); + } -- cgit v1.2.3