bug 1648102 - Remove analytics we aren't analysing

This commit is contained in:
Chris H-C 2020-06-24 10:36:44 -04:00 коммит произвёл Chris H-C
Родитель c9ded528e9
Коммит bd7c213391
10 изменённых файлов: 0 добавлений и 81 удалений

Просмотреть файл

@ -12,7 +12,6 @@
<script type="text/javascript" src="jquery.csv-0.8.2.js"></script>
<link rel="stylesheet" href="addon-perf.css" />
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
</head>
<body>
<!--
@ -137,7 +136,6 @@
</div>
<div id='footer'></div>
<div><a href="https://www.mozilla.org/en-US/privacy/websites/">Mozilla's Website Privacy Notice</a></div>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -10,7 +10,6 @@
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/select2.min.css" rel="stylesheet"/>
<link href="css/select2-bootstrap.css" rel="stylesheet"/>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
</head>
<body>
<script src="js/jquery.min.js"></script>
@ -70,6 +69,5 @@
</div>
</div>
<div><a href="https://www.mozilla.org/en-US/privacy/websites/">Mozilla's Website Privacy Notice</a></div>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -1,63 +0,0 @@
(function() {
window.trackingEnabled = () => {
var _dntStatus = navigator.doNotTrack || navigator.msDoNotTrack;
var fx = navigator.userAgent.match(/Firefox\/(\d+)/);
var ie10 = navigator.userAgent.match(/MSIE 10/i);
var w8 = navigator.appVersion.match(/Windows NT 6.2/);
if (fx && Number(fx[1]) < 32) {
_dntStatus = 'Unspecified'; // bug 887703
} else if (ie10 && w8) {
_dntStatus = 'Unspecified';
} else {
_dntStatus = {'0': 'Disabled', '1': 'Enabled'}[_dntStatus] || 'Unspecified';
}
window.trackingEnabled = () => {
return _dntStatus != 'Enabled';
}
return window.trackingEnabled();
};
if (window.trackingEnabled()) {
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-49796218-2');
// Decorate outbound links from the top frame of whitelisted pages
const OUTBOUND_LINKS_WHITELIST = new Set([
'/',
'/index.html',
]);
if (OUTBOUND_LINKS_WHITELIST.has(window.location.pathname)) {
window.addEventListener("DOMContentLoaded", () => {
document.addEventListener("click", decoratedLinkHandler, true);
});
}
}
function decoratedLinkHandler(e) {
if (e.button != 0) {
return;
}
let anchor = findAnchor(e.target);
if (anchor) {
gtag('event', 'outbound_link', {
'event_category': 'user_interaction',
'event_action': 'click',
'event_label': anchor.href,
'transport_type': 'beacon',
});
}
}
function findAnchor(el) {
while (el && el.nodeName != 'A') {
el = el.parentElement;
}
return el;
}
}());

Просмотреть файл

@ -13,7 +13,6 @@
<script src="https://telemetry.mozilla.org/v2/telemetry.js"></script>
<script src="generator.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
</head>
<body>
<header>
@ -140,6 +139,5 @@
</form>
</main>
<div><a href="https://www.mozilla.org/en-US/privacy/websites/">Mozilla's Website Privacy Notice</a></div>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -25,7 +25,6 @@ input[type=number] { -moz-appearance: textfield; }
input { margin-top: 3px; }
</style>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
</head>
<body>
<div class="container-fluid">
@ -89,6 +88,5 @@ input { margin-top: 3px; }
<script src="https://telemetry.mozilla.org/v2/telemetry.js"></script>
<script src="simulator.js"></script>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -10,7 +10,6 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="new-pipeline/style/dashboards.css">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
</head>
<body>
<div class="container-fluid">
@ -160,7 +159,6 @@
window.location.href = window.location.origin + "/advanced/" + window.location.hash;
}
</script>
<script src="analytics/analytics.js"></script>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</body>
</html>

Просмотреть файл

@ -16,7 +16,6 @@
<link rel="stylesheet" type="text/css" href="style/metricsgraphics.css" />
<link rel="stylesheet" type="text/css" href="style/dashboards.css" />
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
</head>
<body>
<div class="container-fluid">
@ -244,6 +243,5 @@
<script src="src/dist.js"></script>
<script src="src/auth.js"></script>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -14,7 +14,6 @@
<link rel="stylesheet" type="text/css" href="style/metricsgraphics.css" />
<link rel="stylesheet" type="text/css" href="style/dashboards.css" />
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
</head>
<body>
<div class="container-fluid">
@ -139,6 +138,5 @@
<script src="src/evo.js"></script>
<script src="src/auth.js"></script>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -60,7 +60,6 @@
}
}
</style>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
</head>
<body>
<nav class="navbar navbar-default">
@ -234,6 +233,5 @@
$(this).addClass('active');
});
</script>
<script src="../analytics/analytics.js"></script>
</body>
</html>

Просмотреть файл

@ -8,7 +8,6 @@
<script type="text/javascript" src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="https://telemetry.mozilla.org/new-pipeline/lib/d3pie.min.js"></script>
<script type="text/javascript" src="index.js" charset="utf-8"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-49796218-2"></script>
</head>
<body onload="initDashboard()">
<div id="weekly-dropdown-div">
@ -101,7 +100,6 @@ This dashboard is maintained by the <a href="https://chat.mozilla.org/#/room/#in
This content is updated every Monday, starting at 2:00 UTC. It takes about 30 mins to complete.
The dataset is configured <a href="https://github.com/mozilla/telemetry-airflow/blob/master/jobs/update_orphaning_dashboard_etl.py">here</a>, and the scheduling logic is <a href="https://github.com/mozilla/telemetry-airflow/blob/master/dags/update_orphaning_dashboard_etl.py#L28-L29">here</a>.
<div><a href="https://www.mozilla.org/en-US/privacy/websites/">Mozilla's Website Privacy Notice</a></div>
<script src="../analytics/analytics.js"></script>
</div>
</body>
</html>