Skip to content

Commit 1da0fd2

Browse files
author
iPythoning
committed
feat(measure): privacy-friendly hit beacon to un-blind GitHub-Pages traffic
Repo traffic API does not count Pages site hits — the more-clickable awesome-list link points to the live calculator, so live-site clicks were invisible. Adds a no-cookie, no-PII, no-account beacon (Abacus): - live: every Pages load - from-github: arrivals referred by a github.com link (e.g. the merged awesome-legal-data entry) Domain-guarded to ipythoning.github.io so dev/local hits don't pollute.
1 parent 3d01e3a commit 1da0fd2

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,5 +332,18 @@ <h3>${s.name}</h3>
332332
</div>`).join('');
333333
}
334334
</script>
335+
<!-- Privacy-friendly hit beacon: no cookies, no PII, no third-party account.
336+
Closes the GitHub-Pages measurement blind spot (repo traffic API does not
337+
count Pages hits). `live` = every page load; `from-github` = arrivals whose
338+
referrer is a github.com link (e.g. the awesome-legal-data list entry). -->
339+
<script>
340+
(function(){
341+
if(location.hostname!=='ipythoning.github.io')return;
342+
var ns='lien-deadlines-ipy';
343+
function hit(k){new Image().src='https://abacus.jasoncameron.dev/hit/'+ns+'/'+k+'?_='+Date.now();}
344+
hit('live');
345+
if(/(^|\.)github\./i.test(document.referrer))hit('from-github');
346+
})();
347+
</script>
335348
</body>
336349
</html>

0 commit comments

Comments
 (0)