mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
even better analytics config stuffs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user