Skip to content

Commit

Permalink
finish removing analytics and related helper (#2309)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ChALkeR authored and Trott committed Jul 1, 2019
1 parent fe61cf5 commit 603b545
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 68 deletions.
17 changes: 0 additions & 17 deletions external/survey-2018/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2245,22 +2245,5 @@ <h4><i>(Top Impacts)</i></h4>
<script src="d3.v3.min.js"></script>
<script src="data.min.js"></script>
<script src="full.min.js"></script>

<script src="/static/js/dnt_helper.js"></script>
<script>
(function(){
if (!_dntEnabled()) {
!function(n,o,d,e,j,s){n.GoogleAnalyticsObject=d;n[d]||(n[d]=function(){
(n[d].q=n[d].q||[]).push(arguments)});n[d].l=+new Date;j=o.createElement(e);
s=o.getElementsByTagName(e)[0];j.async=1;j.src='//www.google-analytics.com/analytics.js';
s.parentNode.insertBefore(j,s)}(window,document,'ga','script');

if (!ga) return;

ga('create', 'UA-67020396-1', 'auto');
ga('send', 'pageview');
}
})();
</script>
</body>
</html>
2 changes: 0 additions & 2 deletions layouts/partials/footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,3 @@
s.parentNode.insertBefore(m,s);
})(document,'script');
</script>

<script src="/static/js/dnt_helper.js"></script>
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"standard": {
"ignore": [
"static/js/modernizr.custom.js",
"static/js/dnt_helper.js",
"static/legacy/*",
"external"
]
Expand Down
48 changes: 0 additions & 48 deletions static/js/dnt_helper.js

This file was deleted.

0 comments on commit 603b545

Please sign in to comment.