Remove pixel and only submit empty path

This commit is contained in:
Nikita Karamov 2022-12-21 11:59:25 +01:00
parent 5a000b35d4
commit 3702f9a596
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
1 changed files with 20 additions and 6 deletions

View File

@ -30,7 +30,7 @@
name="description"
content="toot allows you to share stuff on Mastodon, cross-instance. Just put in your post text and the instance URL and click ‘Toot!’"
/>
<link rel="canonical" href="https://toot.kytta.dev/">
<link rel="canonical" href="https://toot.kytta.dev/" />
<link href="/style.css" rel="stylesheet" />
@ -90,11 +90,25 @@
<section>
<a href="https://codeberg.org/kytta/toot">toot on Codeberg</a>
</section>
<script data-goatcounter="https://share2fedi.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
<noscript>
<img src="https://share2fedi.goatcounter.com/count?p=/">
</noscript>
<script>
window.goatcounter = {
path: "/",
};
// Only load on production environment.
if (
window.location.host !== "toot.kytta.dev" &&
window.location.host !== "s2f.kytta.dev" &&
window.location.host !== "share2fedi.kytta.dev"
) {
window.goatcounter["no_onload"] = true;
}
</script>
<script
data-goatcounter="https://share2fedi.goatcounter.com/count"
data-goatcounter-settings='{"path": "/"}'
async
src="//gc.zgo.at/count.js"
></script>
</footer>
<script src="/main.js"></script>
</body>