Skip to content

Commit b3ab644

Browse files
MylesBorinsSEWeiTung
authored andcommitted
remove analytics source (#2305)
We removed GA in 2018 but it seems like we missed removing it from the partials and it is still being loaded. Refs: nodejs/node#23083 Refs: #2302
1 parent b0e122d commit b3ab644

File tree

3 files changed

+0
-30
lines changed

3 files changed

+0
-30
lines changed

external/survey-2018/index.html

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<meta charset="utf-8">
55
<title>Web Survey Report 2018 | Node.js</title>
66

7-
<link rel="dns-prefetch" href="https://www.google-analytics.com">
8-
97
<link rel="apple-touch-icon" href="/static/apple-touch-icon.png">
108
<link rel="icon" sizes="32x32" type="image/png" href="/static/favicon.png">
119

layouts/partials/footer.hbs

-27
Original file line numberDiff line numberDiff line change
@@ -53,30 +53,3 @@
5353
</script>
5454

5555
<script src="/static/js/dnt_helper.js"></script>
56-
<script>
57-
(function(){
58-
if (!_dntEnabled()) {
59-
!function(n,o,d,e,j,s){n.GoogleAnalyticsObject=d;n[d]||(n[d]=function(){
60-
(n[d].q=n[d].q||[]).push(arguments)});n[d].l=+new Date;j=o.createElement(e);
61-
s=o.getElementsByTagName(e)[0];j.async=1;j.src='//www.google-analytics.com/analytics.js';
62-
s.parentNode.insertBefore(j,s)}(window,document,'ga','script');
63-
64-
if (!ga) return;
65-
66-
ga('create', 'UA-67020396-1', 'auto');
67-
ga('send', 'pageview');
68-
69-
document.documentElement.addEventListener('click', function(e) {
70-
71-
// Track case studies
72-
if(!e.target || !e.target.dataset || !e.target.dataset.casestudy) return;
73-
ga('send', 'event', {
74-
eventCategory: 'casestudy',
75-
eventAction: 'click',
76-
eventLabel: e.target.dataset.casestudy,
77-
eventValue: 0
78-
});
79-
});
80-
}
81-
})();
82-
</script>

layouts/partials/html-head.hbs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
66
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
7-
<link rel="dns-prefetch" href="https://www.google-analytics.com">
87

98
<meta name="author" content="{{ site.author }}">
109
<meta name="robots" content="{{#if robots}}{{ robots }}{{else}}index, follow{{/if}}">

0 commit comments

Comments
 (0)