Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove analytics source #2305

Merged
merged 1 commit into from
Jul 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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