import GA from './GoogleAnalytics' import Plausible from './Plausible' import SimpleAnalytics from './SimpleAnalytics' import Umami from './Umami' import Posthog from './Posthog' import siteMetadata from '@/data/siteMetadata' const isProduction = process.env.NODE_ENV === 'production' const Analytics = () => { return ( <> {isProduction && siteMetadata.analytics.plausibleDataDomain && } {isProduction && siteMetadata.analytics.simpleAnalytics && } {isProduction && siteMetadata.analytics.umamiWebsiteId && } {isProduction && siteMetadata.analytics.googleAnalyticsId && } {isProduction && siteMetadata.analytics.posthogAnalyticsId && } ) } export default Analytics