Skip to content

Commit 184e539

Browse files
committed
Switch from Google Analytics to GoatCounter
1 parent 327630b commit 184e539

File tree

4 files changed

+5
-52
lines changed

4 files changed

+5
-52
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ kramdown:
182182

183183
# Set your Google Analytics id to receive `pageview` events.
184184
# To remove Google Anaylics from your page, remove the line below.
185-
google_analytics: UA-37122886-1
185+
# google_analytics: UA-37122886-1
186186

187187
# Setting a disqus shortname will enable the comment section on
188188
# pages with `comments: true` in the front matter.

_includes/my-head.html

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,3 @@
11
{% comment %}
2-
<!--
3-
Code used for embedding Gumroad on the Hydejack Site.
4-
Left here for reference, feel free to delete.
5-
-->
6-
<link rel="dns-prefetch" href="https://assets.gumroad.com">
7-
<script type="module">
8-
let p;
9-
const promisify = f => x => new Promise(r => f(x).addEventListener('load', r));
10-
const loadJS = promisify(window.loadJS);
11-
document.querySelector('hy-push-state').addEventListener('load', () => {
12-
const io = new IntersectionObserver(async (entries) => {
13-
if (entries.some(x => x.isIntersecting)) {
14-
p = p || loadJS('https://gumroad.com/js/gumroad-embed.js');
15-
await p;
16-
if (!window.GumroadEmbed) {
17-
await new Promise(function check1(res) {
18-
if ('createGumroadEmbed' in window) res(window.createGumroadEmbed());
19-
else setTimeout(() => check1(res), 200);
20-
});
21-
}
22-
await new Promise(function check2(res) {
23-
if ('GumroadEmbed' in window) res(GumroadEmbed.reload());
24-
else setTimeout(() => check2(res), 200);
25-
});
26-
}
27-
}, { rootMargin: '1440px' });
28-
document.querySelectorAll('.gumroad-product-embed').forEach(el => io.observe(el));
29-
});
30-
</script>
31-
<script type="module">
32-
let p;
33-
const promisify = f => x => new Promise(r => f(x).addEventListener('load', r));
34-
const loadJS = promisify(window.loadJS);
35-
document.querySelector('hy-push-state').addEventListener('load', () => {
36-
const io = new IntersectionObserver(async (entries) => {
37-
if (entries.some(x => x.isIntersecting)) {
38-
p = p || loadJS('https://gumroad.com/js/gumroad.js');
39-
await p;
40-
if (!window.GumroadOverlay) {
41-
await new Promise(function check(res) {
42-
if ('createGumroadOverlay' in window) res(window.createGumroadOverlay());
43-
else setTimeout(() => check(res), 200);
44-
});
45-
}
46-
}
47-
}, { rootMargin: '300px' });
48-
document.querySelectorAll('.gumroad-button').forEach(el => io.observe(el));
49-
});
50-
</script>
2+
513
{% endcomment %}

_includes/my-scripts.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<script data-goatcounter="https://212427.goatcounter.com/count"
2+
async src="//gc.zgo.at/count.js"></script>

about.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ layout: about
33
title: Hi there! I'm Afzal Najam.
44
menu: true
55
order: 3
6-
description: You're probably be wondering how you got here.
76
---
87

9-
I'm an Android developer who loves basketball. I currently work at [Doist](https://doist.com/), on the [Todoist](https://play.google.com/store/apps/details?id=com.todoist) and [Twist](https://play.google.com/store/apps/details?id=com.twistapp) apps. I live in Toronto, Canada. You can reach me through [these platforms](#contact-me)
8+
I'm an Android developer who loves basketball. I currently work at [Doist](https://doist.com/), on the [Todoist](https://play.google.com/store/apps/details?id=com.todoist) and [Twist](https://play.google.com/store/apps/details?id=com.twistapp) apps. I live in Toronto, Canada. You can reach me through [these platforms](#contact-me).
109

1110
I like building mobile applications and I love contributing to open source software in my spare time. Some of the projects I've contributed to in the past include:
1211

0 commit comments

Comments
 (0)