From 5382ed444d013c55bc7100d9d0f66164b2d9ab73 Mon Sep 17 00:00:00 2001 From: Jacek Kolasa Date: Wed, 15 Mar 2023 13:54:27 +0100 Subject: [PATCH] remove obsolete ga script from demo sites (#461) --- src/main.js | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/main.js b/src/main.js index bfb4d424..1ff34d5c 100644 --- a/src/main.js +++ b/src/main.js @@ -3943,29 +3943,7 @@ function finalizePage() { $(".shorten").shorten(); enableTooltipsAndPopovers(); - if (isDemo) { - // do not to give errors on netdata demo servers for 60 seconds - NETDATA.options.current.retries_on_data_failures = 60; - - // 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 { + if (!isDemo) { notifyForUpdate(); }