diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index b9dc167..cf0f9af 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -1,4 +1,6 @@ --- +import { SITE } from "~/config.mjs" + import "~/assets/styles/base.css"; import MetaTags from "~/components/core/MetaTags.astro"; @@ -6,6 +8,7 @@ import BasicScripts from "~/components/core/BasicScripts.astro"; import Analytics from '@julian_cataldo/astro-analytics/Analytics.astro'; const { meta = {} } = Astro.props; +const { googleAnalyticsId = false } = SITE; --- @@ -13,7 +16,7 @@ const { meta = {} } = Astro.props; - + {googleAnalyticsId && } @@ -21,4 +24,4 @@ const { meta = {} } = Astro.props; - \ No newline at end of file +