Add plausible

This commit is contained in:
Andras Schmelczer 2023-10-01 18:57:07 +01:00
parent 1098b2ddd5
commit 207b846322
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 417 additions and 0 deletions

View file

@ -15,6 +15,16 @@ import {
} from './helper/accessibility';
import { scrollToFragment } from './helper/scroll-to-fragment';
import './index.scss';
import Plausible from './plausible/tracker';
const plausible = Plausible({
hashMode: true,
trackLocalhost: true,
apiURI: 'https://stats.schmelczer.dev/status',
});
plausible.enableAutoPageviews();
plausible.enableAutoOutboundTracking();
addSupportForTabNavigation();
removeUnnecessaryOutlines();