import Script from 'next/script' import siteMetadata from '@/data/siteMetadata' const PlausibleScript = () => { return ( <> ) } export default PlausibleScript // https://plausible.io/docs/custom-event-goals export const logEvent = (eventName, ...rest) => { return window.plausible?.(eventName, ...rest) }