diff --git a/src/components/common/Analytics.astro b/src/components/common/Analytics.astro index a1a553d..5260cfa 100644 --- a/src/components/common/Analytics.astro +++ b/src/components/common/Analytics.astro @@ -1,5 +1,6 @@ --- import { GoogleAnalytics } from '@astrolib/analytics'; +import FacebookPixel from '../common/FacebookPixel.astro'; import { ANALYTICS } from 'astrowind:config'; --- @@ -11,3 +12,11 @@ import { ANALYTICS } from 'astrowind:config'; /> ) : null } + +{ + ANALYTICS?.vendors?.googleAnalytics?.id ? ( + + ) : null +} diff --git a/src/components/common/FacebookPixel.astro b/src/components/common/FacebookPixel.astro new file mode 100644 index 0000000..b089c15 --- /dev/null +++ b/src/components/common/FacebookPixel.astro @@ -0,0 +1,30 @@ +--- +// import ShowIf from './ShowIf.astro'; + +export interface Props { + id: string; + partytown?: boolean; +} + +const { id = "" } = Astro.props; + +--- + +{/* */} + + + + +{/* */} + + + \ No newline at end of file diff --git a/src/config.yaml b/src/config.yaml index 11a2c1c..605a10d 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -67,6 +67,8 @@ analytics: vendors: googleAnalytics: id: 'G-KL3CGBG84Q' # or "G-XXXXXXXXXX" + facebookPixel: + id: '818276990270615' ui: theme: 'dark:only' # Values: "system" | "light" | "dark" | "light:only" | "dark:only" \ No newline at end of file