mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-02-13 07:22:46 +00:00
add plausible analytics
This commit is contained in:
@@ -13,6 +13,16 @@
|
||||
<meta property="og:url" content="https://deflock.me" />
|
||||
<meta property="og:type" content="website" />
|
||||
<title>DeFlock - ALPR Database</title>
|
||||
<script>
|
||||
// Analytics in prod
|
||||
if (window.location.hostname !== 'localhost') {
|
||||
var plausibleScript = document.createElement('script');
|
||||
plausibleScript.src = 'https://plausible.io/js/script.file-downloads.outbound-links.js';
|
||||
plausibleScript.defer = true;
|
||||
plausibleScript.setAttribute('data-domain', 'deflock.me');
|
||||
document.head.appendChild(plausibleScript);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user