mirror of
https://github.com/seigler/awesome-dash-platform
synced 2025-07-27 06:36:08 +00:00
Base HTML: Remove IPFS inherited GA (!?!)
This commit is contained in:
parent
4e867fa9b5
commit
52c0cecbd4
2 changed files with 1 additions and 72 deletions
|
@ -2,7 +2,6 @@
|
||||||
<html lang="{{ .Site.LanguageCode }}">
|
<html lang="{{ .Site.LanguageCode }}">
|
||||||
<head>
|
<head>
|
||||||
{{ partial "head" . }}
|
{{ partial "head" . }}
|
||||||
{{ partial "analytics" . }}
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="charcoal sans-serif w-90 mw9 center">
|
<div class="charcoal sans-serif w-90 mw9 center">
|
||||||
|
@ -30,7 +29,7 @@
|
||||||
{{ template "main" . }}
|
{{ template "main" . }}
|
||||||
|
|
||||||
<footer class="mv4 montserrat ttu tc snow tracked b">
|
<footer class="mv4 montserrat ttu tc snow tracked b">
|
||||||
<a target="_blank" href="https://dashdevs.org" class="snow no-underline">Discord</a> |
|
<a target="_blank" href="https://chat.dashdevs.org" class="snow no-underline">Discord</a> |
|
||||||
<a target="_blank" href="https://github.com/andyfreer/awesome-dash-platform" class="snow no-underline">Source</a> |
|
<a target="_blank" href="https://github.com/andyfreer/awesome-dash-platform" class="snow no-underline">Source</a> |
|
||||||
<a target="_blank" href="https://github.com/andyfreer/awesome-dash-platform/blob/master/CONTRIBUTING.md" class="snow no-underline"> Get Listed</a> |
|
<a target="_blank" href="https://github.com/andyfreer/awesome-dash-platform/blob/master/CONTRIBUTING.md" class="snow no-underline"> Get Listed</a> |
|
||||||
<a target="_blank" href="https://www.dash.org" class="snow no-underline">Dash.org</a>
|
<a target="_blank" href="https://www.dash.org" class="snow no-underline">Dash.org</a>
|
||||||
|
|
|
@ -1,70 +0,0 @@
|
||||||
<!-- Google Analytics -->
|
|
||||||
<script>
|
|
||||||
// https://github.com/schalkneethling/dnt-helper/blob/master/js/dnt-helper.js
|
|
||||||
function _dntEnabled(dnt, userAgent) {
|
|
||||||
"use strict";
|
|
||||||
var dntStatus =
|
|
||||||
dnt ||
|
|
||||||
navigator.doNotTrack ||
|
|
||||||
window.doNotTrack ||
|
|
||||||
navigator.msDoNotTrack;
|
|
||||||
var ua = userAgent || navigator.userAgent;
|
|
||||||
var anomalousWinVersions = [
|
|
||||||
"Windows NT 6.1",
|
|
||||||
"Windows NT 6.2",
|
|
||||||
"Windows NT 6.3"
|
|
||||||
];
|
|
||||||
var fxMatch = ua.match(/Firefox\/(\d+)/);
|
|
||||||
var ieRegEx = /MSIE|Trident/i;
|
|
||||||
var isIE = ieRegEx.test(ua);
|
|
||||||
var platform = ua.match(/Windows.+?(?=;)/g);
|
|
||||||
if (isIE && typeof Array.prototype.indexOf !== "function") {
|
|
||||||
return false;
|
|
||||||
} else if (fxMatch && parseInt(fxMatch[1], 10) < 32) {
|
|
||||||
dntStatus = "Unspecified";
|
|
||||||
} else if (
|
|
||||||
isIE &&
|
|
||||||
platform &&
|
|
||||||
anomalousWinVersions.indexOf(platform.toString()) !== -1
|
|
||||||
) {
|
|
||||||
dntStatus = "Unspecified";
|
|
||||||
} else {
|
|
||||||
dntStatus =
|
|
||||||
{ "0": "Disabled", "1": "Enabled" }[dntStatus] || "Unspecified";
|
|
||||||
}
|
|
||||||
return dntStatus === "Enabled";
|
|
||||||
}
|
|
||||||
|
|
||||||
(function() {
|
|
||||||
if (!_dntEnabled() && location.hostname !== "localhost") {
|
|
||||||
!(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-96910779-8", "auto");
|
|
||||||
ga("send", "pageview");
|
|
||||||
|
|
||||||
// track outbound project clicks
|
|
||||||
document.addEventListener(
|
|
||||||
"click",
|
|
||||||
function(e) {
|
|
||||||
var href = e.target.closest("a") && e.target.closest("a").href;
|
|
||||||
if (href && href.indexOf("http") > -1) {
|
|
||||||
ga("send", "event", "outbound", "click", href);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
false
|
|
||||||
);
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
</script>
|
|
Loading…
Add table
Add a link
Reference in a new issue