Skip to content

Commit 603b545

Browse files
ChALkeRTrott
authored andcommitted
finish removing analytics and related helper (#2309)
It was still present in one file, previous commit just removed the prefetch. Also remove dnt_helper, it was used only by analytics. Refs: #2305 Refs: nodejs/node#23083 Refs: nodejs/node#22652 Refs: #2302
1 parent fe61cf5 commit 603b545

File tree

4 files changed

+0
-68
lines changed

4 files changed

+0
-68
lines changed

external/survey-2018/index.html

-17
Original file line numberDiff line numberDiff line change
@@ -2245,22 +2245,5 @@ <h4><i>(Top Impacts)</i></h4>
22452245
<script src="d3.v3.min.js"></script>
22462246
<script src="data.min.js"></script>
22472247
<script src="full.min.js"></script>
2248-
2249-
<script src="/static/js/dnt_helper.js"></script>
2250-
<script>
2251-
(function(){
2252-
if (!_dntEnabled()) {
2253-
!function(n,o,d,e,j,s){n.GoogleAnalyticsObject=d;n[d]||(n[d]=function(){
2254-
(n[d].q=n[d].q||[]).push(arguments)});n[d].l=+new Date;j=o.createElement(e);
2255-
s=o.getElementsByTagName(e)[0];j.async=1;j.src='//www.google-analytics.com/analytics.js';
2256-
s.parentNode.insertBefore(j,s)}(window,document,'ga','script');
2257-
2258-
if (!ga) return;
2259-
2260-
ga('create', 'UA-67020396-1', 'auto');
2261-
ga('send', 'pageview');
2262-
}
2263-
})();
2264-
</script>
22652248
</body>
22662249
</html>

layouts/partials/footer.hbs

-2
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,3 @@
5151
s.parentNode.insertBefore(m,s);
5252
})(document,'script');
5353
</script>
54-
55-
<script src="/static/js/dnt_helper.js"></script>

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"standard": {
2828
"ignore": [
2929
"static/js/modernizr.custom.js",
30-
"static/js/dnt_helper.js",
3130
"static/legacy/*",
3231
"external"
3332
]

static/js/dnt_helper.js

-48
This file was deleted.

0 commit comments

Comments
 (0)