Skip to content

Commit

Permalink
remove analytics source (#2305)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MylesBorins authored and SEWeiTung committed Jul 1, 2019
1 parent b0e122d commit b3ab644
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 30 deletions.
2 changes: 0 additions & 2 deletions external/survey-2018/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<meta charset="utf-8">
<title>Web Survey Report 2018 | Node.js</title>

<link rel="dns-prefetch" href="https://www.google-analytics.com">

<link rel="apple-touch-icon" href="/static/apple-touch-icon.png">
<link rel="icon" sizes="32x32" type="image/png" href="/static/favicon.png">

Expand Down
27 changes: 0 additions & 27 deletions layouts/partials/footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,3 @@
</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');
document.documentElement.addEventListener('click', function(e) {
// Track case studies
if(!e.target || !e.target.dataset || !e.target.dataset.casestudy) return;
ga('send', 'event', {
eventCategory: 'casestudy',
eventAction: 'click',
eventLabel: e.target.dataset.casestudy,
eventValue: 0
});
});
}
})();
</script>
1 change: 0 additions & 1 deletion layouts/partials/html-head.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

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

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

0 comments on commit b3ab644

Please sign in to comment.