even better analytics config stuffs

This commit is contained in:
legop3
2026-06-17 21:14:22 -04:00
parent 6118033abc
commit 57c128ab4d
8 changed files with 153 additions and 136 deletions
@@ -0,0 +1,16 @@
import { useEffect } from 'react';
import config from '../../config/driverAnalytics.json';
export default function DriverAnalytics() {
useEffect(() => {
if (!config.enabled) return;
document.head.append(
document
.createRange()
.createContextualFragment(config.tags.join('\n'))
);
}, []);
return null;
}