Add privacy friendly analytics (#13)

This commit is contained in:
Franck R 2022-04-01 17:23:25 +11:00 committed by GitHub
parent 1e5619b5fa
commit b75e362bf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 2 deletions

View File

@ -4,7 +4,7 @@ const social = document.querySelector('#social-box');
const socialMobile = document.querySelector('#social-box-mobile');
const logo = document.querySelector('#header-logo');
function handleHeader () {
function handleHeader() {
social.classList.toggle('social--visible');
socialMobile.classList.toggle('social-mobile--visible');
logo.classList.toggle('logo--hidden');
@ -12,4 +12,18 @@ function handleHeader () {
nav.classList.toggle('nav--active');
}
burger.addEventListener('click', handleHeader);
burger.addEventListener('click', handleHeader);
(function (f, a, t, h, o, m) {
a[h] = a[h] || function () {
(a[h].q = a[h].q || []).push(arguments)
};
o = f.createElement('script');
m = f.getElementsByTagName('script')[0];
o.async = 1;
o.src = t;
o.id = 'fathom-script';
m.parentNode.insertBefore(o, m)
})(document, window, '//fathom.status.im/tracker.js', 'fathom');
fathom('set', 'siteId', 'BBYCC');
fathom('trackPageview');