/** * Consent Tracking — Client Plugin * * Bootstraps the `useConsentTracking` composable on client mount so: * 1. Returning visitors (already consented) get tracking scripts * loaded immediately, without waiting for any banner interaction. * 2. First-time visitors see the banner; their accept/reject fires * the scripts via the `consent:updated` window event. * * Pair with `` in your layout — the banner * component itself uses the same composable and storage key. */ export default defineNuxtPlugin(() => { const consent = useConsentTracking(); consent.init(); });