Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
remove obsolete ga script from demo sites (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekkolasa authored Mar 15, 2023
1 parent 1f241af commit 5382ed4
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 5382ed4

Please sign in to comment.