-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
58 lines (51 loc) · 1.29 KB
/
Copy path404.html
File metadata and controls
58 lines (51 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
layout: minimal
title: "Page not found"
description: "The page you requested could not be found."
robots: noindex,nofollow
---
<section>
<h1>Page not found</h1>
<p>The URL you requested does not exist.</p>
<p><a href="/">Go to the homepage</a></p>
</section>
<script>
(function () {
var missedPath = window.location.pathname + window.location.search;
var dedupeKey = 'gc-missed-path:' + missedPath;
try {
if (window.sessionStorage && window.sessionStorage.getItem(dedupeKey)) {
return;
}
} catch (error) {
// Ignore storage access issues and continue.
}
function withGoatCounter(callback, attempts) {
var retries = typeof attempts === 'number' ? attempts : 20;
if (window.goatcounter && typeof window.goatcounter.count === 'function') {
callback();
return;
}
if (retries <= 0) {
return;
}
window.setTimeout(function () {
withGoatCounter(callback, retries - 1);
}, 250);
}
withGoatCounter(function () {
window.goatcounter.count({
path: '/event/missed-path',
title: missedPath,
event: true,
});
try {
if (window.sessionStorage) {
window.sessionStorage.setItem(dedupeKey, '1');
}
} catch (error) {
// Ignore storage access issues.
}
});
})();
</script>